[PATCH] D37390: [diagtool] Add list-warning-flags
Jonas Devlieghere via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 1 12:29:24 PDT 2017
JDevlieghere created this revision.
JDevlieghere added a project: clang.
Herald added a subscriber: mgorny.
This patch adds a new tool to diagnostic tool called `list-warning-flags` to display only warnings that have a corresponding -W flag.
While we already have `list-warnings`, the output contains all internal diagnostic names. This is an implementation detail of the compiler and usually not what the users wants. I've rephrased the description of the exiting tool to emphasize its respective purpose.
Because the limited amount of code and complexity, as well as the absence of arguments in the other tools and the existing duplication in features between the them, it seemed reasonable to me to add this as something separate. However I don't know too much about diagtool and its usage so this is very much open for discussion.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5639 bytes
Desc: not available
More information about the cfe-commits