llvm-project/clang/lib
Bruno Cardoso Lopes 919fc50034 [Modules][Objective-C] Use complete decl from module when diagnosing missing import
Summary:
Otherwise the definition (first found) for ObjCInterfaceDecl's might
precede the module one, which will eventually lead to crash, since
diagnoseMissingImport needs one coming from a module.

This behavior changed after Richard's r342018, which started to look
into the definition of ObjCInterfaceDecls.

rdar://problem/49237144

Reviewers: rsmith, arphaman

Subscribers: jkorous, dexonsmith, ributzka, cfe-commits

Tags: #clang

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

llvm-svn: 372039
2019-09-16 22:00:29 +00:00
..
ARCMigrate Removed some questionable default arguments from setters 2019-09-12 12:16:43 +00:00
AST [Clang Interpreter] Initial patch for the constexpr interpreter 2019-09-13 09:46:16 +00:00
ASTMatchers [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
Analysis [CFG] Add dumps for CFGElement and CFGElementRef 2019-09-12 19:52:34 +00:00
Basic Move some definitions from Sema to Basic to fix shared libs build 2019-09-16 13:58:59 +00:00
CodeGen [WebAssembly] Narrowing and widening SIMD ops 2019-09-13 22:54:41 +00:00
CrossTU [CrossTU] Fix problem with CrossTU AST load limit and progress messages. 2019-08-12 07:15:29 +00:00
DirectoryWatcher [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
Driver [Driver] Fix multiple bugs related to dependency file options: -M -MM -MD -MMD -MT -MQ 2019-09-14 06:01:22 +00:00
Edit [C++2a] Add __builtin_bit_cast, used to implement std::bit_cast 2019-07-02 18:28:13 +00:00
Format clang-format: Add support for formatting (some) lambdas with explicit template parameters. 2019-09-13 13:18:55 +00:00
Frontend [Support] Add overload writeFileAtomically(std::function Writer) 2019-09-13 20:08:27 +00:00
FrontendTool [analyzer] Don't run the analyzer for -analyzer-list-enabled-checkers 2019-09-12 18:53:48 +00:00
Headers Remove reliance on lax vector conversions from altivec.h and its test. 2019-09-13 05:19:12 +00:00
Index [clang][Index] Replace CodegenNameGenerator with ASTNameGenerator 2019-09-05 20:33:52 +00:00
Lex do not emit -Wunused-macros warnings in -frewrite-includes mode (PR15614) 2019-09-16 19:18:37 +00:00
Parse [OPENMP5.0]Add basic support for declare variant directive. 2019-09-13 20:18:17 +00:00
Rewrite [Rewrite][NFC] Add FIXMEs and tests for RemoveLineIfEmpty bug 2019-08-15 21:17:48 +00:00
Sema [Modules][Objective-C] Use complete decl from module when diagnosing missing import 2019-09-16 22:00:29 +00:00
Serialization [OpenMP] Fix OMPClauseReader::readClause() uninitialized variable warning. NFCI. 2019-09-15 16:05:20 +00:00
StaticAnalyzer [analyzer][NFC] Fix inconsistent references to checkers as "checks" 2019-09-12 19:09:24 +00:00
Tooling [clang-scan-deps] Fix for headers having the same name as a directory 2019-09-13 22:12:02 +00:00
CMakeLists.txt Reland [clang] DirectoryWatcher 2019-07-12 20:34:10 +00:00