Lines Matching refs:ObjCProtocolDecl
75 if (isa<ObjCProtocolDecl>(method->getDeclContext())) { in checkInitMethod()
453 ObjCProtocolDecl *const *ProtoRefs, in diagnoseUseOfProtocols()
1016 diagnoseUseOfProtocols(*this, IDecl, (ObjCProtocolDecl*const*)ProtoRefs, in ActOnStartClassInterface()
1018 IDecl->setProtocolList((ObjCProtocolDecl*const*)ProtoRefs, NumProtoRefs, in ActOnStartClassInterface()
1098 const ObjCList<ObjCProtocolDecl> &PList) { in CheckForwardProtocolDeclarationForCircularDependency()
1101 for (ObjCList<ObjCProtocolDecl>::iterator I = PList.begin(), in CheckForwardProtocolDeclarationForCircularDependency()
1103 if (ObjCProtocolDecl *PDecl = LookupProtocol((*I)->getIdentifier(), in CheckForwardProtocolDeclarationForCircularDependency()
1134 ObjCProtocolDecl *PrevDecl = LookupProtocol(ProtocolName, ProtocolLoc, in ActOnStartProtocolInterface()
1136 ObjCProtocolDecl *PDecl = nullptr; in ActOnStartProtocolInterface()
1137 if (ObjCProtocolDecl *Def = PrevDecl? PrevDecl->getDefinition() : nullptr) { in ActOnStartProtocolInterface()
1146 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
1154 ObjCList<ObjCProtocolDecl> PList; in ActOnStartProtocolInterface()
1155 PList.set((ObjCProtocolDecl *const*)ProtoRefs, NumProtoRefs, Context); in ActOnStartProtocolInterface()
1161 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
1178 diagnoseUseOfProtocols(*this, PDecl, (ObjCProtocolDecl*const*)ProtoRefs, in ActOnStartProtocolInterface()
1180 PDecl->setProtocolList((ObjCProtocolDecl*const*)ProtoRefs, NumProtoRefs, in ActOnStartProtocolInterface()
1188 static bool NestedProtocolHasNoDefinition(ObjCProtocolDecl *PDecl, in NestedProtocolHasNoDefinition()
1189 ObjCProtocolDecl *&UndefinedProtocol) { in NestedProtocolHasNoDefinition()
1211 ObjCProtocolDecl *PDecl = LookupProtocol(Pair.first, Pair.second); in FindProtocolDeclaration()
1216 llvm::make_unique<DeclFilterCCC<ObjCProtocolDecl>>(), in FindProtocolDeclaration()
1218 if ((PDecl = Corrected.getCorrectionDeclAs<ObjCProtocolDecl>())) in FindProtocolDeclaration()
1240 ObjCProtocolDecl *UndefinedProtocol; in FindProtocolDeclaration()
1266 if (candidate.getCorrectionDeclAs<ObjCProtocolDecl>()) in ValidateCandidate()
1357 ObjCProtocolDecl *&proto in actOnObjCTypeArgsOrProtocolQualifiers()
1358 = reinterpret_cast<ObjCProtocolDecl *&>(protocols[i]); in actOnObjCTypeArgsOrProtocolQualifiers()
1372 ObjCProtocolDecl *forwardDecl = nullptr; in actOnObjCTypeArgsOrProtocolQualifiers()
1405 llvm::SmallPtrSet<ObjCProtocolDecl*, 8> knownProtocols; in actOnObjCTypeArgsOrProtocolQualifiers()
1409 if (knownProtocols.count(static_cast<ObjCProtocolDecl *>(proto)) == 0) { in actOnObjCTypeArgsOrProtocolQualifiers()
1430 ObjCProtocolDecl *proto = LookupProtocol(identifiers[i], identifierLocs[i]); in actOnObjCTypeArgsOrProtocolQualifiers()
1601 if (auto proto = corrected.getCorrectionDeclAs<ObjCProtocolDecl>()) { in actOnObjCTypeArgsOrProtocolQualifiers()
1689 ObjCProtocolDecl *PrevDecl = LookupProtocol(Ident, IdentPair.second, in ActOnForwardProtocolDeclaration()
1691 ObjCProtocolDecl *PDecl in ActOnForwardProtocolDeclaration()
1692 = ObjCProtocolDecl::Create(Context, CurContext, Ident, in ActOnForwardProtocolDeclaration()
1787 diagnoseUseOfProtocols(*this, CDecl, (ObjCProtocolDecl*const*)ProtoRefs, in ActOnStartCategoryInterface()
1789 CDecl->setProtocolList((ObjCProtocolDecl*const*)ProtoRefs, NumProtoRefs, in ActOnStartCategoryInterface()
1793 IDecl->mergeClassExtensionProtocolList((ObjCProtocolDecl*const*)ProtoRefs, in ActOnStartCategoryInterface()
2565 static void findProtocolsWithExplicitImpls(const ObjCProtocolDecl *PDecl, in findProtocolsWithExplicitImpls()
2591 ObjCProtocolDecl *PDecl, in CheckProtocolMethodDefs()
2750 isa<ObjCProtocolDecl>(CDecl)); in MatchAllMethodDeclarations()
2752 WarnExactTypedMethods(ImpMethodDecl, I, isa<ObjCProtocolDecl>(CDecl)); in MatchAllMethodDeclarations()
2776 isa<ObjCProtocolDecl>(CDecl)); in MatchAllMethodDeclarations()
2778 WarnExactTypedMethods(ImpMethodDecl, I, isa<ObjCProtocolDecl>(CDecl)); in MatchAllMethodDeclarations()
2783 if (ObjCProtocolDecl *PD = dyn_cast<ObjCProtocolDecl> (CDecl)) { in MatchAllMethodDeclarations()
3180 auto *MethodProtocol = dyn_cast<ObjCProtocolDecl>(Method->getDeclContext()); in isMethodContextSameForKindofLookup()
3182 dyn_cast<ObjCProtocolDecl>(MethodInList->getDeclContext()); in isMethodContextSameForKindofLookup()
3368 auto *MethodProtocol = dyn_cast<ObjCProtocolDecl>(Method->getDeclContext()); in FilterMethodsByTypeBound()
3710 || isa<ObjCProtocolDecl>(ClassDecl); in ActOnAtEnd()
4012 void searchFrom(ObjCProtocolDecl *protocol) { in searchFrom()
4112 if (isa<ObjCProtocolDecl>(overridden->getDeclContext()) || in CheckObjCMethodOverrides()
4140 if (isa<ObjCProtocolDecl>(SuperOverridden->getDeclContext()) || in CheckObjCMethodOverrides()
4167 isa<ObjCProtocolDecl>(overridden->getDeclContext())); in CheckObjCMethodOverrides()