[cfe-commits] r83369 - /cfe/trunk/lib/Analysis/AnalysisManager.cpp
Ted Kremenek
kremenek at apple.com
Mon Oct 5 20:49:26 PDT 2009
Author: kremenek
Date: Mon Oct 5 22:49:25 2009
New Revision: 83369
URL: http://llvm.org/viewvc/llvm-project?rev=83369&view=rev
Log:
Fix 'clang-cc -analyzer-display-progress' by flushing standard error after printing the name of the analyzed function.
Modified:
cfe/trunk/lib/Analysis/AnalysisManager.cpp
Modified: cfe/trunk/lib/Analysis/AnalysisManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/AnalysisManager.cpp?rev=83369&r1=83368&r2=83369&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/AnalysisManager.cpp (original)
+++ cfe/trunk/lib/Analysis/AnalysisManager.cpp Mon Oct 5 22:49:25 2009
@@ -27,9 +27,9 @@
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();
}
}
More information about the cfe-commits
mailing list