[ClangTidy] Disable misc-include-cleaner (#122855)

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: https://github.com/pytorch/pytorch/pull/122855
Approved by: https://github.com/cpuhrsch
This commit is contained in:
cyy 2024-03-28 10:10:43 +00:00 committed by PyTorch MergeBot
parent 8c8e4e31f2
commit d1da9cc654

View File

@ -36,6 +36,7 @@ hicpp-exception-baseclass,
hicpp-avoid-goto, hicpp-avoid-goto,
misc-*, misc-*,
-misc-const-correctness, -misc-const-correctness,
-misc-include-cleaner,
-misc-use-anonymous-namespace, -misc-use-anonymous-namespace,
-misc-unused-parameters, -misc-unused-parameters,
-misc-no-recursion, -misc-no-recursion,