Skip to content
Snippets Groups Projects
Commit 04d07cd0 authored by Gabor Horvath's avatar Gabor Horvath
Browse files

[analyzer] Document the issue hash debugging facility

Differential Revision: https://reviews.llvm.org/D39543


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@318030 91177308-0d34-0410-b5e6-96231b3b80d8
parent c614faa9
No related branches found
No related tags found
No related merge requests found
...@@ -242,6 +242,19 @@ ExprInspection checks ...@@ -242,6 +242,19 @@ ExprInspection checks
clang_analyzer_printState(); // Read the stderr! 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 Statistics
========== ==========
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment