[cfe-commits] r83369 - /cfe/trunk/lib/Analysis/AnalysisManager.cpp

Daniel Dunbar daniel at zuster.org
Sat Oct 17 02:24:34 PDT 2009


On Mon, Oct 5, 2009 at 8:49 PM, Ted Kremenek <kremenek at apple.com> wrote:
> 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.

I'm confused as to why this is necessary, llvm::errs should be unbuffered?

 - Daniel

> 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();
>   }
>  }
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>




More information about the cfe-commits mailing list