From: Ted Kremenek Date: Wed, 27 Feb 2008 17:56:16 +0000 (+0000) Subject: Added string "[CHECKER]" to the output diagnostics produced by the GRSimpleVals analysis. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c06121ddabe863691c62dd46e99b9e32726bd52;p=clang Added string "[CHECKER]" to the output diagnostics produced by the GRSimpleVals analysis. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47678 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Analysis/GRSimpleVals.cpp b/Analysis/GRSimpleVals.cpp index b7ca8301be..b3e11ddabb 100644 --- a/Analysis/GRSimpleVals.cpp +++ b/Analysis/GRSimpleVals.cpp @@ -16,6 +16,7 @@ #include "GRSimpleVals.h" #include "clang/Analysis/PathSensitive/ValueState.h" #include "clang/Basic/Diagnostic.h" +#include using namespace clang; @@ -25,6 +26,10 @@ template 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;