]> granicus.if.org Git - clang/commit
[vfs] Don't bail out after a missing -ivfsoverlay file
authorBen Langmuir <blangmuir@apple.com>
Fri, 23 Mar 2018 17:37:27 +0000 (17:37 +0000)
committerBen Langmuir <blangmuir@apple.com>
Fri, 23 Mar 2018 17:37:27 +0000 (17:37 +0000)
commite403c97d4e76caa48b2966be37c681a373eb5a5b
treea85eabafe2ab31d415a6bef212a3dc389c66a179
parentbb7269ae797f282e27e47eb4ebedfa6abe826e9e
[vfs] Don't bail out after a missing -ivfsoverlay file

This make -ivfsoverlay behave more like other fatal errors (e.g. missing
-include file) by skipping the missing file instead of bailing out of
the whole compilation. This makes it possible for libclang to still
provide some functionallity as well as to correctly produce the fatal
error diagnostic (previously we lost the diagnostic in libclang since
there was no TU to tie it to).

rdar://33385423

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@328337 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/PrecompiledPreamble.h
lib/Frontend/ASTUnit.cpp
lib/Frontend/CompilerInstance.cpp
lib/Frontend/CompilerInvocation.cpp
lib/Frontend/PrecompiledPreamble.cpp
test/Index/missing_vfs.c [new file with mode: 0644]
test/VFS/Inputs/MissingVFS/a.h [new file with mode: 0644]
test/VFS/Inputs/MissingVFS/module.modulemap [new file with mode: 0644]
test/VFS/Inputs/MissingVFS/vfsoverlay.yaml [new file with mode: 0644]
test/VFS/module_missing_vfs.m [new file with mode: 0644]