From: Ted Kremenek Date: Thu, 20 Nov 2008 16:14:48 +0000 (+0000) Subject: Output 'ANALYZE' messages to standard error. This should address the intermixing... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a88fcef963b32d802440286d773557eb2ce8e230;p=clang Output 'ANALYZE' messages to standard error. This should address the intermixing of 'ANALYZE' and the other diagnostics the clang driver emits to standard error. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59730 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Driver/AnalysisConsumer.cpp b/Driver/AnalysisConsumer.cpp index 10e69686ad..503ad38345 100644 --- a/Driver/AnalysisConsumer.cpp +++ b/Driver/AnalysisConsumer.cpp @@ -236,14 +236,14 @@ case PD_##NAME: C.PD.reset(CREATEFN(C.HTMLDir, C.PP, C.PPF)); break; DisplayedFunction = true; if (FunctionDecl *FD = dyn_cast(getCodeDecl())) { - llvm::cout << "ANALYZE: " + llvm::cerr << "ANALYZE: " << getContext().getSourceManager().getSourceName(FD->getLocation()) << ' ' << FD->getIdentifier()->getName() << '\n'; } else if (ObjCMethodDecl *MD = dyn_cast(getCodeDecl())) { - llvm::cout << "ANALYZE (ObjC Method): " + llvm::cerr << "ANALYZE (ObjC Method): " << getContext().getSourceManager().getSourceName(MD->getLocation()) << " '" << MD->getSelector().getName() << "'\n";