diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-10-06 03:49:25 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-10-06 03:49:25 +0000 |
commit | 9e8710b2ca7652ae52458725722d6e3e25536a0e (patch) | |
tree | a57c19c6f1b03173a25e970810f2c518d175bdbb /lib/Analysis/AnalysisManager.cpp | |
parent | b1d042212fbb3f6a08864b703b7bdf0dca58fd9c (diff) |
Fix 'clang-cc -analyzer-display-progress' by flushing standard error after printing the name of the analyzed function.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83369 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/AnalysisManager.cpp')
-rw-r--r-- | lib/Analysis/AnalysisManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/AnalysisManager.cpp b/lib/Analysis/AnalysisManager.cpp index 1aa459a28d..c2733faa68 100644 --- a/lib/Analysis/AnalysisManager.cpp +++ b/lib/Analysis/AnalysisManager.cpp @@ -27,9 +27,9 @@ void AnalysisManager::DisplayFunction(Decl *D) { if (isa<FunctionDecl>(D) || isa<ObjCMethodDecl>(D)) { const NamedDecl *ND = cast<NamedDecl>(D); SourceManager &SM = getASTContext().getSourceManager(); - llvm::errs() << "ANALYZE: " - << SM.getPresumedLoc(ND->getLocation()).getFilename() - << ' ' << ND->getNameAsString() << '\n'; + (llvm::errs() << "ANALYZE: " + << SM.getPresumedLoc(ND->getLocation()).getFilename() + << ' ' << ND->getNameAsString() << '\n').flush(); } } |