Lines Matching refs:ObjCProtocolDecl
76 if (isa<ObjCProtocolDecl>(method->getDeclContext())) { in checkInitMethod()
454 ObjCProtocolDecl *const *ProtoRefs, in diagnoseUseOfProtocols()
1017 diagnoseUseOfProtocols(*this, IDecl, (ObjCProtocolDecl*const*)ProtoRefs, in ActOnStartClassInterface()
1019 IDecl->setProtocolList((ObjCProtocolDecl*const*)ProtoRefs, NumProtoRefs, in ActOnStartClassInterface()
1099 const ObjCList<ObjCProtocolDecl> &PList) { in CheckForwardProtocolDeclarationForCircularDependency()
1102 for (ObjCList<ObjCProtocolDecl>::iterator I = PList.begin(), in CheckForwardProtocolDeclarationForCircularDependency()
1104 if (ObjCProtocolDecl *PDecl = LookupProtocol((*I)->getIdentifier(), in CheckForwardProtocolDeclarationForCircularDependency()
1135 ObjCProtocolDecl *PrevDecl = LookupProtocol(ProtocolName, ProtocolLoc, in ActOnStartProtocolInterface()
1137 ObjCProtocolDecl *PDecl = nullptr; in ActOnStartProtocolInterface()
1138 if (ObjCProtocolDecl *Def = PrevDecl? PrevDecl->getDefinition() : nullptr) { in ActOnStartProtocolInterface()
1147 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
1155 ObjCList<ObjCProtocolDecl> PList; in ActOnStartProtocolInterface()
1156 PList.set((ObjCProtocolDecl *const*)ProtoRefs, NumProtoRefs, Context); in ActOnStartProtocolInterface()
1162 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
1179 diagnoseUseOfProtocols(*this, PDecl, (ObjCProtocolDecl*const*)ProtoRefs, in ActOnStartProtocolInterface()
1181 PDecl->setProtocolList((ObjCProtocolDecl*const*)ProtoRefs, NumProtoRefs, in ActOnStartProtocolInterface()
1189 static bool NestedProtocolHasNoDefinition(ObjCProtocolDecl *PDecl, in NestedProtocolHasNoDefinition()
1190 ObjCProtocolDecl *&UndefinedProtocol) { in NestedProtocolHasNoDefinition()
1212 ObjCProtocolDecl *PDecl = LookupProtocol(Pair.first, Pair.second); in FindProtocolDeclaration()
1217 llvm::make_unique<DeclFilterCCC<ObjCProtocolDecl>>(), in FindProtocolDeclaration()
1219 if ((PDecl = Corrected.getCorrectionDeclAs<ObjCProtocolDecl>())) in FindProtocolDeclaration()
1241 ObjCProtocolDecl *UndefinedProtocol; in FindProtocolDeclaration()
1267 if (candidate.getCorrectionDeclAs<ObjCProtocolDecl>()) in ValidateCandidate()
1348 ObjCProtocolDecl *&proto in actOnObjCTypeArgsOrProtocolQualifiers()
1349 = reinterpret_cast<ObjCProtocolDecl *&>(protocols[i]); in actOnObjCTypeArgsOrProtocolQualifiers()
1363 ObjCProtocolDecl *forwardDecl = nullptr; in actOnObjCTypeArgsOrProtocolQualifiers()
1396 llvm::SmallPtrSet<ObjCProtocolDecl*, 8> knownProtocols; in actOnObjCTypeArgsOrProtocolQualifiers()
1400 if (knownProtocols.count(static_cast<ObjCProtocolDecl *>(proto)) == 0) { in actOnObjCTypeArgsOrProtocolQualifiers()
1421 ObjCProtocolDecl *proto = LookupProtocol(identifiers[i], identifierLocs[i]); in actOnObjCTypeArgsOrProtocolQualifiers()
1593 if (auto proto = corrected.getCorrectionDeclAs<ObjCProtocolDecl>()) { in actOnObjCTypeArgsOrProtocolQualifiers()
1681 ObjCProtocolDecl *PrevDecl = LookupProtocol(Ident, IdentPair.second, in ActOnForwardProtocolDeclaration()
1683 ObjCProtocolDecl *PDecl in ActOnForwardProtocolDeclaration()
1684 = ObjCProtocolDecl::Create(Context, CurContext, Ident, in ActOnForwardProtocolDeclaration()
1779 diagnoseUseOfProtocols(*this, CDecl, (ObjCProtocolDecl*const*)ProtoRefs, in ActOnStartCategoryInterface()
1781 CDecl->setProtocolList((ObjCProtocolDecl*const*)ProtoRefs, NumProtoRefs, in ActOnStartCategoryInterface()
1785 IDecl->mergeClassExtensionProtocolList((ObjCProtocolDecl*const*)ProtoRefs, in ActOnStartCategoryInterface()
2540 static void findProtocolsWithExplicitImpls(const ObjCProtocolDecl *PDecl, in findProtocolsWithExplicitImpls()
2566 ObjCProtocolDecl *PDecl, in CheckProtocolMethodDefs()
2725 isa<ObjCProtocolDecl>(CDecl)); in MatchAllMethodDeclarations()
2727 WarnExactTypedMethods(ImpMethodDecl, I, isa<ObjCProtocolDecl>(CDecl)); in MatchAllMethodDeclarations()
2748 isa<ObjCProtocolDecl>(CDecl)); in MatchAllMethodDeclarations()
2751 isa<ObjCProtocolDecl>(CDecl)); in MatchAllMethodDeclarations()
2755 if (ObjCProtocolDecl *PD = dyn_cast<ObjCProtocolDecl> (CDecl)) { in MatchAllMethodDeclarations()
3562 || isa<ObjCProtocolDecl>(ClassDecl); in ActOnAtEnd()
3863 void searchFrom(ObjCProtocolDecl *protocol) { in searchFrom()
3963 if (isa<ObjCProtocolDecl>(overridden->getDeclContext()) || in CheckObjCMethodOverrides()
3991 if (isa<ObjCProtocolDecl>(SuperOverridden->getDeclContext()) || in CheckObjCMethodOverrides()
4018 isa<ObjCProtocolDecl>(overridden->getDeclContext())); in CheckObjCMethodOverrides()