Skip to content

Commit 7ecbeac

Browse files
authored
[clang-tidy] fix incorrect argument names in documentation for ExtraArgs and ExtraArgsBefore (#120963)
1 parent 2dfe1b4 commit 7ecbeac

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ Configuration files:
6161
globs can be specified as a list instead of a
6262
string.
6363
ExcludeHeaderFilterRegex - Same as '--exclude-header-filter'.
64-
ExtraArgs - Same as '--extra-args'.
65-
ExtraArgsBefore - Same as '--extra-args-before'.
64+
ExtraArgs - Same as '--extra-arg'.
65+
ExtraArgsBefore - Same as '--extra-arg-before'.
6666
FormatStyle - Same as '--format-style'.
6767
HeaderFileExtensions - File extensions to consider to determine if a
6868
given diagnostic is located in a header file.
69-
HeaderFilterRegex - Same as '--header-filter-regex'.
69+
HeaderFilterRegex - Same as '--header-filter'.
7070
ImplementationFileExtensions - File extensions to consider to determine if a
7171
given diagnostic is located in an
7272
implementation file.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ An overview of all the command-line options:
293293
globs can be specified as a list instead of a
294294
string.
295295
ExcludeHeaderFilterRegex - Same as '--exclude-header-filter'.
296-
ExtraArgs - Same as '--extra-args'.
297-
ExtraArgsBefore - Same as '--extra-args-before'.
296+
ExtraArgs - Same as '--extra-arg'.
297+
ExtraArgsBefore - Same as '--extra-arg-before'.
298298
FormatStyle - Same as '--format-style'.
299299
HeaderFileExtensions - File extensions to consider to determine if a
300300
given diagnostic is located in a header file.

0 commit comments

Comments
 (0)