[cfe-commits] r149958 - /cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
Ted Kremenek
kremenek at apple.com
Mon Feb 6 18:26:15 PST 2012
Author: kremenek
Date: Mon Feb 6 20:26:14 2012
New Revision: 149958
URL: http://llvm.org/viewvc/llvm-project?rev=149958&view=rev
Log:
Quote name of function in path diagnostics.
Modified:
cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp?rev=149958&r1=149957&r2=149958&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp Mon Feb 6 20:26:14 2012
@@ -763,7 +763,7 @@
const Decl *caller = CExit->getLocationContext()->getParent()->getDecl();
pos = getLastStmtLoc(PrevN, BRC.getSourceManager());
if (const NamedDecl *ND = dyn_cast<NamedDecl>(caller))
- Out << "Returning to " << ND->getNameAsString();
+ Out << "Returning to '" << ND->getNameAsString() << "'";
else
Out << "Returning to caller";
}
More information about the cfe-commits
mailing list