Lines Matching refs:ToEnum
1670 if (EnumDecl *ToEnum = cast<EnumDecl>(ToD)) { in ImportDefinitionIfNeeded() local
1671 if (FromEnum->getDefinition() && !ToEnum->getDefinition()) { in ImportDefinitionIfNeeded()
1672 if (Error Err = ImportDefinition(FromEnum, ToEnum)) in ImportDefinitionIfNeeded()
2144 bool ASTNodeImporter::IsStructuralMatch(EnumDecl *FromEnum, EnumDecl *ToEnum) { in IsStructuralMatch() argument
2147 if (Decl *ToOrigin = Importer.GetOriginalDecl(ToEnum)) in IsStructuralMatch()
2149 ToEnum = ToOriginEnum; in IsStructuralMatch()
2154 return Ctx.IsEquivalent(FromEnum, ToEnum); in IsStructuralMatch()
8333 } else if (auto *ToEnum = dyn_cast<EnumDecl>(ToDC)) { in ImportContext() local
8335 if (ToEnum->isCompleteDefinition()) { in ImportContext()
8339 FromEnum, ToEnum, ASTNodeImporter::IDK_Basic)) in ImportContext()
8342 CompleteDecl(ToEnum); in ImportContext()
8866 if (auto *ToEnum = dyn_cast<EnumDecl>(To)) { in ImportDefinition() local
8867 if (!ToEnum->getDefinition()) { in ImportDefinition()
8869 cast<EnumDecl>(FromDC), ToEnum, ASTNodeImporter::IDK_Everything); in ImportDefinition()