]> granicus.if.org Git - clang/commit
[VFS] Add working directories to every virtual file system.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 5 Oct 2015 13:55:20 +0000 (13:55 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 5 Oct 2015 13:55:20 +0000 (13:55 +0000)
commit5b1864da9ca2054e158efa4042f448be057438ec
tree0a3d7a12ebc56bc5ec876d3807d975fb31e17d5d
parent9414f34c578b4fa0a2755b727c65aa4d03c951a0
[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.

Differential Revision: http://reviews.llvm.org/D13430

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