зеркало из https://github.com/microsoft/clang-1.git
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
This commit is contained in:
Родитель
0d99ecf1d8
Коммит
5c06121dda
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче