llvm-project/clang/tools/diagtool
Jonas Devlieghere b48447a1d6 [diagtool] Add diagtool to install target.
Although not very well known, diagtool is an incredibly convenient
utility for dealing with diagnostics.
Particularly useful are the "tree" and "show-enabled" commands:

 - The former prints the hierarchy of diagnostic (warning) flags and
   which of them are enabled by default.
 - The latter can be used to replace an invocation to clang and will
   print which diagnostics are disabled, warnings or errors.
   For instance: `diagtool show-enabled -Wall -Werror /tmp/test.c` will
   print that -Wunused-variable (warn_unused_variable) will be treated as
   an error.

This patch adds them to the install target so it gets shipped with the
LLVM release. It also adds a very basic man page and mentions this
change in the release notes.

Differential revision: https://reviews.llvm.org/D46694

llvm-svn: 332448
2018-05-16 10:23:25 +00:00
..
CMakeLists.txt [diagtool] Add diagtool to install target. 2018-05-16 10:23:25 +00:00
DiagTool.cpp [clang] Change std::sort to llvm::sort in response to r327219 2018-03-27 16:50:00 +00:00
DiagTool.h
DiagnosticNames.cpp [refactor] allow the use of refactoring diagnostics 2017-10-16 18:28:26 +00:00
DiagnosticNames.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
FindDiagnosticID.cpp [diagtool] Add ability to pass in the id and return the name for a 2017-08-03 16:13:13 +00:00
ListWarnings.cpp [NFC] Loop modernization in diagtool 2017-09-05 18:04:34 +00:00
ShowEnabledWarnings.cpp [NFC] Loop modernization in diagtool 2017-09-05 18:04:34 +00:00
TreeView.cpp [diagtool] Change default tree behavior to print only flags 2017-09-05 18:04:40 +00:00
diagtool_main.cpp