Fix header-filter for clang-tidy c10 and apply some fixes to c10 and … (#91178)

…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
This commit is contained in:
Aaron Gokaslan
2022-12-27 07:34:12 +00:00
committed by PyTorch MergeBot
parent bb24185ff4
commit 97db9fde69
28 changed files with 67 additions and 60 deletions

View File

@ -38,7 +38,7 @@ performance-*,
-performance-noexcept-move-constructor,
-performance-unnecessary-value-param,
'
HeaderFilterRegex: '(c10/(?!test)/|torch/csrc/(?!deploy/interpreter/cpython)).*'
HeaderFilterRegex: '^(c10/(?!test)|torch/csrc/(?!deploy/interpreter/cpython)).*$'
AnalyzeTemporaryDtors: false
WarningsAsErrors: '*'
CheckOptions: