[PATCH] D57855: [analyzer] Reimplement checker options

Kristóf Umann via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 11 05:14:16 PST 2019


Szelethus marked an inline comment as done.
Szelethus added a comment.

In D57855#1392560 <https://reviews.llvm.org/D57855#1392560>, @xazax.hun wrote:

> We have `examples/analyzer-plugin`. I would prefer to add an example option to the example plugin so people do see how to do this when they are registering a checker from a plugin.


Not only that, but one for dependencies would be great too, thanks!



================
Comment at: include/clang/StaticAnalyzer/Checkers/Checkers.td:48
+    CmdLineOption<Boolean,
+                  "Optimistic",
+                  "In set to false, the checker assumes that it does not know "
----------------
xazax.hun wrote:
> Did you want to add this option to nullability? I believe it belongs to Malloc Checker.
Yup, shouldn't be here. I vaguely remembered (incorrectly) that a test file contained a `nullability:Optimistic` option, but I can't find (=grep) any evidence of that. Nice catch!


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57855/new/

https://reviews.llvm.org/D57855





More information about the cfe-commits mailing list