projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab63998
)
[clangd] don't buffer the input-mirror stream, it's used to diagnose crashes
author
Sam McCall
<sam.mccall@gmail.com>
Fri, 2 Nov 2018 23:47:55 +0000
(23:47 +0000)
committer
Sam McCall
<sam.mccall@gmail.com>
Fri, 2 Nov 2018 23:47:55 +0000
(23:47 +0000)
llvm-svn: 346054
clang-tools-extra/clangd/tool/ClangdMain.cpp
patch
|
blob
|
history
diff --git
a/clang-tools-extra/clangd/tool/ClangdMain.cpp
b/clang-tools-extra/clangd/tool/ClangdMain.cpp
index bfaec75b035e61afcb440656aad380098e3e1997..dd3c46ddd7261da355148cb6026c7049c59daeb9 100644
(file)
--- a/
clang-tools-extra/clangd/tool/ClangdMain.cpp
+++ b/
clang-tools-extra/clangd/tool/ClangdMain.cpp
@@
-217,6
+217,8
@@
int main(int argc, char *argv[]) {
if (EC) {
InputMirrorStream.reset();
errs() << "Error while opening an input mirror file: " << EC.message();
+ } else {
+ InputMirrorStream->SetUnbuffered();
}
}