Skip to content

Commit 6b29965

Browse files
authored
[clang-tidy] align all help message in run-clang-tidy (#96199)
1 parent e6c2216 commit 6b29965

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

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

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -261,20 +261,20 @@ def main():
261261
parser.add_argument(
262262
"-allow-enabling-alpha-checkers",
263263
action="store_true",
264-
help="allow alpha checkers from clang-analyzer.",
264+
help="Allow alpha checkers from clang-analyzer.",
265265
)
266266
parser.add_argument(
267-
"-clang-tidy-binary", metavar="PATH", help="path to clang-tidy binary"
267+
"-clang-tidy-binary", metavar="PATH", help="Path to clang-tidy binary."
268268
)
269269
parser.add_argument(
270270
"-clang-apply-replacements-binary",
271271
metavar="PATH",
272-
help="path to clang-apply-replacements binary",
272+
help="Path to clang-apply-replacements binary.",
273273
)
274274
parser.add_argument(
275275
"-checks",
276276
default=None,
277-
help="checks filter, when not specified, use clang-tidy default",
277+
help="Checks filter, when not specified, use clang-tidy default.",
278278
)
279279
config_group = parser.add_mutually_exclusive_group()
280280
config_group.add_argument(
@@ -307,7 +307,7 @@ def main():
307307
parser.add_argument(
308308
"-header-filter",
309309
default=None,
310-
help="regular expression matching the names of the "
310+
help="Regular expression matching the names of the "
311311
"headers to output diagnostics from. Diagnostics from "
312312
"the main file of each translation unit are always "
313313
"displayed.",
@@ -347,19 +347,22 @@ def main():
347347
"-j",
348348
type=int,
349349
default=0,
350-
help="number of tidy instances to be run in parallel.",
350+
help="Number of tidy instances to be run in parallel.",
351351
)
352352
parser.add_argument(
353-
"files", nargs="*", default=[".*"], help="files to be processed (regex on path)"
353+
"files",
354+
nargs="*",
355+
default=[".*"],
356+
help="Files to be processed (regex on path).",
354357
)
355-
parser.add_argument("-fix", action="store_true", help="apply fix-its")
358+
parser.add_argument("-fix", action="store_true", help="apply fix-its.")
356359
parser.add_argument(
357-
"-format", action="store_true", help="Reformat code after applying fixes"
360+
"-format", action="store_true", help="Reformat code after applying fixes."
358361
)
359362
parser.add_argument(
360363
"-style",
361364
default="file",
362-
help="The style of reformat code after applying fixes",
365+
help="The style of reformat code after applying fixes.",
363366
)
364367
parser.add_argument(
365368
"-use-color",
@@ -388,7 +391,7 @@ def main():
388391
help="Additional argument to prepend to the compiler command line.",
389392
)
390393
parser.add_argument(
391-
"-quiet", action="store_true", help="Run clang-tidy in quiet mode"
394+
"-quiet", action="store_true", help="Run clang-tidy in quiet mode."
392395
)
393396
parser.add_argument(
394397
"-load",
@@ -400,7 +403,7 @@ def main():
400403
parser.add_argument(
401404
"-warnings-as-errors",
402405
default=None,
403-
help="Upgrades warnings to errors. Same format as '-checks'",
406+
help="Upgrades warnings to errors. Same format as '-checks'.",
404407
)
405408
args = parser.parse_args()
406409

0 commit comments

Comments
 (0)