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

Devon Loehr via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 5 07:42:16 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:

Coming back to this after a while -- what goes wrong if this is true on a non-windows host?

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


More information about the llvm-commits mailing list