[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.


Repository:
  rL LLVM

https://reviews.llvm.org/D37390

Files:
  tools/diagtool/CMakeLists.txt
  tools/diagtool/ListWarningFlags.cpp
  tools/diagtool/ListWarnings.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37390.113572.patch
Type: text/x-patch
Size: 5639 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170901/538fb413/attachment.bin>


More information about the cfe-commits mailing list