[clang] [NoSanitizeList][NFI] Add containsPrefix to remove duplicated logics. (PR #142027)

Vitaly Buka via cfe-commits cfe-commits at lists.llvm.org
Thu May 29 19:19:57 PDT 2025


================
@@ -29,6 +29,8 @@ class SanitizerSpecialCaseList;
 class NoSanitizeList {
   std::unique_ptr<SanitizerSpecialCaseList> SSCL;
   SourceManager &SM;
+  bool containsPrefix(SanitizerMask Mask, StringRef Prefix, StringRef Name,
----------------
vitalybuka wrote:

we have one spot where we can use default, we will just pass {} there.

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


More information about the cfe-commits mailing list