[PATCH] D47190: [Driver] Add -ivfsoverlay-lib option to load VFS from shared

Andrew Savonichev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 22 02:44:56 PDT 2018


asavonic created this revision.
Herald added a subscriber: mgorny.

This patch allows clang to use a VirtualFileSystem represented by a
shared library. This VFS will be used on top of the real file system.

Library specified -ivfsoverlay-lib by must export
`clang::vfs::FileSystem *__clang_create_vfs()' function.

Unlike -ivfsoverlay option, which allows to map one real file to
another, -ivfsoverlay-lib allows to use files from memory, or do any
kind of files preprocessing.


Repository:
  rC Clang

https://reviews.llvm.org/D47190

Files:
  include/clang/Driver/Options.td
  include/clang/Lex/HeaderSearchOptions.h
  lib/Frontend/CompilerInvocation.cpp
  unittests/Frontend/CMakeLists.txt
  unittests/Frontend/CompilerInstanceTest.cpp
  unittests/Frontend/VfsTestLib.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47190.147968.patch
Type: text/x-patch
Size: 7483 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180522/bdf0ef03/attachment-0001.bin>


More information about the cfe-commits mailing list