Lines Matching refs:ToD

84                          NamedDecl *&ToD, SourceLocation &Loc);
85 void ImportDefinitionIfNeeded(Decl *FromD, Decl *ToD = nullptr);
1885 NamedDecl *&ToD, in ImportDeclParts() argument
1906 ToD = cast_or_null<NamedDecl>(Importer.GetAlreadyImportedOrNull(D)); in ImportDeclParts()
1910 void ASTNodeImporter::ImportDefinitionIfNeeded(Decl *FromD, Decl *ToD) { in ImportDefinitionIfNeeded() argument
1914 if (!ToD) { in ImportDefinitionIfNeeded()
1915 ToD = Importer.Import(FromD); in ImportDefinitionIfNeeded()
1916 if (!ToD) in ImportDefinitionIfNeeded()
1921 if (RecordDecl *ToRecord = cast_or_null<RecordDecl>(ToD)) { in ImportDefinitionIfNeeded()
1930 if (EnumDecl *ToEnum = cast_or_null<EnumDecl>(ToD)) { in ImportDefinitionIfNeeded()
2303 TranslationUnitDecl *ToD = in VisitTranslationUnitDecl() local
2306 Importer.Imported(D, ToD); in VisitTranslationUnitDecl()
2308 return ToD; in VisitTranslationUnitDecl()
2316 NamedDecl *ToD; in VisitNamespaceDecl() local
2317 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitNamespaceDecl()
2319 if (ToD) in VisitNamespaceDecl()
2320 return ToD; in VisitNamespaceDecl()
2387 NamedDecl *ToD; in VisitTypedefNameDecl() local
2388 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitTypedefNameDecl()
2390 if (ToD) in VisitTypedefNameDecl()
2391 return ToD; in VisitTypedefNameDecl()
2464 NamedDecl *ToD; in VisitEnumDecl() local
2465 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitEnumDecl()
2467 if (ToD) in VisitEnumDecl()
2468 return ToD; in VisitEnumDecl()
2552 NamedDecl *ToD; in VisitRecordDecl() local
2553 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitRecordDecl()
2555 if (ToD) in VisitRecordDecl()
2556 return ToD; in VisitRecordDecl()
2681 NamedDecl *ToD; in VisitEnumConstantDecl() local
2682 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitEnumConstantDecl()
2684 if (ToD) in VisitEnumConstantDecl()
2685 return ToD; in VisitEnumConstantDecl()
2740 NamedDecl *ToD; in VisitFunctionDecl() local
2741 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitFunctionDecl()
2743 if (ToD) in VisitFunctionDecl()
2744 return ToD; in VisitFunctionDecl()
2958 NamedDecl *ToD; in VisitFieldDecl() local
2959 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitFieldDecl()
2961 if (ToD) in VisitFieldDecl()
2962 return ToD; in VisitFieldDecl()
3017 NamedDecl *ToD; in VisitIndirectFieldDecl() local
3018 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitIndirectFieldDecl()
3020 if (ToD) in VisitIndirectFieldDecl()
3021 return ToD; in VisitIndirectFieldDecl()
3087 NamedDecl *ToD; in VisitObjCIvarDecl() local
3088 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitObjCIvarDecl()
3090 if (ToD) in VisitObjCIvarDecl()
3091 return ToD; in VisitObjCIvarDecl()
3140 NamedDecl *ToD; in VisitVarDecl() local
3141 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitVarDecl()
3143 if (ToD) in VisitVarDecl()
3144 return ToD; in VisitVarDecl()
3327 NamedDecl *ToD; in VisitObjCMethodDecl() local
3328 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitObjCMethodDecl()
3330 if (ToD) in VisitObjCMethodDecl()
3331 return ToD; in VisitObjCMethodDecl()
3441 NamedDecl *ToD; in VisitObjCTypeParamDecl() local
3442 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitObjCTypeParamDecl()
3444 if (ToD) in VisitObjCTypeParamDecl()
3445 return ToD; in VisitObjCTypeParamDecl()
3470 NamedDecl *ToD; in VisitObjCCategoryDecl() local
3471 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitObjCCategoryDecl()
3473 if (ToD) in VisitObjCCategoryDecl()
3474 return ToD; in VisitObjCCategoryDecl()
3602 NamedDecl *ToD; in VisitObjCProtocolDecl() local
3603 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitObjCProtocolDecl()
3605 if (ToD) in VisitObjCProtocolDecl()
3606 return ToD; in VisitObjCProtocolDecl()
3799 NamedDecl *ToD; in VisitObjCInterfaceDecl() local
3800 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitObjCInterfaceDecl()
3802 if (ToD) in VisitObjCInterfaceDecl()
3803 return ToD; in VisitObjCInterfaceDecl()
3962 NamedDecl *ToD; in VisitObjCPropertyDecl() local
3963 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitObjCPropertyDecl()
3965 if (ToD) in VisitObjCPropertyDecl()
3966 return ToD; in VisitObjCPropertyDecl()
4197 NamedDecl *ToD; in VisitClassTemplateDecl() local
4198 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitClassTemplateDecl()
4200 if (ToD) in VisitClassTemplateDecl()
4201 return ToD; in VisitClassTemplateDecl()
4388 NamedDecl *ToD; in VisitVarTemplateDecl() local
4389 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitVarTemplateDecl()
4391 if (ToD) in VisitVarTemplateDecl()
4392 return ToD; in VisitVarTemplateDecl()
4597 for (Decl *ToD : ToDG) { in VisitDeclStmt()
4598 if (!ToD) in VisitDeclStmt()
5038 ValueDecl *ToD = cast_or_null<ValueDecl>(Importer.Import(E->getDecl())); in VisitDeclRefExpr() local
5039 if (!ToD) in VisitDeclRefExpr()
5056 ToD, in VisitDeclRefExpr()
5391 Decl *ToD = Pos->second; in GetAlreadyImportedOrNull() local
5392 ASTNodeImporter(*this).ImportDefinitionIfNeeded(FromD, ToD); in GetAlreadyImportedOrNull()
5393 return ToD; in GetAlreadyImportedOrNull()
5408 Decl *ToD = Pos->second; in Import() local
5409 Importer.ImportDefinitionIfNeeded(FromD, ToD); in Import()
5410 return ToD; in Import()
5414 Decl *ToD = Importer.Visit(FromD); in Import() local
5415 if (!ToD) in Import()
5419 ImportedDecls[FromD] = ToD; in Import()
5435 ToTag->setTypedefNameForAnonDecl(cast<TypedefNameDecl>(ToD)); in Import()
5443 return ToD; in Import()