[clang-tools-extra] clang tidy: add header ignore option to include duplicate files (PR #167046)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 8 12:55:13 PST 2025


================
@@ -33,3 +33,21 @@ Because of the intervening macro definitions, this code remains unchanged:
   #define NDEBUG
   #include "assertion.h"
   // ...code with assertions disabled
+
+Option: ``AllowedDuplicateIncludes``
----------------
vbvictor wrote:

Let's name it `IgnoreHeaders`, see https://clang.llvm.org/extra/clang-tidy/checks/misc/include-cleaner.html.

Just copy documentation from there

https://github.com/llvm/llvm-project/pull/167046


More information about the cfe-commits mailing list