[clang-tidy] Add doc for `explain-config` option.

llvm-svn: 282158
This commit is contained in:
Haojian Wu 2016-09-22 14:36:43 +00:00
parent 5f44b04475
commit e5555e217c
2 changed files with 7 additions and 2 deletions

View File

@ -129,8 +129,9 @@ List all enabled checks and exit. Use with
cl::init(false), cl::cat(ClangTidyCategory));
static cl::opt<bool> ExplainConfig("explain-config", cl::desc(R"(
for each enabled check explains, where it is enabled, i.e. in clang-tidy binary,
command line or a specific configuration file.
For each enabled check explains, where it is
enabled, i.e. in clang-tidy binary, command
line or a specific configuration file.
)"),
cl::init(false), cl::cat(ClangTidyCategory));

View File

@ -139,6 +139,10 @@ An overview of all the command-line options:
-enable-check-profile -
Enable per-check timing profiles, and print a
report to stderr.
-explain-config -
For each enabled check explains, where it is
enabled, i.e. in clang-tidy binary, command
line or a specific configuration file.
-export-fixes=<filename> -
YAML file to store suggested fixes in. The
stored fixes can be applied to the input source