forked from OSchip/llvm-project
Added string "[CHECKER]" to the output diagnostics produced by the GRSimpleVals analysis.
llvm-svn: 47678
This commit is contained in:
parent
3df31ba41b
commit
fd8352c2b9
|
@ -16,6 +16,7 @@
|
||||||
#include "GRSimpleVals.h"
|
#include "GRSimpleVals.h"
|
||||||
#include "clang/Analysis/PathSensitive/ValueState.h"
|
#include "clang/Analysis/PathSensitive/ValueState.h"
|
||||||
#include "clang/Basic/Diagnostic.h"
|
#include "clang/Basic/Diagnostic.h"
|
||||||
|
#include <sstream>
|
||||||
|
|
||||||
using namespace clang;
|
using namespace clang;
|
||||||
|
|
||||||
|
@ -25,6 +26,10 @@ template <typename ITERATOR>
|
||||||
static void EmitWarning(Diagnostic& Diag, SourceManager& SrcMgr,
|
static void EmitWarning(Diagnostic& Diag, SourceManager& SrcMgr,
|
||||||
ITERATOR I, ITERATOR E, const char* msg) {
|
ITERATOR I, ITERATOR E, const char* msg) {
|
||||||
|
|
||||||
|
std::ostringstream Out;
|
||||||
|
Out << "[CHECKER] " << msg;
|
||||||
|
msg = Out.str().c_str();
|
||||||
|
|
||||||
bool isFirst;
|
bool isFirst;
|
||||||
unsigned ErrorDiag;
|
unsigned ErrorDiag;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue