From: Ted Kremenek Date: Tue, 7 Feb 2012 02:26:14 +0000 (+0000) Subject: Quote name of function in path diagnostics. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9201d2d138dca631cdc43f8e57d9e9e6248c25c;p=clang Quote name of function in path diagnostics. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149958 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp b/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp index 68ec6b0a93..c0804e7340 100644 --- a/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp +++ b/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp @@ -763,7 +763,7 @@ CallEnterExitBRVisitor::VisitNode(const ExplodedNode *N, const Decl *caller = CExit->getLocationContext()->getParent()->getDecl(); pos = getLastStmtLoc(PrevN, BRC.getSourceManager()); if (const NamedDecl *ND = dyn_cast(caller)) - Out << "Returning to " << ND->getNameAsString(); + Out << "Returning to '" << ND->getNameAsString() << "'"; else Out << "Returning to caller"; }