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

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 6 10:26:58 PDT 2025


================
@@ -137,7 +137,7 @@ GlobPattern::create(StringRef S, std::optional<size_t> MaxSubPatterns) {
   GlobPattern Pat;
 
   // Store the prefix that does not contain any metacharacter.
-  size_t PrefixSize = S.find_first_of("?*[{\\");
+  size_t PrefixSize = S.find_first_of("?*[{\\/");
----------------
vitalybuka wrote:

And use it to pessimize only for IsSlashAgnostic here?

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


More information about the llvm-commits mailing list