[clang] [test] Use {{/|\\}} to support more tests in Windows (PR #249343)
Ian Anderson via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 6 13:07:15 PST 2026
ian-twilightcoder wrote:
> 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.
Looks like it wasn't as quick and easy as I thought anyway, never mind.
https://github.com/llvm/llvm-project/pull/249343
More information about the cfe-commits
mailing list