Skip to content

[clang-tidy] align all help message in run-clang-tidy #96199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,20 +261,20 @@ def main():
parser.add_argument(
"-allow-enabling-alpha-checkers",
action="store_true",
help="allow alpha checkers from clang-analyzer.",
help="Allow alpha checkers from clang-analyzer.",
)
parser.add_argument(
"-clang-tidy-binary", metavar="PATH", help="path to clang-tidy binary"
"-clang-tidy-binary", metavar="PATH", help="Path to clang-tidy binary."
)
parser.add_argument(
"-clang-apply-replacements-binary",
metavar="PATH",
help="path to clang-apply-replacements binary",
help="Path to clang-apply-replacements binary.",
)
parser.add_argument(
"-checks",
default=None,
help="checks filter, when not specified, use clang-tidy default",
help="Checks filter, when not specified, use clang-tidy default.",
)
config_group = parser.add_mutually_exclusive_group()
config_group.add_argument(
Expand Down Expand Up @@ -307,7 +307,7 @@ def main():
parser.add_argument(
"-header-filter",
default=None,
help="regular expression matching the names of the "
help="Regular expression matching the names of the "
"headers to output diagnostics from. Diagnostics from "
"the main file of each translation unit are always "
"displayed.",
Expand Down Expand Up @@ -347,19 +347,22 @@ def main():
"-j",
type=int,
default=0,
help="number of tidy instances to be run in parallel.",
help="Number of tidy instances to be run in parallel.",
)
parser.add_argument(
"files", nargs="*", default=[".*"], help="files to be processed (regex on path)"
"files",
nargs="*",
default=[".*"],
help="Files to be processed (regex on path).",
)
parser.add_argument("-fix", action="store_true", help="apply fix-its")
parser.add_argument("-fix", action="store_true", help="apply fix-its.")
parser.add_argument(
"-format", action="store_true", help="Reformat code after applying fixes"
"-format", action="store_true", help="Reformat code after applying fixes."
)
parser.add_argument(
"-style",
default="file",
help="The style of reformat code after applying fixes",
help="The style of reformat code after applying fixes.",
)
parser.add_argument(
"-use-color",
Expand Down Expand Up @@ -388,7 +391,7 @@ def main():
help="Additional argument to prepend to the compiler command line.",
)
parser.add_argument(
"-quiet", action="store_true", help="Run clang-tidy in quiet mode"
"-quiet", action="store_true", help="Run clang-tidy in quiet mode."
)
parser.add_argument(
"-load",
Expand All @@ -400,7 +403,7 @@ def main():
parser.add_argument(
"-warnings-as-errors",
default=None,
help="Upgrades warnings to errors. Same format as '-checks'",
help="Upgrades warnings to errors. Same format as '-checks'.",
)
args = parser.parse_args()

Expand Down
Loading