llvm-project/clang/lib
Raphael Isemann abc3d04e47 Use the VFS from the CompilerInvocation by default
Summary:
The CompilerInstance should create its default VFS from its CompilerInvocation. Right now the
user has to manually create the VFS before creating the FileManager even though
`-ivfsoverlay file.yaml` was passed via the CompilerInvocation (which is exactly how we worked
around this issue in `FrontendAction.cpp` so far).

This patch uses the invocation's VFS by default and also tests this behavior now from the
point of view of a program that uses the clang API.

Reviewers: benlangmuir, v.g.vassilev

Reviewed By: v.g.vassilev

Subscribers: mgorny, cfe-commits, v.g.vassilev

Differential Revision: https://reviews.llvm.org/D37416

llvm-svn: 313049
2017-09-12 16:54:53 +00:00
..
ARCMigrate Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. 2017-06-03 06:23:19 +00:00
AST Fix broken links to the Itanium CXX ABI 2017-09-12 00:21:17 +00:00
ASTMatchers Add objcImplementationDecl matcher 2017-09-10 21:00:15 +00:00
Analysis Recommit "Add _Float16 as a C/C++ source language type" 2017-09-08 15:15:00 +00:00
Basic [Basic] Update CMakeLists.txt to handle repo 2017-09-09 14:18:53 +00:00
CodeGen [MS-InlineAsm] Fix cast assertion with vector spills (PR34021) 2017-09-12 11:05:42 +00:00
Driver [ARM] Option for reading thread pointer from coprocessor register 2017-09-12 10:40:58 +00:00
Edit [clang] Fix format specifiers fixits for nested macros 2017-06-20 20:46:58 +00:00
Format clang-format: [JS] wrap and indent `goog.setTestOnly` calls. 2017-09-11 15:22:52 +00:00
Frontend Use the VFS from the CompilerInvocation by default 2017-09-12 16:54:53 +00:00
FrontendTool Update after LLVM change r309087 2017-07-26 09:10:17 +00:00
Headers [X86] Lower _mm[256|512]_[mask[z]]_avg_epu[8|16] intrinsics to native llvm IR 2017-09-12 07:46:32 +00:00
Index Recommit "Add _Float16 as a C/C++ source language type" 2017-09-08 15:15:00 +00:00
Lex Fix recording preamble's conditional stack in skipped PP branches. 2017-09-12 08:35:57 +00:00
Parse Recommit "Add _Float16 as a C/C++ source language type" 2017-09-08 15:15:00 +00:00
Rewrite [Analyzer] Add support for displaying cross-file diagnostic paths in HTML output 2017-08-03 18:12:22 +00:00
Sema [clang][SemaStmtAsm] small refactoring, NFC. 2017-09-10 12:39:21 +00:00
Serialization Recommit "Add _Float16 as a C/C++ source language type" 2017-09-08 15:15:00 +00:00
StaticAnalyzer [CSA] [NFC] Move AnalysisContext.h to AnalysisDeclContext.h 2017-09-06 21:45:03 +00:00
Tooling clang-rename: let -force handle multiple renames 2017-09-11 20:18:38 +00:00
CMakeLists.txt