[PATCH] D70701: Fix more VFS tests on Windows
Adrian McCarthy via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 25 16:10:19 PST 2019
amccarth created this revision.
amccarth added reviewers: rnk, vsapsai, arphaman, Bigcheese.
Herald added subscribers: dexonsmith, hiraditya.
Herald added a project: LLVM.
Since VFS paths can be in either Posix or Windows style, we have to use a more flexible definition of "absolute" path.
The key here is that FileSystem::makeAbsolute is now virtual, and the RedirectingFileSystem override checks for either concept of absolute before trying to make the path absolute by combining it with the current directory.
https://reviews.llvm.org/D70701
Files:
clang/test/VFS/vfsroot-include.c
clang/test/VFS/vfsroot-module.m
clang/test/VFS/vfsroot-with-overlay.c
llvm/include/llvm/Support/VirtualFileSystem.h
llvm/lib/Support/VirtualFileSystem.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70701.230984.patch
Type: text/x-patch
Size: 5386 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191126/c802f86c/attachment-0001.bin>
More information about the cfe-commits
mailing list