Lines Matching refs:PDecl
1193 if (ObjCProtocolDecl *PDecl = LookupProtocol((*I)->getIdentifier(), in CheckForwardProtocolDeclarationForCircularDependency() local
1195 if (PDecl->getIdentifier() == PName) { in CheckForwardProtocolDeclarationForCircularDependency()
1201 if (!PDecl->hasDefinition()) in CheckForwardProtocolDeclarationForCircularDependency()
1205 PDecl->getLocation(), PDecl->getReferencedProtocols())) in CheckForwardProtocolDeclarationForCircularDependency()
1222 ObjCProtocolDecl *PDecl = nullptr; in ActOnStartProtocolInterface() local
1232 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
1239 PushOnScopeChains(PDecl, TUScope); in ActOnStartProtocolInterface()
1240 PDecl->startDefinition(); in ActOnStartProtocolInterface()
1252 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
1256 PushOnScopeChains(PDecl, TUScope); in ActOnStartProtocolInterface()
1257 PDecl->startDefinition(); in ActOnStartProtocolInterface()
1260 ProcessDeclAttributeList(TUScope, PDecl, AttrList); in ActOnStartProtocolInterface()
1261 AddPragmaAttributes(TUScope, PDecl); in ActOnStartProtocolInterface()
1265 mergeDeclAttributes(PDecl, PrevDecl); in ActOnStartProtocolInterface()
1269 diagnoseUseOfProtocols(*this, PDecl, (ObjCProtocolDecl*const*)ProtoRefs, in ActOnStartProtocolInterface()
1271 PDecl->setProtocolList((ObjCProtocolDecl*const*)ProtoRefs, NumProtoRefs, in ActOnStartProtocolInterface()
1275 CheckObjCDeclScope(PDecl); in ActOnStartProtocolInterface()
1276 ActOnObjCContainerStartDefinition(PDecl); in ActOnStartProtocolInterface()
1277 return PDecl; in ActOnStartProtocolInterface()
1280 static bool NestedProtocolHasNoDefinition(ObjCProtocolDecl *PDecl, in NestedProtocolHasNoDefinition() argument
1282 if (!PDecl->hasDefinition() || in NestedProtocolHasNoDefinition()
1283 !PDecl->getDefinition()->isUnconditionallyVisible()) { in NestedProtocolHasNoDefinition()
1284 UndefinedProtocol = PDecl; in NestedProtocolHasNoDefinition()
1288 for (auto *PI : PDecl->protocols()) in NestedProtocolHasNoDefinition()
1304 ObjCProtocolDecl *PDecl = LookupProtocol(Pair.first, Pair.second); in FindProtocolDeclaration() local
1305 if (!PDecl) { in FindProtocolDeclaration()
1310 if ((PDecl = Corrected.getCorrectionDeclAs<ObjCProtocolDecl>())) in FindProtocolDeclaration()
1315 if (!PDecl) { in FindProtocolDeclaration()
1320 if (!PDecl->isThisDeclarationADefinition() && PDecl->getDefinition()) in FindProtocolDeclaration()
1321 PDecl = PDecl->getDefinition(); in FindProtocolDeclaration()
1326 (void)DiagnoseUseOfDecl(PDecl, Pair.second); in FindProtocolDeclaration()
1335 NestedProtocolHasNoDefinition(PDecl, UndefinedProtocol)) { in FindProtocolDeclaration()
1340 Protocols.push_back(PDecl); in FindProtocolDeclaration()
1784 ObjCProtocolDecl *PDecl in ActOnForwardProtocolDeclaration() local
1789 PushOnScopeChains(PDecl, TUScope); in ActOnForwardProtocolDeclaration()
1790 CheckObjCDeclScope(PDecl); in ActOnForwardProtocolDeclaration()
1792 ProcessDeclAttributeList(TUScope, PDecl, attrList); in ActOnForwardProtocolDeclaration()
1793 AddPragmaAttributes(TUScope, PDecl); in ActOnForwardProtocolDeclaration()
1796 mergeDeclAttributes(PDecl, PrevDecl); in ActOnForwardProtocolDeclaration()
1798 DeclsInGroup.push_back(PDecl); in ActOnForwardProtocolDeclaration()
2671 static void findProtocolsWithExplicitImpls(const ObjCProtocolDecl *PDecl, in findProtocolsWithExplicitImpls() argument
2673 if (PDecl->hasAttr<ObjCExplicitProtocolImplAttr>()) in findProtocolsWithExplicitImpls()
2674 PNS.insert(PDecl->getIdentifier()); in findProtocolsWithExplicitImpls()
2675 for (const auto *PI : PDecl->protocols()) in findProtocolsWithExplicitImpls()
2696 Sema &S, ObjCImplDecl *Impl, ObjCProtocolDecl *PDecl, bool &IncompleteImpl, in CheckProtocolMethodDefs() argument
2718 if (PDecl->hasAttr<ObjCExplicitProtocolImplAttr>()) { in CheckProtocolMethodDefs()
2723 if (ProtocolsExplictImpl->contains(PDecl->getIdentifier())) in CheckProtocolMethodDefs()
2748 if (!PDecl->isThisDeclarationADefinition() && in CheckProtocolMethodDefs()
2749 PDecl->getDefinition()) in CheckProtocolMethodDefs()
2750 PDecl = PDecl->getDefinition(); in CheckProtocolMethodDefs()
2759 for (auto *method : PDecl->instance_methods()) { in CheckProtocolMethodDefs()
2786 WarnUndefinedMethod(S, Impl, method, IncompleteImpl, DIAG, PDecl); in CheckProtocolMethodDefs()
2791 for (auto *method : PDecl->class_methods()) { in CheckProtocolMethodDefs()
2808 WarnUndefinedMethod(S, Impl, method, IncompleteImpl, DIAG, PDecl); in CheckProtocolMethodDefs()
2813 for (auto *PI : PDecl->protocols()) in CheckProtocolMethodDefs()
3924 Sema &S, ObjCProtocolDecl *PDecl, ObjCCategoryDecl *CDecl);
3934 Sema &S, ObjCProtocolDecl *PDecl, ObjCCategoryDecl *CDecl) { in DiagnoseCategoryDirectMembersProtocolConformance() argument
3935 if (!PDecl->isThisDeclarationADefinition() && PDecl->getDefinition()) in DiagnoseCategoryDirectMembersProtocolConformance()
3936 PDecl = PDecl->getDefinition(); in DiagnoseCategoryDirectMembersProtocolConformance()
3940 for (auto *MD : PDecl->methods()) { in DiagnoseCategoryDirectMembersProtocolConformance()
3949 for (auto *PD : PDecl->properties()) { in DiagnoseCategoryDirectMembersProtocolConformance()
3961 << CDecl->IsClassExtension() << CDecl << PDecl << IDecl; in DiagnoseCategoryDirectMembersProtocolConformance()
3969 PDecl->protocols()); in DiagnoseCategoryDirectMembersProtocolConformance()
5267 const ObjCPropertyDecl *&PDecl) const { in GetIvarBackingPropertyAccessor()
5278 if ((PDecl = Method->findPropertyDecl())) in GetIvarBackingPropertyAccessor()
5279 if (ObjCIvarDecl *IV = PDecl->getPropertyIvarDecl()) { in GetIvarBackingPropertyAccessor()
5338 const ObjCPropertyDecl *PDecl; in DiagnoseUnusedBackingIvarInAccessor() local
5339 const ObjCIvarDecl *IV = GetIvarBackingPropertyAccessor(CurMethod, PDecl); in DiagnoseUnusedBackingIvarInAccessor()
5357 Diag(PDecl->getLocation(), diag::note_property_declare); in DiagnoseUnusedBackingIvarInAccessor()