Do not prepend the keyword "[CHECKER]" to checker messages when using

a PathDiagnosticClient.

llvm-svn: 48996
This commit is contained in:
Ted Kremenek 2008-03-31 20:42:43 +00:00
parent ed6e34fe41
commit e9f2a90d1f
1 changed files with 5 additions and 2 deletions

View File

@ -76,8 +76,11 @@ void EmitWarning(Diagnostic& Diag, PathDiagnosticClient* PD,
ITERATOR I, ITERATOR E, const char* msg) {
std::ostringstream Out;
if (!PD) {
Out << "[CHECKER] " << msg;
msg = Out.str().c_str();
}
bool isFirst = true;
unsigned ErrorDiag = 0;