[PATCH] D121425: [VFS] Add a new getVFSFromYAMLs API
Ben Barham via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 10 15:37:28 PST 2022
bnbarham created this revision.
bnbarham added reviewers: keith, dexonsmith, JDevlieghere, vsapsai.
Herald added a subscriber: hiraditya.
Herald added a project: All.
bnbarham requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
With `RedirectingFileSystem` simplified to handling only path mapping,
its old behaviour has to be implemented elsewhere.
Add a new API that takes multiple overlays (buffers or paths) and maps
them into an `OverlayFileSystem` taking into account the "fallthrough"
and "redirecting-with" properties in the YAML overlay specifications.
Note that this comes with a slight change in semantics, it is no longer
possible to chain VFS mappings. Given an overlay with a mapping of A ->
B and another overlay with a mapping B -> C, A will no longer map to C.
A -> C must be specified as its own mapping if this is desired.
Depends on D121421 <https://reviews.llvm.org/D121421> and D121423 <https://reviews.llvm.org/D121423> and D121424 <https://reviews.llvm.org/D121424>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D121425
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: D121425.414518.patch
Type: text/x-patch
Size: 21248 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220310/e7a5dc04/attachment.bin>
More information about the llvm-commits
mailing list