Home
last modified time | relevance | path

Searched refs:FromDef (Results 1 – 3 of 3) sorted by relevance

/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterGenericRedeclTest.cpp240 auto *FromDef = LastDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_ImportDefinitionAfterImportedPrototype() local
242 ASSERT_TRUE(FromDef->isThisDeclarationADefinition()); in TypedTest_ImportDefinitionAfterImportedPrototype()
245 Decl *ImportedDef = Import(FromDef, Lang_CXX03); in TypedTest_ImportDefinitionAfterImportedPrototype()
261 auto *FromDef = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_ImportPrototypeAfterImportedDefinition() local
263 ASSERT_TRUE(FromDef->isThisDeclarationADefinition()); in TypedTest_ImportPrototypeAfterImportedDefinition()
266 Decl *ImportedDef = Import(FromDef, Lang_CXX03); in TypedTest_ImportPrototypeAfterImportedDefinition()
329 auto *FromDef = FirstDeclMatcher<DeclTy>().match(FromTUDef, getPattern()); in TypedTest_ImportDefinitionThenPrototype() local
332 ASSERT_TRUE(FromDef->isThisDeclarationADefinition()); in TypedTest_ImportDefinitionThenPrototype()
335 Decl *ImportedDef = Import(FromDef, Lang_CXX03); in TypedTest_ImportDefinitionThenPrototype()
357 ASSERT_TRUE(FromDef->isThisDeclarationADefinition()); in TypedTest_ImportPrototypeThenDefinition()
[all …]
H A DASTImporterTest.cpp3855 auto FromDef = FirstDeclMatcher<RecordDecl>().match(FromTU1, Pattern); in TEST_P() local
3857 Decl *ImportedDef = Import(FromDef, Lang_C99); in TEST_P()
3873 auto FromDef = FirstDeclMatcher<RecordDecl>().match(FromTU1, Pattern); in TEST_P() local
3875 Decl *ImportedDef = Import(FromDef, Lang_CXX03); in TEST_P()
3895 Decl *ImportedDef = Import(FromDef, Lang_C99); in TEST_P()
5376 auto *FromDef = LastDeclMatcher<CXXRecordDecl>().match( in TEST_P() local
5379 ASSERT_NE(FromFwd, FromDef); in TEST_P()
5381 ASSERT_TRUE(FromDef->isThisDeclarationADefinition()); in TEST_P()
5382 ASSERT_EQ(FromFwd->getCanonicalDecl(), FromDef->getCanonicalDecl()); in TEST_P()
5512 auto *FromDef = in TEST_P() local
[all …]
/llvm-project-15.0.7/clang/lib/AST/
H A DASTImporter.cpp9024 } else if (ObjCInterfaceDecl *FromDef = FromClass->getDefinition()) { in ImportContext() local
9026 FromDef, ToClass, ASTNodeImporter::IDK_Basic)) in ImportContext()
9035 } else if (ObjCProtocolDecl *FromDef = FromProto->getDefinition()) { in ImportContext() local
9037 FromDef, ToProto, ASTNodeImporter::IDK_Basic)) in ImportContext()