]> granicus.if.org Git - clang/commit
Add a VFSFromYAML class and a parser to create it
authorBen Langmuir <blangmuir@apple.com>
Fri, 21 Feb 2014 23:39:37 +0000 (23:39 +0000)
committerBen Langmuir <blangmuir@apple.com>
Fri, 21 Feb 2014 23:39:37 +0000 (23:39 +0000)
commit9298d56cfbc5abd66ec296f7ea1273dd25339ed6
treee65e862069a6f70ef5f2adf3724760ecc7f5e810
parent9192e3bb4ad02fde472780faff5ee4d0eb272775
Add a VFSFromYAML class and a parser to create it

Provides a way to create a virtual file system using a YAML file that
supports mapping a file to a path on an 'external' file system. The
external file system will typically be the 'real' file system, but for
testing it can be changed.

A future patch will add a clang option to allow the user to specify such
a file and overlay it, but for now this code is only exercised by the
unit tests.

Differential Revision: http://llvm-reviews.chandlerc.com/D2835

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201905 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/VirtualFileSystem.h
lib/Basic/VirtualFileSystem.cpp
unittests/Basic/VirtualFileSystemTest.cpp