[PATCH] D95092: [VFS] Add a WorkingDirectoryFileSystem

Jonas Devlieghere via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 20 14:17:04 PST 2021


JDevlieghere created this revision.
JDevlieghere added a reviewer: dexonsmith.
Herald added a subscriber: hiraditya.
JDevlieghere requested review of this revision.
Herald added a project: LLVM.

This patch implements Duncan's suggestion from D94811 <https://reviews.llvm.org/D94811>. It allows us to extract the working directory logic from the virtual file system implementation. More specifically, it enables handling of purely virtual working directories in the RedirectingFileSystem. Currently, setting a working directory that does not exist in the RedirectingFileSystem's "underlying filesystem", disables falthrough to avoid inconsistencies.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D95092

Files:
  llvm/include/llvm/Support/VirtualFileSystem.h
  llvm/lib/Support/VirtualFileSystem.cpp
  llvm/unittests/Support/VirtualFileSystemTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95092.318005.patch
Type: text/x-patch
Size: 5732 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210120/591e28a0/attachment.bin>


More information about the llvm-commits mailing list