llvm-project/clang/unittests/Frontend
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
..
ASTUnitTest.cpp [Frontend] Fix printing policy for AST context loaded from file 2017-08-25 18:07:03 +00:00
CMakeLists.txt Use the VFS from the CompilerInvocation by default 2017-09-12 16:54:53 +00:00
CodeGenActionTest.cpp Refactor frontend InputKind to prepare for treating module maps as a distinct kind of input. 2017-04-26 18:57:40 +00:00
CompilerInstanceTest.cpp Use the VFS from the CompilerInvocation by default 2017-09-12 16:54:53 +00:00
FrontendActionTest.cpp Remove 'Filename' parameter from BeginSourceFileAction. 2017-06-09 01:36:10 +00:00
PCHPreambleTest.cpp [PCH] Allow VFS to be used for tests that generate PCH files 2017-09-11 15:03:23 +00:00