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

Phabricator via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 13 03:14:02 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL318030: [analyzer] Document the issue hash debugging facility (authored by xazax).

Changed prior to commit:
  https://reviews.llvm.org/D39543?vs=121290&id=122630#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D39543

Files:
  cfe/trunk/docs/analyzer/DebugChecks.rst


Index: cfe/trunk/docs/analyzer/DebugChecks.rst
===================================================================
--- cfe/trunk/docs/analyzer/DebugChecks.rst
+++ cfe/trunk/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 reports. To debug what information
+  is used to calculate this hash it is possible to dump the hashed string as a
+  warning of an arbitrary expression using the function above.
+
+  Example usage::
+
+    void foo() {
+      int x = 1;
+      clang_analyzer_hashDump(x); // expected-warning{{hashed string for x}}
+    }
+
 Statistics
 ==========
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39543.122630.patch
Type: text/x-patch
Size: 732 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171113/e0ff8149/attachment.bin>


More information about the cfe-commits mailing list