]> granicus.if.org Git - clang/commitdiff
Added string "[CHECKER]" to the output diagnostics produced by the GRSimpleVals analysis.
authorTed Kremenek <kremenek@apple.com>
Wed, 27 Feb 2008 17:56:16 +0000 (17:56 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 27 Feb 2008 17:56:16 +0000 (17:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47678 91177308-0d34-0410-b5e6-96231b3b80d8

Analysis/GRSimpleVals.cpp

index b7ca8301bee9bca83fde752ee11af42bc27905e3..b3e11ddabb9a19196f34bfc4ca92573e0e125e87 100644 (file)
@@ -16,6 +16,7 @@
 #include "GRSimpleVals.h"
 #include "clang/Analysis/PathSensitive/ValueState.h"
 #include "clang/Basic/Diagnostic.h"
+#include <sstream>
 
 using namespace clang;
 
@@ -25,6 +26,10 @@ template <typename ITERATOR>
 static void EmitWarning(Diagnostic& Diag, SourceManager& SrcMgr,
                         ITERATOR I, ITERATOR E, const char* msg) {
  
+  std::ostringstream Out;
+  Out << "[CHECKER] " << msg;
+  msg = Out.str().c_str();
+  
   bool isFirst;
   unsigned ErrorDiag;