[clang] [llvm] Make sanitizer special case list slash-agnostic (PR #149886)

Devon Loehr via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 5 10:22:37 PDT 2025


================
@@ -59,7 +59,8 @@ Error SpecialCaseList::Matcher::insert(StringRef Pattern, unsigned LineNumber,
   Glob->LineNo = LineNumber;
   // We must be sure to use the string in `Glob` rather than the provided
   // reference which could be destroyed before match() is called
-  if (auto Err = GlobPattern::create(Glob->Name, /*MaxSubPatterns=*/1024)
+  if (auto Err = GlobPattern::create(Glob->Name, /*MaxSubPatterns=*/1024,
+                                     /*IsSlashAgnostic=*/true)
----------------
DKLoehr wrote:

Ah, that's very sad to hear. Thanks for explaining it to me.

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


More information about the cfe-commits mailing list