From: Csaba Dabis Date: Fri, 31 May 2019 17:54:12 +0000 (+0000) Subject: [analyzer] print() JSONify: ExplodedNode revision X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5d3721dd8cb849e7eec7c13881d28257203b9d7;p=clang [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 --- 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 : 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 : 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; });