[clang-tools-extra] 7ecbeac - [clang-tidy] fix incorrect argument names in documentation for ExtraArgs and ExtraArgsBefore (#120963)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 26 13:44:17 PST 2024
Author: hill
Date: 2024-12-26T22:44:14+01:00
New Revision: 7ecbeace0192963482beb6520706ef98ae4d8c0d
URL: https://github.com/llvm/llvm-project/commit/7ecbeace0192963482beb6520706ef98ae4d8c0d
DIFF: https://github.com/llvm/llvm-project/commit/7ecbeace0192963482beb6520706ef98ae4d8c0d.diff
LOG: [clang-tidy] fix incorrect argument names in documentation for ExtraArgs and ExtraArgsBefore (#120963)
Added:
Modified:
clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
clang-tools-extra/docs/clang-tidy/index.rst
Removed:
################################################################################
diff --git a/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp b/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
index 3451e1f6242576..fa8887e4639b4a 100644
--- a/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
+++ b/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
@@ -61,12 +61,12 @@ Configuration files:
globs can be specified as a list instead of a
string.
ExcludeHeaderFilterRegex - Same as '--exclude-header-filter'.
- ExtraArgs - Same as '--extra-args'.
- ExtraArgsBefore - Same as '--extra-args-before'.
+ ExtraArgs - Same as '--extra-arg'.
+ ExtraArgsBefore - Same as '--extra-arg-before'.
FormatStyle - Same as '--format-style'.
HeaderFileExtensions - File extensions to consider to determine if a
given diagnostic is located in a header file.
- HeaderFilterRegex - Same as '--header-filter-regex'.
+ HeaderFilterRegex - Same as '--header-filter'.
ImplementationFileExtensions - File extensions to consider to determine if a
given diagnostic is located in an
implementation file.
diff --git a/clang-tools-extra/docs/clang-tidy/index.rst b/clang-tools-extra/docs/clang-tidy/index.rst
index 8c79b4dc19393d..b7a366e874130e 100644
--- a/clang-tools-extra/docs/clang-tidy/index.rst
+++ b/clang-tools-extra/docs/clang-tidy/index.rst
@@ -293,8 +293,8 @@ An overview of all the command-line options:
globs can be specified as a list instead of a
string.
ExcludeHeaderFilterRegex - Same as '--exclude-header-filter'.
- ExtraArgs - Same as '--extra-args'.
- ExtraArgsBefore - Same as '--extra-args-before'.
+ ExtraArgs - Same as '--extra-arg'.
+ ExtraArgsBefore - Same as '--extra-arg-before'.
FormatStyle - Same as '--format-style'.
HeaderFileExtensions - File extensions to consider to determine if a
given diagnostic is located in a header file.
More information about the cfe-commits
mailing list