[clang] [test] Use {{/|\\}} to support more tests in Windows (PR #249343)

Steven Wu via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 6 08:50:59 PST 2026


https://github.com/cachemeifyoucan requested changes to this pull request.

I don't like this. This actually makes the windows test really hard to write.

Currently, windows tests mostly still prints Unix path separator if that is from the input unless you append the correct style or canonicalize. The tricky part is often the mixed path style during llvm lit testing.

Few fix options in my mind is:
* Teach tools to canonicalize based on env so we can test with Unix format 
* Teach FileCheck to accept all path style.

Making all path separator regex match is really heavy cost on user. 

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


More information about the cfe-commits mailing list