summaryrefslogtreecommitdiffstats
path: root/clang/docs/analyzer
diff options
context:
space:
mode:
authorGabor Horvath <xazax.hun@gmail.com>2017-11-13 11:13:02 +0000
committerGabor Horvath <xazax.hun@gmail.com>2017-11-13 11:13:02 +0000
commit5cfada60b4433e65c1e7f62201c2efe17710ea8e (patch)
tree95635f02003fdedf686043ef3c088ee7ac8f5f4b /clang/docs/analyzer
parent7114755913d72c5f1fafd27ee96f5db5790ad65d (diff)
downloadbcm5719-llvm-5cfada60b4433e65c1e7f62201c2efe17710ea8e.tar.gz
bcm5719-llvm-5cfada60b4433e65c1e7f62201c2efe17710ea8e.zip
[analyzer] Document the issue hash debugging facility
Differential Revision: https://reviews.llvm.org/D39543 llvm-svn: 318030
Diffstat (limited to 'clang/docs/analyzer')
-rw-r--r--clang/docs/analyzer/DebugChecks.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/docs/analyzer/DebugChecks.rst b/clang/docs/analyzer/DebugChecks.rst
index e2a8e05417b..67521b82cab 100644
--- a/clang/docs/analyzer/DebugChecks.rst
+++ b/clang/docs/analyzer/DebugChecks.rst
@@ -242,6 +242,19 @@ ExprInspection checks
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
==========
OpenPOWER on IntegriCloud