[PATCH] D13430: [VFS] Add an in-memory file system implementation.

Benjamin Kramer via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 5 03:17:40 PDT 2015


bkramer created this revision.
bkramer added a reviewer: klimek.
bkramer added a subscriber: cfe-commits.
Herald added a subscriber: klimek.

This is a simple file system tree of memory buffers that can be filled by a
client. In conjunction with an OverlayFS it can be used to make virtual
files accessible right next to physical files. This can be used as a
replacement for the virtual file handling in FileManager and which I intend
to remove eventually.

[VFS] Add working directories to every virtual file system.

For RealFileSystem this is getcwd()/chdir(), the synthetic file systems can
make up one for themselves. OverlayFileSystem now synchronizes the working
directories when a new FS is added to the overlay or the overlay working
directory is set. This allows purely artificial file systems that have zero
ties to the underlying disks.

http://reviews.llvm.org/D13430

Files:
  include/clang/Basic/VirtualFileSystem.h
  lib/Basic/VirtualFileSystem.cpp
  unittests/Basic/VirtualFileSystemTest.cpp
  unittests/Tooling/RewriterTestContext.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13430.36495.patch
Type: text/x-patch
Size: 23249 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151005/2a34cbaf/attachment-0001.bin>


More information about the cfe-commits mailing list