summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/ProgramPoint.cpp
diff options
context:
space:
mode:
authorAnton Yartsev <anton.yartsev@gmail.com>2014-02-17 18:25:34 +0000
committerAnton Yartsev <anton.yartsev@gmail.com>2014-02-17 18:25:34 +0000
commit6a61922239de8018239eef23328dba457874064c (patch)
tree3aa04bb4e9c98dffb955d496e853674961f0b6f8 /clang/lib/Analysis/ProgramPoint.cpp
parent06bd44b3e80c8b72657bebc7d79c7ceb7522fa9c (diff)
downloadbcm5719-llvm-6a61922239de8018239eef23328dba457874064c.tar.gz
bcm5719-llvm-6a61922239de8018239eef23328dba457874064c.zip
[analyzer] Improved checker naming in CFG dump.
This implements FIXME from Checker.cpp (FIXME: We want to return the package + name of the checker here.) and replaces hardcoded checker names with the new ones obtained via getCheckName().getName(). llvm-svn: 201525
Diffstat (limited to 'clang/lib/Analysis/ProgramPoint.cpp')
-rw-r--r--clang/lib/Analysis/ProgramPoint.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/Analysis/ProgramPoint.cpp b/clang/lib/Analysis/ProgramPoint.cpp
index 7d67e8a91c8..26b59bb71de 100644
--- a/clang/lib/Analysis/ProgramPoint.cpp
+++ b/clang/lib/Analysis/ProgramPoint.cpp
@@ -43,9 +43,10 @@ ProgramPoint ProgramPoint::getProgramPoint(const Stmt *S, ProgramPoint::Kind K,
}
}
-SimpleProgramPointTag::SimpleProgramPointTag(StringRef description)
- : desc(description) {}
+SimpleProgramPointTag::SimpleProgramPointTag(StringRef MsgProvider,
+ StringRef Msg)
+ : Desc((MsgProvider + " : " + Msg).str()) {}
StringRef SimpleProgramPointTag::getTagDescription() const {
- return desc;
+ return Desc;
}
OpenPOWER on IntegriCloud