[clang-tidy] Add doc for `explain-config` option.
authorHaojian Wu <hokein@google.com>
Thu, 22 Sep 2016 14:36:43 +0000 (14:36 +0000)
committerHaojian Wu <hokein@google.com>
Thu, 22 Sep 2016 14:36:43 +0000 (14:36 +0000)
llvm-svn: 282158

clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
clang-tools-extra/docs/clang-tidy/index.rst

index e5a44fc..ab9d935 100644 (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));
 
index ae399b5..0db1c4f 100644 (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