llvm-project/clang/lib
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
..
ARCMigrate Recommit r359859 "[Attribute/Diagnostics] Print macro if definition is an attribute declaration" 2019-05-07 03:20:17 +00:00
AST [clang] Respect TerseOutput when printing lambdas 2019-05-27 16:20:45 +00:00
ASTMatchers Move TraversalKind enum to ast_type_traits 2019-05-16 17:57:38 +00:00
Analysis [CFG] Add branch to skip vbase inits when they're handled by superclass. 2019-05-24 23:37:08 +00:00
Basic [X86] Split multi-line chained assignments into single lines to avoid making clang-format create triangle shaped indentation. Simplify one if statement to remove a bunch of string matches. NFCI 2019-05-23 21:34:36 +00:00
CodeGen [NewPassManager] Add tuning option: LoopUnrolling [clang-change] 2019-05-24 17:40:52 +00:00
CrossTU [ASTImporter] Use llvm::Expected and Error in the importer API 2019-05-15 10:29:48 +00:00
Driver [Driver][RISCV] Simplify. NFC 2019-05-26 07:43:45 +00:00
Edit Range-style std::find{,_if} -> llvm::find{,_if}. NFC 2019-03-31 08:48:19 +00:00
Format [clang-format] Fixed self assignment 2019-05-15 20:29:33 +00:00
Frontend Do not resolve directory junctions for `-fdiagnostics-absolute-paths` on Windows. 2019-05-24 04:46:22 +00:00
FrontendTool [analyzer] List checker/plugin options in 3 categories: released, alpha, developer 2019-05-23 22:52:09 +00:00
Headers [OpenCL] Add support for the cl_arm_integer_dot_product extensions 2019-05-24 14:53:52 +00:00
Index [Index] Fix reported references in presence of template type aliases 2019-05-23 16:48:47 +00:00
Lex [Preprocessor] Fix crash emitting note with framework location for "file not found" error. 2019-05-27 19:15:30 +00:00
Parse [OpenCL] Support pipe keyword in C++ mode 2019-05-22 13:12:20 +00:00
Rewrite [Lex] Allow to consume tokens while preprocessing 2019-05-17 09:32:05 +00:00
Sema [OpenCL] Fix file-scope const sampler variable for 2.0 2019-05-27 11:19:07 +00:00
Serialization Permit static local structured bindings to be named from arbitrary scopes inside their declaring scope. 2019-05-25 01:04:17 +00:00
StaticAnalyzer [analyzer] Add a prunable note for skipping vbase inits in subclasses. 2019-05-24 23:37:11 +00:00
Tooling Rename clangToolingRefactor to clangToolingRefactoring for consistency with its directory 2019-05-25 00:27:19 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00