Skip to content

Commit

Permalink
[clangd] don't buffer the input-mirror stream, it's used to diagnose …
Browse files Browse the repository at this point in the history
…crashes

llvm-svn: 346054
  • Loading branch information
sam-mccall committed Nov 2, 2018
1 parent ab63998 commit 0d94618
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clang-tools-extra/clangd/tool/ClangdMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand Down

0 comments on commit 0d94618

Please sign in to comment.