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