summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
diff options
context:
space:
mode:
authorGeorge Karpenkov <ekarpenkov@apple.com>2018-09-15 02:03:17 +0000
committerGeorge Karpenkov <ekarpenkov@apple.com>2018-09-15 02:03:17 +0000
commitfc042f95e2c93844fc1a48c75510139b4a626011 (patch)
treeea90b3b9d31e143f05203a835b0c706438bb2ad0 /clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
parent141b448ee9a864c4735fb66dbc5a3f1ec4920ad5 (diff)
downloadbcm5719-llvm-fc042f95e2c93844fc1a48c75510139b4a626011.tar.gz
bcm5719-llvm-fc042f95e2c93844fc1a48c75510139b4a626011.zip
[analyzer] Dump reproducible identifiers for statements in exploded graph in store
Differential Revision: https://reviews.llvm.org/D51826 llvm-svn: 342313
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/ExprEngine.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/ExprEngine.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
index b8ec06e9b98..a0cb43284df 100644
--- a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
+++ b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
@@ -3109,7 +3109,7 @@ struct DOTGraphTraits<ExplodedNode*> : public DefaultDOTGraphTraits {
assert(S != nullptr && "Expecting non-null Stmt");
Out << S->getStmtClassName() << ' '
- << S->getID(Context) << " (" << (const void *)S << ") ";
+ << S->getID(Context) << " <" << (const void *)S << "> ";
S->printPretty(Out, /*helper=*/nullptr, Context.getPrintingPolicy(),
/*Indentation=*/2, /*NewlineSymbol=*/"\\l");
printLocation(Out, S->getBeginLoc());
@@ -3171,9 +3171,9 @@ struct DOTGraphTraits<ExplodedNode*> : public DefaultDOTGraphTraits {
static_cast<ExprEngine *>(State->getStateManager().getOwningEngine())
->getGraph();
- Out << "StateID: " << State->getID() << " (" << (const void *)State.get()
- << ")"
- << " NodeID: " << N->getID(&Graph) << " (" << (const void *)N << ")\\|";
+ Out << "StateID: " << State->getID() << " <" << (const void *)State.get()
+ << ">"
+ << " NodeID: " << N->getID(&Graph) << " <" << (const void *)N << ">\\|";
bool SameAsAllPredecessors =
std::all_of(N->pred_begin(), N->pred_end(), [&](const ExplodedNode *P) {
OpenPOWER on IntegriCloud