mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
…c10d Fixes a broken header filters from #90699 and applies a few more clang-tidy fixes that are relevant from c10 and c10d. The header filter pattern was actually broken and the clang-tidy include pattern was redundant. Also fixed a few bugs in torch/distributed/c10d Pull Request resolved: https://github.com/pytorch/pytorch/pull/91178 Approved by: https://github.com/ezyang
46 lines
1.5 KiB
YAML
46 lines
1.5 KiB
YAML
---
|
|
# NOTE there must be no spaces before the '-', so put the comma last.
|
|
InheritParentConfig: true
|
|
Checks: '
|
|
bugprone-*,
|
|
-bugprone-forward-declaration-namespace,
|
|
-bugprone-macro-parentheses,
|
|
-bugprone-lambda-function-name,
|
|
-bugprone-reserved-identifier,
|
|
cppcoreguidelines-*,
|
|
-cppcoreguidelines-avoid-magic-numbers,
|
|
-cppcoreguidelines-avoid-non-const-global-variables,
|
|
-cppcoreguidelines-interfaces-global-init,
|
|
-cppcoreguidelines-macro-usage,
|
|
-cppcoreguidelines-owning-memory,
|
|
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
|
|
-cppcoreguidelines-pro-bounds-constant-array-index,
|
|
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
|
|
-cppcoreguidelines-pro-type-cstyle-cast,
|
|
-cppcoreguidelines-pro-type-reinterpret-cast,
|
|
-cppcoreguidelines-pro-type-static-cast-downcast,
|
|
-cppcoreguidelines-pro-type-union-access,
|
|
-cppcoreguidelines-pro-type-vararg,
|
|
-cppcoreguidelines-special-member-functions,
|
|
-cppcoreguidelines-non-private-member-variables-in-classes,
|
|
-facebook-hte-RelativeInclude,
|
|
hicpp-exception-baseclass,
|
|
hicpp-avoid-goto,
|
|
modernize-*,
|
|
-modernize-concat-nested-namespaces,
|
|
-modernize-return-braced-init-list,
|
|
-modernize-use-auto,
|
|
-modernize-use-default-member-init,
|
|
-modernize-use-using,
|
|
-modernize-use-trailing-return-type,
|
|
-modernize-use-nodiscard,
|
|
performance-*,
|
|
-performance-noexcept-move-constructor,
|
|
-performance-unnecessary-value-param,
|
|
'
|
|
HeaderFilterRegex: '^(c10/(?!test)|torch/csrc/(?!deploy/interpreter/cpython)).*$'
|
|
AnalyzeTemporaryDtors: false
|
|
WarningsAsErrors: '*'
|
|
CheckOptions:
|
|
...
|