[PATCH] D53296: [analyzer] New flag to print all -analyzer-config options

Artem Dergachev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 19 18:52:43 PDT 2018


NoQ accepted this revision.
NoQ added a comment.

I'll use this.

And i think it's unfair to give users -analyzer-config and not give them a list of options. Users should be able to discover either both or none of the two. If a user goes far enough to start digging into non-driver options, such user only benefits from knowing what the options are.

There's a separate story about dumping options in a machine-readable way, as discussed in the developer meeting, so that GUIs/wrappers could assert their own internal consistency.



================
Comment at: include/clang/Driver/CC1Options.td:132
 
+def analyzer_list_configs : Flag<["-"], "analyzer-list-configs">,
+  HelpText<"Display the list of -analyzer-config options">;
----------------
I'm in favor of `analyzer-config-help`, similar to `-analyzer-checker-help` so that it was easier to remember.


https://reviews.llvm.org/D53296





More information about the cfe-commits mailing list