Skip to content

Commit 44c28dc

Browse files
committed
better option wording
1 parent 2617825 commit 44c28dc

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,9 @@ file, if any.
133133
static cl::opt<std::string> HeaderFilter("header-filter", desc(R"(
134134
Regular expression matching the names of the
135135
headers to output diagnostics from. Diagnostics
136-
from the main file and all non-system headers
137-
of each translation unit are always displayed.
138-
Set this option to an empty string to disable
139-
diagnostics from non-system headers.
136+
from all non-system headers are displayed by
137+
default. Diagnostics from the main file of
138+
each translation unit are always displayed.
140139
Can be used together with -line-filter.
141140
This option overrides the 'HeaderFilterRegex'
142141
option in .clang-tidy file, if any.

clang-tools-extra/docs/clang-tidy/index.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,9 @@ An overview of all the command-line options:
216216
.clang-tidy file, if any.
217217
--header-filter=<string> - Regular expression matching the names of the
218218
headers to output diagnostics from. Diagnostics
219-
from the main file and all non-system headers
220-
of each translation unit are always displayed.
221-
Set this option to an empty string to disable
222-
diagnostics from non-system headers.
219+
from all non-system headers are displayed by
220+
default. Diagnostics from the main file of
221+
each translation unit are always displayed.
223222
Can be used together with -line-filter.
224223
This option overrides the 'HeaderFilterRegex'
225224
option in .clang-tidy file, if any.

0 commit comments

Comments
 (0)