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

2018-06-04 Thread Andrew Savonichev via Phabricator via cfe-commits
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

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

2018-05-29 Thread Jonas Devlieghere via Phabricator via cfe-commits
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;

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

2018-05-23 Thread Andrew Savonichev via Phabricator via cfe-commits
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

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

2018-05-22 Thread Andrew Savonichev via Phabricator via cfe-commits
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

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

2018-05-22 Thread Andrew Savonichev via Phabricator via cfe-commits
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