llvm-project/clang/unittests/AST
Raphael Isemann 164e0fc5c7 [ASTImporter] Implicitly declare parameters for imported ObjCMethodDecls
Summary:
When Sema encounters a ObjCMethodDecl definition it declares the implicit parameters for the ObjCMethodDecl.
When importing such a method with the ASTImporter we need to do the same for the imported method
otherwise we will crash when generating code (where CodeGen expects that this was called by Sema).

Note I had to implement Objective-C[++] support in Language.cpp as this is the first test for Objective-C and this
would otherwise just hit this 'not implemented' assert when running the unit test.

Reviewers: martong, a.sidorin, shafik

Reviewed By: martong

Subscribers: rnkovacs, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D71112
2019-12-06 18:50:32 +01:00
..
ASTContextParentMapTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ASTImporterFixtures.cpp [ASTImporter] Fix name conflict handling with different strategies 2019-08-27 11:36:10 +00:00
ASTImporterFixtures.h [ASTImporter] Fix name conflict handling with different strategies 2019-08-27 11:36:10 +00:00
ASTImporterGenericRedeclTest.cpp [ASTImporter] Separate unittest files 2019-05-13 10:06:25 +00:00
ASTImporterODRStrategiesTest.cpp [ASTImporter] 4th attempt to fix Windows buildbot test errors 2019-09-24 09:00:46 +00:00
ASTImporterTest.cpp [ASTImporter] Implicitly declare parameters for imported ObjCMethodDecls 2019-12-06 18:50:32 +01:00
ASTImporterVisibilityTest.cpp [Clang][ASTImporter] Added visibility check for ClassTemplateDecl. 2019-11-15 15:05:26 +01:00
ASTPrint.h [clang][OpeMP] Model OpenMP structured-block in AST (PR40563) 2019-03-20 16:32:36 +00:00
ASTTraverserTest.cpp [clang] Fix mismatched args constructing AddressSpaceAttr. 2019-08-07 11:12:43 +00:00
ASTTypeTraitsTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ASTVectorTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CMakeLists.txt [ASTImporter][NFC] Add comprehensive tests for ODR violation handling strategies 2019-09-23 09:32:07 +00:00
CommentLexer.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CommentParser.cpp [unittests][AST] CommentParser: don't name variable 'DEBUG' 2019-09-02 12:34:21 +00:00
CommentTextTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DataCollectionTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DeclMatcher.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DeclPrinterTest.cpp [AST] Use written names instead of `type-param-0-0` in more cases when printing types and decls. 2019-11-15 10:40:38 +01:00
DeclTest.cpp Prune include of DataLayout.h from include/clang/Basic/TargetInfo.h. NFC 2019-10-21 17:58:14 +00:00
EvaluateAsRValueTest.cpp [Tooling] Migrated APIs that take ownership of objects to unique_ptr 2019-08-30 09:29:34 +00:00
ExternalASTSourceTest.cpp ArrayRef'ized CompilerInvocation::CreateFromArgs 2019-08-27 22:13:31 +00:00
Language.cpp [ASTImporter] Implicitly declare parameters for imported ObjCMethodDecls 2019-12-06 18:50:32 +01:00
Language.h [c++20] Add support for explicit(bool), as described in P0892R2. 2019-05-09 03:59:21 +00:00
MatchVerifier.h [c++20] Add support for explicit(bool), as described in P0892R2. 2019-05-09 03:59:21 +00:00
NamedDeclPrinterTest.cpp Re-land r372863: [AST] Extract Decl::printNestedNameSpecifier helper from Decl::printQualifiedName 2019-09-25 15:46:04 +00:00
OMPStructuredBlockTest.cpp [AST] OMPStructuredBlockTest: avoid using multiline string literals in macros 2019-03-22 13:40:36 +00:00
RecursiveASTVisitorTest.cpp [Tooling] Migrated APIs that take ownership of objects to unique_ptr 2019-08-30 09:29:34 +00:00
SourceLocationTest.cpp Add FunctionDecl::getParameterSourceRange() 2019-12-03 08:21:55 -05:00
StmtPrinterTest.cpp [clang] Respect TerseOutput when printing lambdas 2019-05-27 16:20:45 +00:00
StructuralEquivalenceTest.cpp [AST] AST structural equivalence to work internally with pairs. 2019-09-02 11:01:09 +00:00