[clang-tools-extra] r346054 - [clangd] don't buffer the input-mirror stream, it's used to diagnose crashes
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 2 16:47:55 PDT 2018
Author: sammccall
Date: Fri Nov 2 16:47:55 2018
New Revision: 346054
URL: http://llvm.org/viewvc/llvm-project?rev=346054&view=rev
Log:
[clangd] don't buffer the input-mirror stream, it's used to diagnose crashes
Modified:
clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp
Modified: clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp?rev=346054&r1=346053&r2=346054&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp (original)
+++ clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp Fri Nov 2 16:47:55 2018
@@ -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();
}
}
More information about the cfe-commits
mailing list