Searched refs:ToDC (Results 1 – 2 of 2) sorted by relevance
266 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo() local267 if (FromDC == ToDC) return true; in MightInstantiateTo()268 if (FromDC->isFileContext() || ToDC->isFileContext()) return false; in MightInstantiateTo()
6148 DeclContext *ToDC = cast_or_null<DeclContext>(Import(cast<Decl>(FromDC))); in ImportContext() local6149 if (!ToDC) in ImportContext()6154 if (RecordDecl *ToRecord = dyn_cast<RecordDecl>(ToDC)) { in ImportContext()6164 } else if (EnumDecl *ToEnum = dyn_cast<EnumDecl>(ToDC)) { in ImportContext()6174 } else if (ObjCInterfaceDecl *ToClass = dyn_cast<ObjCInterfaceDecl>(ToDC)) { in ImportContext()6184 } else if (ObjCProtocolDecl *ToProto = dyn_cast<ObjCProtocolDecl>(ToDC)) { in ImportContext()6196 return ToDC; in ImportContext()