Skip to content

Commit 9bcc035

Browse files
committed
change naming
1 parent 876dd67 commit 9bcc035

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,11 @@ file, if any.
132132

133133
static cl::opt<std::string> HeaderFilter("header-filter", desc(R"(
134134
Regular expression matching the names of the
135-
headers to output diagnostics from. Diagnostics
136-
from all non-system headers are displayed by
137-
default. Diagnostics from the main file of
138-
each translation unit are always displayed.
135+
headers to output diagnostics from. The default
136+
value is '.*', i.e. diagnostics from all non-system
137+
headers are displayed by default. Diagnostics
138+
from the main file of each translation unit are
139+
always displayed.
139140
Can be used together with -line-filter.
140141
This option overrides the 'HeaderFilterRegex'
141142
option in .clang-tidy file, if any.

clang-tools-extra/clang-tidy/tool/run-clang-tidy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,8 @@ async def main() -> None:
470470
default=None,
471471
help="Regular expression matching the names of the "
472472
"headers to output diagnostics from. Diagnostics from "
473-
"the main file and all non-system headers of each "
474-
"translation unit are always displayed.",
473+
"the main file of each translation unit are always "
474+
"displayed.",
475475
)
476476
parser.add_argument(
477477
"-source-filter",

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,11 @@ An overview of all the command-line options:
215215
This option overrides the 'FormatStyle` option in
216216
.clang-tidy file, if any.
217217
--header-filter=<string> - Regular expression matching the names of the
218-
headers to output diagnostics from. Diagnostics
219-
from all non-system headers are displayed by
220-
default. Diagnostics from the main file of
221-
each translation unit are always displayed.
218+
headers to output diagnostics from. The default
219+
value is '.*', i.e. diagnostics from all non-system
220+
headers are displayed by default. Diagnostics
221+
from the main file of each translation unit are
222+
always displayed.
222223
Can be used together with -line-filter.
223224
This option overrides the 'HeaderFilterRegex'
224225
option in .clang-tidy file, if any.

0 commit comments

Comments
 (0)