asavonic updated this revision to Diff 149763.
asavonic added a comment.
Addressed CR comments, added a diagnostic if shared library was not loaded.
https://reviews.llvm.org/D47190
Files:
include/clang/Basic/DiagnosticFrontendKinds.td
include/clang/Driver/Options.td
include/clang/Lex/Head
JDevlieghere added a comment.
I don't know much about the VFS so I only did a superficial review.
Comment at: include/clang/Lex/HeaderSearchOptions.h:176
+ /// \brief The set of libraries with user-provided virtual filesystem.
+ std::vector VFSOverlayLibs;
asavonic updated this revision to Diff 148225.
asavonic added a comment.
Fixed warning about void* to function pointer cast.
Repository:
rC Clang
https://reviews.llvm.org/D47190
Files:
include/clang/Driver/Options.td
include/clang/Lex/HeaderSearchOptions.h
lib/Frontend/CompilerInvocati
asavonic updated this revision to Diff 147974.
asavonic added a comment.
Add license header.
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/F
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_vf