summaryrefslogtreecommitdiffstats
path: root/clang-query
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2014-05-21 18:10:47 +0000
committerManuel Klimek <klimek@google.com>2014-05-21 18:10:47 +0000
commit746f28ca9e1ad43f34d430cb35c95e10b49fbc27 (patch)
tree3e9bfee058c33f4ed7a422a35822c4386a2bb7ee /clang-query
parentfe91477372149868b3cb21d3f88fad5b035f54c4 (diff)
Fix clang-query on Windows: flush llvm::outs() after each command.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@209313 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-query')
-rw-r--r--clang-query/tool/ClangQuery.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang-query/tool/ClangQuery.cpp b/clang-query/tool/ClangQuery.cpp
index 8454359a..d38451a7 100644
--- a/clang-query/tool/ClangQuery.cpp
+++ b/clang-query/tool/ClangQuery.cpp
@@ -125,6 +125,7 @@ int main(int argc, const char **argv) {
while (llvm::Optional<std::string> Line = LE.readLine()) {
QueryRef Q = QueryParser::parse(*Line, QS);
Q->run(llvm::outs(), QS);
+ llvm::outs().flush();
}
}