summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCsaba Dabis <dabis.csaba98@gmail.com>2019-05-31 17:54:12 +0000
committerCsaba Dabis <dabis.csaba98@gmail.com>2019-05-31 17:54:12 +0000
commita5d3721dd8cb849e7eec7c13881d28257203b9d7 (patch)
tree3e23dc3fe2c290ba4b2cf95a7273e0ae449354ff /lib
parentcedc0e6df7ab5a35e63671d0a722739237b5f09c (diff)
downloadclang-a5d3721dd8cb849e7eec7c13881d28257203b9d7.tar.gz
[analyzer] print() JSONify: ExplodedNode revision
Summary: Revert node-ID removal. Reviewers: NoQ, xazax.hun, ravikandhadai, baloghadamsoftware, Szelethus Subscribers: szepet, rnkovacs, a.sidorin, mikhail.ramalho, donat.nagy, dkrupp, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D62658 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362249 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/StaticAnalyzer/Core/ExprEngine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/StaticAnalyzer/Core/ExprEngine.cpp b/lib/StaticAnalyzer/Core/ExprEngine.cpp
index ad3c5d206a..b217889390 100644
--- a/lib/StaticAnalyzer/Core/ExprEngine.cpp
+++ b/lib/StaticAnalyzer/Core/ExprEngine.cpp
@@ -3075,8 +3075,8 @@ struct DOTGraphTraits<ExplodedGraph*> : public DefaultDOTGraphTraits {
const unsigned int Space = 1;
ProgramStateRef State = N->getState();
- Out << "{ \"node_id\": \"" << (const void *)N
- << "\", \"state_id\": " << State->getID()
+ Out << "{ \"node_id\": " << N->getID(G) << ", \"pointer\": \""
+ << (const void *)N << "\", \"state_id\": " << State->getID()
<< ", \"has_report\": " << (nodeHasBugReport(N) ? "true" : "false")
<< ",\\l";
@@ -3094,7 +3094,7 @@ struct DOTGraphTraits<ExplodedGraph*> : public DefaultDOTGraphTraits {
else
Out << "null }";
},
- // Adds a comma and a new-line between each program point.
+ // Adds a comma and a new-line between each program point.
[&](const ExplodedNode *) { Out << ",\\l"; },
[&](const ExplodedNode *) { return false; });