[clang] Implement src:*=sanitize for UBSan (PR #139772)
Vitaly Buka via cfe-commits
cfe-commits at lists.llvm.org
Tue May 13 22:30:33 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:
Probably don't do this yet.
Let's resolve for file, and then expand to the rest.
https://github.com/llvm/llvm-project/pull/139772
More information about the cfe-commits
mailing list