Lines Matching refs:ToD
85 void ImportDefinitionIfNeeded(Decl *FromD, Decl *ToD = nullptr);
1856 void ASTNodeImporter::ImportDefinitionIfNeeded(Decl *FromD, Decl *ToD) { in ImportDefinitionIfNeeded() argument
1860 if (!ToD) { in ImportDefinitionIfNeeded()
1861 ToD = Importer.Import(FromD); in ImportDefinitionIfNeeded()
1862 if (!ToD) in ImportDefinitionIfNeeded()
1867 if (RecordDecl *ToRecord = cast_or_null<RecordDecl>(ToD)) { in ImportDefinitionIfNeeded()
1876 if (EnumDecl *ToEnum = cast_or_null<EnumDecl>(ToD)) { in ImportDefinitionIfNeeded()
2251 TranslationUnitDecl *ToD = in VisitTranslationUnitDecl() local
2254 Importer.Imported(D, ToD); in VisitTranslationUnitDecl()
2256 return ToD; in VisitTranslationUnitDecl()
4412 ValueDecl *ToD = cast_or_null<ValueDecl>(Importer.Import(E->getDecl())); in VisitDeclRefExpr() local
4413 if (!ToD) in VisitDeclRefExpr()
4430 ToD, in VisitDeclRefExpr()
4670 Decl *ToD = Pos->second; in Import() local
4671 Importer.ImportDefinitionIfNeeded(FromD, ToD); in Import()
4672 return ToD; in Import()
4676 Decl *ToD = Importer.Visit(FromD); in Import() local
4677 if (!ToD) in Import()
4681 ImportedDecls[FromD] = ToD; in Import()
4697 ToTag->setTypedefNameForAnonDecl(cast<TypedefNameDecl>(ToD)); in Import()
4705 return ToD; in Import()