[clang-tools-extra] [clang-tidy] Add `IgnoredFilesList` option to `readability-duplicate-include` (PR #168196)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 18 13:17:53 PST 2025
================
@@ -33,3 +33,12 @@ Because of the intervening macro definitions, this code remains unchanged:
#define NDEBUG
#include "assertion.h"
// ...code with assertions disabled
+
+Options
+-------
+
+.. option:: IgnoredFilesList
+
+ A semicolon-separated list of regular expressions or filenames that are
+ allowed to be included multiple times without diagnostics. Matching is
+ performed against the textual include name. Default is an empty string.
----------------
vbvictor wrote:
Since we match by `textual include name`, can we remove other logic from `isAllowedDuplicate`? So we would only make one round of regex-matches instead of two.
https://github.com/llvm/llvm-project/pull/168196
More information about the cfe-commits
mailing list