]> granicus.if.org Git - clang/commit
[diagtool] Add diagtool to install target.
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 16 May 2018 10:23:25 +0000 (10:23 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 16 May 2018 10:23:25 +0000 (10:23 +0000)
commitad35972bde5110b7099283a1bc7dbb24f91326bf
tree3ccd8afae48a9f04c2f2977460f957e0a99fec97
parent5a506038868f5e5cb910927489de4a5c09e3d31d
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332448 91177308-0d34-0410-b5e6-96231b3b80d8
docs/CommandGuide/diagtool.rst [new file with mode: 0644]
docs/CommandGuide/index.rst
docs/ReleaseNotes.rst
tools/diagtool/CMakeLists.txt