[cfe-commits] r48996 - /cfe/trunk/lib/Analysis/GRSimpleVals.cpp

Ted Kremenek kremenek at apple.com
Mon Mar 31 13:42:43 PDT 2008


Author: kremenek
Date: Mon Mar 31 15:42:43 2008
New Revision: 48996

URL: http://llvm.org/viewvc/llvm-project?rev=48996&view=rev
Log:
Do not prepend the keyword "[CHECKER]" to checker messages when using
a PathDiagnosticClient.

Modified:
    cfe/trunk/lib/Analysis/GRSimpleVals.cpp

Modified: cfe/trunk/lib/Analysis/GRSimpleVals.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/GRSimpleVals.cpp?rev=48996&r1=48995&r2=48996&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/GRSimpleVals.cpp (original)
+++ cfe/trunk/lib/Analysis/GRSimpleVals.cpp Mon Mar 31 15:42:43 2008
@@ -76,8 +76,11 @@
                  ITERATOR I, ITERATOR E, const char* msg) {
  
   std::ostringstream Out;
-  Out << "[CHECKER] " << msg;
-  msg = Out.str().c_str();
+
+  if (!PD) {
+    Out << "[CHECKER] " << msg;
+    msg = Out.str().c_str();
+  }
   
   bool isFirst = true;
   unsigned ErrorDiag = 0;





More information about the cfe-commits mailing list