Home
last modified time | relevance | path

Searched refs:ToD (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/clang/include/clang/AST/
H A DASTImporterSharedState.h68 llvm::Optional<ASTImportError> getImportDeclErrorIfAny(Decl *ToD) const { in getImportDeclErrorIfAny() argument
69 auto Pos = ImportErrors.find(ToD); in getImportDeclErrorIfAny()
80 bool isNewDecl(const Decl *ToD) const { return NewDecls.count(ToD); } in isNewDecl() argument
82 void markAsNewDecl(Decl *ToD) { NewDecls.insert(ToD); } in markAsNewDecl() argument
H A DASTImporter.h260 void AddToLookupTable(Decl *ToD);
364 TranslationUnitDecl *GetFromTU(Decl *ToD);
370 llvm::Optional<DeclT *> getImportedFromDecl(const DeclT *ToD) const { in getImportedFromDecl() argument
371 auto FromI = ImportedFromDecls.find(ToD); in getImportedFromDecl()
549 void RegisterImportedDecl(Decl *FromD, Decl *ToD);
/llvm-project-15.0.7/clang/lib/AST/
H A DASTImporter.cpp1738 if (ToD) in ImportDeclParts()
1757 if (ToD) in ImportDeclParts()
2371 if (ToD) in VisitNamespaceDecl()
2492 if (ToD) in VisitTypedefNameDecl()
2656 if (ToD) in VisitLabelDecl()
2695 if (ToD) in VisitEnumDecl()
2809 if (ToD) in VisitRecordDecl()
3040 if (ToD) in VisitEnumConstantDecl()
3332 if (ToD) in VisitFunctionDecl()
3711 if (ToD) in VisitFieldDecl()
[all …]
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterODRStrategiesTest.cpp261 auto *ToD = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportAfter() local
268 ResultChecker(Result, ToTU, ToD); in TypedTest_ImportAfter()
274 Decl *ToD) { in CheckImportedAsNew()
278 EXPECT_NE(ImportedD, ToD); in CheckImportedAsNew()
292 Decl *ToTU, Decl *ToD) { in CheckImportNameConflict()
299 Decl *ToTU, Decl *ToD) { in CheckImportFoundExisting()
H A DASTImporterTest.cpp2381 EXPECT_TRUE(ToD); in TEST_P()
2407 EXPECT_TRUE(ToD); in TEST_P()
2433 EXPECT_TRUE(ToD); in TEST_P()
3681 EXPECT_TRUE(ToD); in TEST_P()
6767 ASSERT_TRUE(ToD); in TEST_P()
6799 ASSERT_TRUE(ToD); in TEST_P()
7082 ASSERT_TRUE(ToD); in TEST_P()
7105 ASSERT_TRUE(ToD); in TEST_P()
7123 ASSERT_TRUE(ToD); in TEST_P()
7223 ASSERT_TRUE(ToD); in TEST_P()
[all …]
H A DASTImporterGenericRedeclTest.cpp191 auto *ToD = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_PrototypeShouldBeImportedAsAPrototypeWhenThereIsNoDefinition() local
192 EXPECT_TRUE(ImportedD == ToD); in TypedTest_PrototypeShouldBeImportedAsAPrototypeWhenThereIsNoDefinition()
193 EXPECT_FALSE(ToD->isThisDeclarationADefinition()); in TypedTest_PrototypeShouldBeImportedAsAPrototypeWhenThereIsNoDefinition()
194 if (auto *ToT = dyn_cast<TemplateDecl>(ToD)) { in TypedTest_PrototypeShouldBeImportedAsAPrototypeWhenThereIsNoDefinition()
208 auto *ToD = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_DefinitionShouldBeImportedAsADefinition() local
209 EXPECT_TRUE(ToD->isThisDeclarationADefinition()); in TypedTest_DefinitionShouldBeImportedAsADefinition()
210 if (auto *ToT = dyn_cast<TemplateDecl>(ToD)) { in TypedTest_DefinitionShouldBeImportedAsADefinition()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTReaderDecl.cpp3427 Decl *ToD) { in inheritDefaultTemplateArgument() argument
3428 auto *To = cast<ParmDecl>(ToD); in inheritDefaultTemplateArgument()