[PATCH] D40793: [analyzer] Improve SymbolicRegion::dump() for heap pointers.
    Phabricator via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Tue Dec  5 09:15:14 PST 2017
    
    
  
This revision was automatically updated to reflect the committed changes.
Closed by commit rC319793: [analyzer] Mark heap-based symbolic regions in debug dumps. (authored by dergachev).
Repository:
  rC Clang
https://reviews.llvm.org/D40793
Files:
  lib/StaticAnalyzer/Core/MemRegion.cpp
Index: lib/StaticAnalyzer/Core/MemRegion.cpp
===================================================================
--- lib/StaticAnalyzer/Core/MemRegion.cpp
+++ lib/StaticAnalyzer/Core/MemRegion.cpp
@@ -472,6 +472,8 @@
 }
 
 void SymbolicRegion::dumpToStream(raw_ostream &os) const {
+  if (isa<HeapSpaceRegion>(getSuperRegion()))
+    os << "Heap";
   os << "SymRegion{" << sym << '}';
 }
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40793.125548.patch
Type: text/x-patch
Size: 390 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171205/f406f8cb/attachment.bin>
    
    
More information about the cfe-commits
mailing list