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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to