Martin Storsjö 7e2afe83e8 [Windows] Don't try to wildcard expand paths starting with \\?\
Paths that start with `\\?\` are absolute paths, and aren't expected
to be used with wildcard expressions.

Previously, the `?` at the start of the path triggered the condition
for a potential wildcard, which caused the path to be split and
reassembled. In builds with `LLVM_WINDOWS_PREFER_FORWARD_SLASH=ON`,
this caused a path like e.g. `\\?\D:\tmp\hello.cpp` to be reassembled
into `\\?\D:\tmp/hello.cpp` which isn't a valid path (as such
absolute paths must use backslashes consistently).

This fixes https://github.com/mstorsjo/llvm-mingw/issues/280.

I'm not sure if there's any straightforward way to add a test
for this case, unfortunately.

Differential Revision: https://reviews.llvm.org/D126675
2022-06-01 11:25:49 +03:00
..
2022-02-06 22:18:35 -08:00
2022-02-06 22:18:35 -08:00
2022-03-11 11:41:32 +01:00
2022-03-11 11:41:32 +01:00
2022-05-17 09:11:45 -07:00
2022-05-17 09:38:13 +02:00
2022-03-11 11:41:32 +01:00
2022-03-11 11:41:32 +01:00
2022-03-14 17:29:08 +01:00
2022-03-11 11:41:32 +01:00
2022-03-11 11:41:32 +01:00
2022-02-06 22:18:35 -08:00
2021-11-06 19:31:18 -07:00
2022-03-11 11:41:32 +01:00