[PATCH] D39543: [analyzer] Document the issue hash debugging facility

Gábor Horváth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 2 04:41:23 PDT 2017


xazax.hun created this revision.
Herald added subscribers: szepet, baloghadamsoftware, whisperity.

Add documentation to the recently added issue hash dumping function.


Repository:
  rL LLVM

https://reviews.llvm.org/D39543

Files:
  docs/analyzer/DebugChecks.rst


Index: docs/analyzer/DebugChecks.rst
===================================================================
--- docs/analyzer/DebugChecks.rst
+++ docs/analyzer/DebugChecks.rst
@@ -242,6 +242,19 @@
       clang_analyzer_printState(); // Read the stderr!
     }
 
+- ``void clang_analyzer_hashDump(int);``
+
+  The analyzer can generate a hash to identify repots. To debug what information
+  is used to calculate this hash it is possible to dump the hashed string to
+  the stderr of an arbitrary expression using the function above.
+
+  Example usage::
+
+    void foo() {
+      int x = 1;
+      clang_analyzer_hashDump(x); // Hashed string of x on stderr.
+    }
+
 Statistics
 ==========
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39543.121275.patch
Type: text/x-patch
Size: 692 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171102/4ce43ec8/attachment.bin>


More information about the cfe-commits mailing list