r362249 - [analyzer] print() JSONify: ExplodedNode revision
Csaba Dabis via cfe-commits
cfe-commits at lists.llvm.org
Fri May 31 10:54:13 PDT 2019
Author: charusso
Date: Fri May 31 10:54:12 2019
New Revision: 362249
URL: http://llvm.org/viewvc/llvm-project?rev=362249&view=rev
Log:
[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
Modified:
cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp?rev=362249&r1=362248&r2=362249&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp Fri May 31 10:54:12 2019
@@ -3075,8 +3075,8 @@ struct DOTGraphTraits<ExplodedGraph*> :
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*> :
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; });
More information about the cfe-commits
mailing list