[all-commits] [llvm/llvm-project] ecb00a: [VFS] Add support to RedirectingFileSystem for map...

Nathan Hawes via All-commits all-commits at lists.llvm.org
Mon Feb 1 20:57:36 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ecb00a77624c94ce38fccf9b4095e026ecf14aed
      https://github.com/llvm/llvm-project/commit/ecb00a77624c94ce38fccf9b4095e026ecf14aed
  Author: Nathan Hawes <nhawes at apple.com>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    A clang/test/VFS/Inputs/vfsoverlay-directory-relative.yaml
    A clang/test/VFS/Inputs/vfsoverlay-directory.yaml
    A clang/test/VFS/directory.c
    M lldb/source/Host/common/FileSystem.cpp
    M llvm/include/llvm/Support/VirtualFileSystem.h
    M llvm/lib/Support/VirtualFileSystem.cpp
    M llvm/unittests/Support/VirtualFileSystemTest.cpp

  Log Message:
  -----------
  [VFS] Add support to RedirectingFileSystem for mapping a virtual directory to one in the external FS.

Previously file entries in the -ivfsoverlay yaml could map to a file in the
external file system, but directories had to list their contents in the form of
other file entries or directories. Allowing directory entries to map to a
directory in the external file system makes it possible to present an external
directory's contents in a different location and (in combination with the
'fallthrough' option) overlay one directory's contents on top of another.

rdar://problem/72485443
Differential Revision: https://reviews.llvm.org/D94844




More information about the All-commits mailing list