]> granicus.if.org Git - clang/commitdiff
Quote name of function in path diagnostics.
authorTed Kremenek <kremenek@apple.com>
Tue, 7 Feb 2012 02:26:14 +0000 (02:26 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 7 Feb 2012 02:26:14 +0000 (02:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149958 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/BugReporterVisitors.cpp

index 68ec6b0a930689f711b9ed14b5d08872a99bac61..c0804e7340e256c328ca3fa023a8ea7a75a114df 100644 (file)
@@ -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<NamedDecl>(caller))
-      Out << "Returning to " << ND->getNameAsString();
+      Out << "Returning to '" << ND->getNameAsString() << "'";
     else
       Out << "Returning to caller"; 
   }