[cfe-dev] Patch to fix incorrect handling of Windows path

Baptiste Lepilleur baptiste.lepilleur at gmail.com
Tue Aug 11 13:45:47 PDT 2009


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090811/98f74e08/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-win32-path.patch
Type: application/octet-stream
Size: 535 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090811/98f74e08/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-win32-path.patch
Type: application/octet-stream
Size: 501 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090811/98f74e08/attachment-0001.obj>


More information about the cfe-dev mailing list