mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-18 06:10:37 +00:00

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
19 lines
521 B
ReStructuredText
19 lines
521 B
ReStructuredText
Clang "man" pages
|
|
-----------------
|
|
|
|
The following documents are command descriptions for all of the Clang tools.
|
|
These pages describe how to use the Clang commands and what their options are.
|
|
Note that these pages do not describe all of the options available for all
|
|
tools. To get a complete listing, pass the ``--help`` (general options) or
|
|
``--help-hidden`` (general and debugging options) arguments to the tool you are
|
|
interested in.
|
|
|
|
Basic Commands
|
|
~~~~~~~~~~~~~~
|
|
|
|
.. toctree::
|
|
:maxdepth: 1
|
|
|
|
clang
|
|
diagtool
|