Lines Matching refs:ObjCProtocolDecl
114 bool ImportDefinition(ObjCProtocolDecl *From, ObjCProtocolDecl *To,
147 Decl *VisitObjCProtocolDecl(ObjCProtocolDecl *D);
1690 SmallVector<ObjCProtocolDecl *, 4> Protocols;
1694 ObjCProtocolDecl *Protocol
1695 = dyn_cast_or_null<ObjCProtocolDecl>(Importer.Import(*P));
3115 SmallVector<ObjCProtocolDecl *, 4> Protocols;
3123 ObjCProtocolDecl *ToProto
3124 = cast_or_null<ObjCProtocolDecl>(Importer.Import(*FromProto));
3156 bool ASTNodeImporter::ImportDefinition(ObjCProtocolDecl *From,
3157 ObjCProtocolDecl *To,
3169 SmallVector<ObjCProtocolDecl *, 4> Protocols;
3171 ObjCProtocolDecl::protocol_loc_iterator
3173 for (ObjCProtocolDecl::protocol_iterator FromProto = From->protocol_begin(),
3177 ObjCProtocolDecl *ToProto
3178 = cast_or_null<ObjCProtocolDecl>(Importer.Import(*FromProto));
3196 Decl *ASTNodeImporter::VisitObjCProtocolDecl(ObjCProtocolDecl *D) {
3200 ObjCProtocolDecl *Definition = D->getDefinition();
3216 ObjCProtocolDecl *MergeWithProtocol = 0;
3223 if ((MergeWithProtocol = dyn_cast<ObjCProtocolDecl>(FoundDecls[I])))
3227 ObjCProtocolDecl *ToProto = MergeWithProtocol;
3229 ToProto = ObjCProtocolDecl::Create(Importer.getToContext(), DC,
3298 SmallVector<ObjCProtocolDecl *, 4> Protocols;
3307 ObjCProtocolDecl *ToProto
3308 = cast_or_null<ObjCProtocolDecl>(Importer.Import(*FromProto));
4267 } else if (ObjCProtocolDecl *ToProto = dyn_cast<ObjCProtocolDecl>(ToDC)) {
4268 ObjCProtocolDecl *FromProto = cast<ObjCProtocolDecl>(FromDC);
4271 } else if (ObjCProtocolDecl *FromDef = FromProto->getDefinition()) {
4541 if (ObjCProtocolDecl *ToProto = dyn_cast<ObjCProtocolDecl>(To)) {
4543 Importer.ImportDefinition(cast<ObjCProtocolDecl>(FromDC), ToProto,
4648 else if (ObjCProtocolDecl *PD = dyn_cast<ObjCProtocolDecl>(D)) {