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

Artem Dergachev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 2 05:16:29 PDT 2017


NoQ added a comment.

Yup, thanks!



================
Comment at: docs/analyzer/DebugChecks.rst:255
+      int x = 1;
+      clang_analyzer_hashDump(x); // Hashed string of x on stderr.
+    }
----------------
Unlike `printState` and like all other functions, your function doesn't dump to plain stderr, but generates warnings instead. I didn't want `printState` to produce huge warnings because matching them with `expected-warning` would be more disgusting than `FileCheck`ing, but that's not your case. So i think you'd like to document it similarly to other functions, probably as `// expected-warning{{'sample output'}}`.


Repository:
  rL LLVM

https://reviews.llvm.org/D39543





More information about the cfe-commits mailing list