[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:59:06 PDT 2025


vitalybuka wrote:

> > Would be simple just normalize patters on load? Same for queries?
> 
> I don't know what the implications of this are, but it seems much simpler at this point so we can try that instead.
> 
> I don't know what a query is in this context.

It's query parameter `SpecialCaseList::Matcher::match(StringRef Query)`

But it needs to be normalized on higher levels, when we know this is path.

Annoying part is that to normalize globs you need to '\' -> '/'.
But to do that you needs some glob parsing to distinguish escape sequence \ and real \ .

And then I don't know which one will be better.



NOTE: There is very simple option, no sure how acceptable.
1. Special list always exact / (for windows and posix)
2. 'query' on windows replace \ to / in file name.

This one must be easy to do.




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


More information about the llvm-commits mailing list