[cfe-commits] r47678 - /cfe/trunk/Analysis/GRSimpleVals.cpp
Ted Kremenek
kremenek at apple.com
Wed Feb 27 09:56:16 PST 2008
Author: kremenek
Date: Wed Feb 27 11:56:16 2008
New Revision: 47678
URL: http://llvm.org/viewvc/llvm-project?rev=47678&view=rev
Log:
Added string "[CHECKER]" to the output diagnostics produced by the GRSimpleVals analysis.
Modified:
cfe/trunk/Analysis/GRSimpleVals.cpp
Modified: cfe/trunk/Analysis/GRSimpleVals.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Analysis/GRSimpleVals.cpp?rev=47678&r1=47677&r2=47678&view=diff
==============================================================================
--- cfe/trunk/Analysis/GRSimpleVals.cpp (original)
+++ cfe/trunk/Analysis/GRSimpleVals.cpp Wed Feb 27 11:56:16 2008
@@ -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 @@
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;
More information about the cfe-commits
mailing list