[PATCH] D52337: [analyzer] Highlight sink nodes in red in exploded graph

George Karpenkov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 21 13:40:54 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rC342769: [analyzer] Highlight sink nodes in red (authored by george.karpenkov, committed by ).
Herald added a subscriber: cfe-commits.

Changed prior to commit:
  https://reviews.llvm.org/D52337?vs=166400&id=166552#toc

Repository:
  rC Clang

https://reviews.llvm.org/D52337

Files:
  lib/StaticAnalyzer/Core/ExprEngine.cpp


Index: lib/StaticAnalyzer/Core/ExprEngine.cpp
===================================================================
--- lib/StaticAnalyzer/Core/ExprEngine.cpp
+++ lib/StaticAnalyzer/Core/ExprEngine.cpp
@@ -2957,6 +2957,8 @@
   // work.
   static std::string getNodeAttributes(const ExplodedNode *N,
                                        ExplodedGraph *G) {
+    if (N->isSink())
+      return "color=red";
     return {};
   }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52337.166552.patch
Type: text/x-patch
Size: 429 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180921/aeae77a0/attachment.bin>


More information about the cfe-commits mailing list