[clang] Implement src:*=sanitize for UBSan (PR #139772)

Vitaly Buka via cfe-commits cfe-commits at lists.llvm.org
Tue May 13 16:54:18 PDT 2025


================
@@ -44,7 +44,8 @@ bool NoSanitizeList::containsFunction(SanitizerMask Mask,
 
 bool NoSanitizeList::containsFile(SanitizerMask Mask, StringRef FileName,
                                   StringRef Category) const {
-  return SSCL->inSection(Mask, "src", FileName, Category);
+  bool allowList = SSCL->inSection(Mask, "src", FileName, "sanitize");
----------------
vitalybuka wrote:

I guess we need to move "sanitize" handling from ASTContext::isTypeIgnoredBySanitizer in here.

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


More information about the cfe-commits mailing list