[clang-tools-extra] [clang-tidy] Add IgnoredRegex to 'bugprone-suspicious-include' (PR #160958)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 4 15:09:33 PDT 2025
================
@@ -57,6 +62,10 @@ void SuspiciousIncludePPCallbacks::InclusionDirective(
if (IncludeTok.getIdentifierInfo()->getPPKeywordID() == tok::pp_import)
return;
+ if (Check.IgnoredRegex.has_value())
+ if (llvm::Regex Regex{Check.IgnoredRegex.value()}; Regex.match(FileName))
+ return;
----------------
HazardyKnusperkeks wrote:
Certainly.
https://github.com/llvm/llvm-project/pull/160958
More information about the cfe-commits
mailing list