[clang-tools-extra] r299651 - [clang-tidy] Update docs and help message
Alexander Kornienko via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 6 07:27:00 PDT 2017
Author: alexfh
Date: Thu Apr 6 09:27:00 2017
New Revision: 299651
URL: http://llvm.org/viewvc/llvm-project?rev=299651&view=rev
Log:
[clang-tidy] Update docs and help message
Modified:
clang-tools-extra/trunk/clang-tidy/tool/ClangTidyMain.cpp
clang-tools-extra/trunk/docs/clang-tidy/index.rst
Modified: clang-tools-extra/trunk/clang-tidy/tool/ClangTidyMain.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/tool/ClangTidyMain.cpp?rev=299651&r1=299650&r2=299651&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/tool/ClangTidyMain.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/tool/ClangTidyMain.cpp Thu Apr 6 09:27:00 2017
@@ -35,12 +35,13 @@ Configuration files:
option, command-line option takes precedence. The effective
configuration can be inspected using -dump-config:
- $ clang-tidy -dump-config - --
+ $ clang-tidy -dump-config
---
Checks: '-*,some-check'
WarningsAsErrors: ''
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
+ FormatStyle: none
User: user
CheckOptions:
- key: some-check.SomeOption
@@ -131,6 +132,8 @@ Style for formatting code around applied
- 'llvm', 'google', 'webkit', 'mozilla'
See clang-format documentation for the up-to-date
information about formatting styles and options.
+This option overrides the 'FormatStyle` option in
+.clang-tidy file, if any.
)"),
cl::init("none"),
cl::cat(ClangTidyCategory));
Modified: clang-tools-extra/trunk/docs/clang-tidy/index.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/index.rst?rev=299651&r1=299650&r2=299651&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/clang-tidy/index.rst (original)
+++ clang-tools-extra/trunk/docs/clang-tidy/index.rst Thu Apr 6 09:27:00 2017
@@ -169,6 +169,8 @@ An overview of all the command-line opti
- 'llvm', 'google', 'webkit', 'mozilla'
See clang-format documentation for the up-to-date
information about formatting styles and options.
+ This option overrides the 'FormatStyle` option in
+ .clang-tidy file, if any.
-header-filter=<string> -
Regular expression matching the names of the
headers to output diagnostics from. Diagnostics
@@ -195,9 +197,6 @@ An overview of all the command-line opti
printing statistics about ignored warnings and
warnings treated as errors if the respective
options are specified.
- -style=<string> -
- Fallback style for reformatting after inserting fixes
- if there is no clang-format config file found.
-system-headers - Display the errors from system headers.
-warnings-as-errors=<string> -
Upgrades warnings to errors. Same format as
@@ -233,12 +232,13 @@ An overview of all the command-line opti
option, command-line option takes precedence. The effective
configuration can be inspected using -dump-config:
- $ clang-tidy -dump-config - --
+ $ clang-tidy -dump-config
---
Checks: '-*,some-check'
WarningsAsErrors: ''
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
+ FormatStyle: none
User: user
CheckOptions:
- key: some-check.SomeOption
More information about the cfe-commits
mailing list