hanchenye-llvm-project/clang/test/Preprocessor/Inputs
Volodymyr Sapsai e32ff09685 [Preprocessor] Fix crash emitting note with framework location for "file not found" error.
A filename can be remapped with a header map to point to a framework
header and we can find the corresponding framework without the header.
But if the original filename doesn't have a remapped framework name,
we'll fail to find its location and will dereference a null pointer
during diagnostics emission.

Fix by tracking remappings better and emit the note only if a framework
is found before any of the remappings.

rdar://problem/48883447

Reviewers: arphaman, erik.pilkington, jkorous

Reviewed By: arphaman

Subscribers: dexonsmith, cfe-commits

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

llvm-svn: 361779
2019-05-27 19:15:30 +00:00
..
TestFramework.framework
cycle
headermap-rel
headermap-rel2
include-header-missing-in-framework [Preprocessor] Fix crash emitting note with framework location for "file not found" error. 2019-05-27 19:15:30 +00:00
include-next-1 Improve the diagnostic for #include_next occurring in a file not found 2019-03-21 20:42:13 +00:00
include-next-2 Improve the diagnostic for #include_next occurring in a file not found 2019-03-21 20:42:13 +00:00
include-subdir Reland "[Clang][PP] Add the __FILE_NAME__ builtin macro" 2019-05-16 21:13:49 +00:00
microsoft-header-search
nonportable-hmaps