Home
last modified time | relevance | path

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

/external/llvm-project/clang/lib/CrossTU/
DCrossTranslationUnit.cpp718 auto *ToDecl = cast<T>(*ToDeclOrError); in importDefinitionImpl() local
719 assert(hasBodyOrInit(ToDecl) && "Imported Decl should have body or init."); in importDefinitionImpl()
723 ToDecl->getASTContext().getParentMapContext().clear(); in importDefinitionImpl()
725 return ToDecl; in importDefinitionImpl()
/external/llvm-project/clang/docs/
DLibASTImporter.rst51 Decl *ToDecl = nullptr;
55 ToDecl = FoundDecl;
64 Import dependent declarations and types of ToDecl;
65 ToDecl = create a new AST node in "to" Ctx;
68 return ToDecl;
/external/clang/lib/AST/
DASTDiagnostic.cpp1125 TemplateDecl *ToDecl = GetTemplateDecl(ToIter); in DiffTemplateTemplates() local
1126 Tree.SetTemplateTemplateDiff(FromDecl, ToDecl, FromIter.isEnd() && FromDecl, in DiffTemplateTemplates()
1127 ToIter.isEnd() && ToDecl); in DiffTemplateTemplates()
1128 Tree.SetSame(FromDecl && ToDecl && in DiffTemplateTemplates()
1129 FromDecl->getCanonicalDecl() == ToDecl->getCanonicalDecl()); in DiffTemplateTemplates()
DASTImporter.cpp1774 TypedefNameDecl *ToDecl in VisitTypedefType() local
1776 if (!ToDecl) in VisitTypedefType()
1779 return Importer.getToContext().getTypeDeclType(ToDecl); in VisitTypedefType()
1859 RecordDecl *ToDecl in VisitRecordType() local
1861 if (!ToDecl) in VisitRecordType()
1864 return Importer.getToContext().getTagDeclType(ToDecl); in VisitRecordType()
1868 EnumDecl *ToDecl in VisitEnumType() local
1870 if (!ToDecl) in VisitEnumType()
1873 return Importer.getToContext().getTagDeclType(ToDecl); in VisitEnumType()
/external/llvm-project/clang/lib/AST/
DASTDiagnostic.cpp1165 TemplateDecl *ToDecl = GetTemplateDecl(ToIter); in DiffTemplateTemplates() local
1166 Tree.SetTemplateTemplateDiff(FromDecl, ToDecl, FromIter.isEnd() && FromDecl, in DiffTemplateTemplates()
1167 ToIter.isEnd() && ToDecl); in DiffTemplateTemplates()
1168 Tree.SetSame(FromDecl && ToDecl && in DiffTemplateTemplates()
1169 FromDecl->getCanonicalDecl() == ToDecl->getCanonicalDecl()); in DiffTemplateTemplates()
DASTImporter.cpp6522 auto ToDecl = importChecked(Err, E->getDecl()); in VisitDeclRefExpr() local
6547 Importer.getToContext(), ToQualifierLoc, ToTemplateKeywordLoc, ToDecl, in VisitDeclRefExpr()
7436 auto ToDecl = importChecked(Err, E->getFoundDecl().getDecl()); in VisitMemberExpr() local
7443 DeclAccessPair::make(ToDecl, E->getFoundDecl().getAccess()); in VisitMemberExpr()
/external/llvm-project/clang/unittests/AST/
DASTImporterTest.cpp3768 auto *ToDecl = FirstDeclMatcher<ClassTemplateDecl>().match( in TEST_P() local
3780 EXPECT_EQ(ToDecl, ImportedDef->getPreviousDecl()); in TEST_P()
3781 EXPECT_EQ(ToDecl->getTemplatedDecl(), in TEST_P()