summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Basic/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-10-05 13:55:20 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-10-05 13:55:20 +0000
commit7708b2a4b658f1c2cafd0b8a2828c0d52dd739da (patch)
treef5847e14c31d73afc5b1649e1275cb861fd56dfb /clang/unittests/Basic/VirtualFileSystemTest.cpp
parenta25dcfd9069a8d2426a7db8779ba6dac01d74fa4 (diff)
downloadbcm5719-llvm-7708b2a4b658f1c2cafd0b8a2828c0d52dd739da.tar.gz
bcm5719-llvm-7708b2a4b658f1c2cafd0b8a2828c0d52dd739da.zip
[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 llvm-svn: 249316
Diffstat (limited to 'clang/unittests/Basic/VirtualFileSystemTest.cpp')
-rw-r--r--clang/unittests/Basic/VirtualFileSystemTest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/unittests/Basic/VirtualFileSystemTest.cpp b/clang/unittests/Basic/VirtualFileSystemTest.cpp
index 4e5ec874ba2..5362e599431 100644
--- a/clang/unittests/Basic/VirtualFileSystemTest.cpp
+++ b/clang/unittests/Basic/VirtualFileSystemTest.cpp
@@ -43,6 +43,12 @@ public:
openFileForRead(const Twine &Path) override {
llvm_unreachable("unimplemented");
}
+ llvm::ErrorOr<std::string> getCurrentWorkingDirectory() const override {
+ return std::string();
+ }
+ std::error_code setCurrentWorkingDirectory(const Twine &Path) override {
+ return std::error_code();
+ }
struct DirIterImpl : public clang::vfs::detail::DirIterImpl {
std::map<std::string, vfs::Status> &FilesAndDirs;
OpenPOWER on IntegriCloud