Files
pytorch/torch/csrc/jit/runtime/static/.clang-tidy
Scott Ramsby 842a072fd3 [codemod] Fix clang-tidy command line doc comments (#149524)
Summary:
Fixes the comments to match the latest updates to the checked-in tools.

Search/replace applied in this order:
* `# /fbsource/tools/lint/clangtidy/clang-tidy-platform010 -list-checks` -> `# ~/fbsource/tools/lint/clangtidy/clang-tidy-platform010-clang-17 -list-checks`
* `# ~/fbsource/tools/lint/clangtidy/clang-tidy-platform010 -list-checks` -> `# ~/fbsource/tools/lint/clangtidy/clang-tidy-platform010-clang-17 -list-checks`
* `fbsource/tools/lint/clangtidy/clang-tidy-platform010 -list-checks` -> `fbsource/tools/lint/clangtidy/clang-tidy-platform010-clang-17 -list-checks`

Test Plan: CI

Reviewed By: johnkearney

Differential Revision: D71431516

Pull Request resolved: https://github.com/pytorch/pytorch/pull/149524
Approved by: https://github.com/janeyx99
2025-03-19 19:22:11 +00:00

21 lines
728 B
YAML

# NOTE there must be no spaces before the '-', so put the comma after.
# When making changes, be sure to verify the output of the following command to ensure
# the desired checks are enabled (run from the directory containing a .clang-tidy file):
# ~/fbsource/tools/lint/clangtidy/clang-tidy-platform010-clang-17 -list-checks
# NOTE: Please don't disable inheritance from the parent to make sure that common checks get propagated.
# Remove noisy checks which are not necessary.
---
InheritParentConfig: true
Checks: '
-cppcoreguidelines-avoid-c-arrays,
-modernize-avoid-c-arrays,
-modernize-loop-convert,
-readability-container-size-empty,
'
WarningsAsErrors: '
-facebook-hte-BadMemberName,
-facebook-hte-NullableReturn,
'
...