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

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


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

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

Repository:
  rL LLVM

https://reviews.llvm.org/D52337

Files:
  cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp


Index: cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp
===================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp
+++ cfe/trunk/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.166553.patch
Type: text/x-patch
Size: 459 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180921/794449b1/attachment.bin>


More information about the llvm-commits mailing list