Patch to fix incorrect handling of Windows path

I spent a bit of time playing with clang test on Windows…

This patch get another 20 clang tests to pass when compiled with MSVC.

It fixes detection of absolute path in llvm containing ‘’ and stripping of path containing multiple ‘\’ in clang. (somehow all ‘’ provided on the command-line are “doubled” when they are provided to the FileManager). Since path can contain multiple backslash, the second fix a border case bug.

This get test such as .\Preprocessor\include-macros.c to pass.

llvm-win32-path.patch (535 Bytes)

clang-win32-path.patch (501 Bytes)

Great, applied as r78823 / r78824.