[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
Wed Nov 19 04:59:06 PST 2025
================
@@ -62,10 +61,32 @@ class DuplicateIncludeCallbacks : public PPCallbacks {
SmallVector<FileList> Files;
DuplicateIncludeCheck &Check;
const SourceManager &SM;
+ SmallVector<llvm::Regex> AllowedRegexes;
};
} // namespace
+DuplicateIncludeCheck::DuplicateIncludeCheck(StringRef Name,
+ ClangTidyContext *Context)
+ : ClangTidyCheck(Name, Context),
+ IgnoredFilesList(
+ llvm::ArrayRef<llvm::StringRef>(utils::options::parseStringList(
----------------
vbvictor wrote:
Sorry for late comment after approving
https://github.com/llvm/llvm-project/pull/168196
More information about the cfe-commits
mailing list