Home
last modified time | relevance | path

Searched refs:ToTU (Results 1 – 9 of 9) sorted by relevance

/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterGenericRedeclTest.cpp168 auto *ToTU = Prev->getTranslationUnitDecl(); in CheckPreviousDecl() local
170 ToTU, functionTemplateDecl()); in CheckPreviousDecl()
188 Decl *ToTU = ImportedD->getTranslationUnitDecl(); in TypedTest_PrototypeShouldBeImportedAsAPrototypeWhenThereIsNoDefinition() local
205 Decl *ToTU = ImportedD->getTranslationUnitDecl(); in TypedTest_DefinitionShouldBeImportedAsADefinition() local
224 Decl *ToTU = Imported0->getTranslationUnitDecl(); in TypedTest_ImportPrototypeAfterImportedPrototype() local
268 Decl *ToTU = ImportedDef->getTranslationUnitDecl(); in TypedTest_ImportPrototypeAfterImportedDefinition() local
291 Decl *ToTU = Imported0->getTranslationUnitDecl(); in TypedTest_ImportPrototypes() local
314 Decl *ToTU = Imported0->getTranslationUnitDecl(); in TypedTest_ImportDefinitions() local
337 Decl *ToTU = ImportedDef->getTranslationUnitDecl(); in TypedTest_ImportDefinitionThenPrototype() local
362 Decl *ToTU = ImportedDef->getTranslationUnitDecl(); in TypedTest_ImportPrototypeThenDefinition() local
[all …]
H A DASTImporterTest.cpp1677 Decl *ToTU = getToTuDecl( in TEST_P() local
1717 Decl *ToTU = getToTuDecl( in TEST_P() local
1808 Decl *ToTU = getToTuDecl( in TEST_P() local
2103 Decl *ToTU = getToTuDecl( in TEST_P() local
5220 ToTU, in TEST_P()
5726 static_cast<void>(ToTU); in TEST_P()
5870 static_cast<void>(ToTU); in TEST_P()
7382 CheckAST(ToTU, ToC); in TEST_P()
7506 CheckAST(ToTU, ToD2); in TEST_P()
7749 ToTU, in TEST_P()
[all …]
H A DASTImporterODRStrategiesTest.cpp260 Decl *ToTU = getToTuDecl(ToTUContent(), getLang()); in TypedTest_ImportAfter() local
261 auto *ToD = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportAfter()
268 ResultChecker(Result, ToTU, ToD); in TypedTest_ImportAfter()
273 static void CheckImportedAsNew(llvm::Expected<Decl *> &Result, Decl *ToTU, in CheckImportedAsNew()
279 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 2u); in CheckImportedAsNew()
292 Decl *ToTU, Decl *ToD) { in CheckImportNameConflict()
294 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 1u); in CheckImportNameConflict()
299 Decl *ToTU, Decl *ToD) { in CheckImportFoundExisting()
301 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 1u); in CheckImportFoundExisting()
H A DASTImporterFixtures.cpp110 void ASTImporterTestBase::lazyInitSharedState(TranslationUnitDecl *ToTU) { in lazyInitSharedState() argument
111 assert(ToTU); in lazyInitSharedState()
113 SharedStatePtr = std::make_shared<ASTImporterSharedState>(*ToTU); in lazyInitSharedState()
H A DStructuralEquivalenceTest.cpp782 auto *ToTU = get<1>(t); in TEST_F() local
784 FirstDeclMatcher<FieldDecl>().match(ToTU, fieldDecl(hasName("entry0"))); in TEST_F()
786 FirstDeclMatcher<RecordDecl>().match(ToTU, recordDecl(hasName("A"))); in TEST_F()
H A DASTImporterFixtures.h147 void lazyInitSharedState(TranslationUnitDecl *ToTU);
/llvm-project-15.0.7/clang/include/clang/AST/
H A DASTImporterSharedState.h50 ASTImporterSharedState(TranslationUnitDecl &ToTU) { in ASTImporterSharedState() argument
51 LookupTable = std::make_unique<ASTImporterLookupTable>(ToTU); in ASTImporterSharedState()
/llvm-project-15.0.7/clang/include/clang/CrossTU/
H A DCrossTranslationUnit.h209 void lazyInitImporterSharedSt(TranslationUnitDecl *ToTU);
/llvm-project-15.0.7/clang/lib/CrossTU/
H A DCrossTranslationUnit.cpp776 TranslationUnitDecl *ToTU) { in lazyInitImporterSharedSt() argument
778 ImporterSharedSt = std::make_shared<ASTImporterSharedState>(*ToTU); in lazyInitImporterSharedSt()