]> granicus.if.org Git - clang/commit
Support relative paths in VFSFromYAML
authorBen Langmuir <blangmuir@apple.com>
Tue, 4 Mar 2014 22:34:50 +0000 (22:34 +0000)
committerBen Langmuir <blangmuir@apple.com>
Tue, 4 Mar 2014 22:34:50 +0000 (22:34 +0000)
commit0366aa4b3f717fe4330ca128a4929ed2b7180f9e
tree7a77f84df115719a17f328dd8f75e0712e6f176d
parent5a37ee34c8094290014c510e282f7d92dd003ee9
Support relative paths in VFSFromYAML

Use llvm::sys::fs::make_absolute to get an absolute path before
matching. Also, allow "." directories to enable testing.  ".." is still
not supported, and will require crossing file system boundaries to
implement correctly.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202903 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/VirtualFileSystem.cpp
test/VFS/relative-path.c [new file with mode: 0644]