Skip to content

Commit

Permalink
[ClangTidy] Disable misc-include-cleaner (pytorch#122855)
Browse files Browse the repository at this point in the history
misc-include-cleaner was introduced in clang-tidy-17 as a way to check missing and unused includes. However, there are lots of transitive headers in PyTorch and it would take enormous efforts to add related annotations to them in order to direct this checker. For this reason, it's better to disable it now.
Pull Request resolved: pytorch#122855
Approved by: https://github.com/cpuhrsch
  • Loading branch information
cyyever authored and pytorchmergebot committed Mar 28, 2024
1 parent 8c8e4e3 commit d1da9cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ hicpp-exception-baseclass,
hicpp-avoid-goto,
misc-*,
-misc-const-correctness,
-misc-include-cleaner,
-misc-use-anonymous-namespace,
-misc-unused-parameters,
-misc-no-recursion,
Expand Down

0 comments on commit d1da9cc

Please sign in to comment.