From d1da9cc654b4560bebb96f2b82923b7cab2e761e Mon Sep 17 00:00:00 2001 From: cyy Date: Thu, 28 Mar 2024 10:10:43 +0000 Subject: [PATCH] [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 --- .clang-tidy | 1 + 1 file changed, 1 insertion(+) diff --git a/.clang-tidy b/.clang-tidy index 45b4374aa09cc..d0d74d154c6cf 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -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,