Lines Matching refs:PDecl
1103 if (ObjCProtocolDecl *PDecl = LookupProtocol((*I)->getIdentifier(), in CheckForwardProtocolDeclarationForCircularDependency() local
1105 if (PDecl->getIdentifier() == PName) { in CheckForwardProtocolDeclarationForCircularDependency()
1111 if (!PDecl->hasDefinition()) in CheckForwardProtocolDeclarationForCircularDependency()
1115 PDecl->getLocation(), PDecl->getReferencedProtocols())) in CheckForwardProtocolDeclarationForCircularDependency()
1136 ObjCProtocolDecl *PDecl = nullptr; in ActOnStartProtocolInterface() local
1146 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
1149 PDecl->startDefinition(); in ActOnStartProtocolInterface()
1161 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
1165 PushOnScopeChains(PDecl, TUScope); in ActOnStartProtocolInterface()
1166 PDecl->startDefinition(); in ActOnStartProtocolInterface()
1170 ProcessDeclAttributeList(TUScope, PDecl, AttrList); in ActOnStartProtocolInterface()
1174 mergeDeclAttributes(PDecl, PrevDecl); in ActOnStartProtocolInterface()
1178 diagnoseUseOfProtocols(*this, PDecl, (ObjCProtocolDecl*const*)ProtoRefs, in ActOnStartProtocolInterface()
1180 PDecl->setProtocolList((ObjCProtocolDecl*const*)ProtoRefs, NumProtoRefs, in ActOnStartProtocolInterface()
1184 CheckObjCDeclScope(PDecl); in ActOnStartProtocolInterface()
1185 return ActOnObjCContainerStartDefinition(PDecl); in ActOnStartProtocolInterface()
1188 static bool NestedProtocolHasNoDefinition(ObjCProtocolDecl *PDecl, in NestedProtocolHasNoDefinition() argument
1190 if (!PDecl->hasDefinition() || PDecl->getDefinition()->isHidden()) { in NestedProtocolHasNoDefinition()
1191 UndefinedProtocol = PDecl; in NestedProtocolHasNoDefinition()
1195 for (auto *PI : PDecl->protocols()) in NestedProtocolHasNoDefinition()
1211 ObjCProtocolDecl *PDecl = LookupProtocol(Pair.first, Pair.second); in FindProtocolDeclaration() local
1212 if (!PDecl) { in FindProtocolDeclaration()
1218 if ((PDecl = Corrected.getCorrectionDeclAs<ObjCProtocolDecl>())) in FindProtocolDeclaration()
1223 if (!PDecl) { in FindProtocolDeclaration()
1228 if (!PDecl->isThisDeclarationADefinition() && PDecl->getDefinition()) in FindProtocolDeclaration()
1229 PDecl = PDecl->getDefinition(); in FindProtocolDeclaration()
1234 (void)DiagnoseUseOfDecl(PDecl, Pair.second); in FindProtocolDeclaration()
1243 NestedProtocolHasNoDefinition(PDecl, UndefinedProtocol)) { in FindProtocolDeclaration()
1248 Protocols.push_back(PDecl); in FindProtocolDeclaration()
1691 ObjCProtocolDecl *PDecl in ActOnForwardProtocolDeclaration() local
1696 PushOnScopeChains(PDecl, TUScope); in ActOnForwardProtocolDeclaration()
1697 CheckObjCDeclScope(PDecl); in ActOnForwardProtocolDeclaration()
1700 ProcessDeclAttributeList(TUScope, PDecl, attrList); in ActOnForwardProtocolDeclaration()
1703 mergeDeclAttributes(PDecl, PrevDecl); in ActOnForwardProtocolDeclaration()
1705 DeclsInGroup.push_back(PDecl); in ActOnForwardProtocolDeclaration()
2565 static void findProtocolsWithExplicitImpls(const ObjCProtocolDecl *PDecl, in findProtocolsWithExplicitImpls() argument
2567 if (PDecl->hasAttr<ObjCExplicitProtocolImplAttr>()) in findProtocolsWithExplicitImpls()
2568 PNS.insert(PDecl->getIdentifier()); in findProtocolsWithExplicitImpls()
2569 for (const auto *PI : PDecl->protocols()) in findProtocolsWithExplicitImpls()
2591 ObjCProtocolDecl *PDecl, in CheckProtocolMethodDefs() argument
2616 if (PDecl->hasAttr<ObjCExplicitProtocolImplAttr>()) { in CheckProtocolMethodDefs()
2621 if (ProtocolsExplictImpl->find(PDecl->getIdentifier()) != in CheckProtocolMethodDefs()
2647 if (!PDecl->isThisDeclarationADefinition() && in CheckProtocolMethodDefs()
2648 PDecl->getDefinition()) in CheckProtocolMethodDefs()
2649 PDecl = PDecl->getDefinition(); in CheckProtocolMethodDefs()
2658 for (auto *method : PDecl->instance_methods()) { in CheckProtocolMethodDefs()
2686 PDecl); in CheckProtocolMethodDefs()
2691 for (auto *method : PDecl->class_methods()) { in CheckProtocolMethodDefs()
2708 WarnUndefinedMethod(S, ImpLoc, method, IncompleteImpl, DIAG, PDecl); in CheckProtocolMethodDefs()
2713 for (auto *PI : PDecl->protocols()) in CheckProtocolMethodDefs()
4696 const ObjCPropertyDecl *&PDecl) const { in GetIvarBackingPropertyAccessor()
4707 if ((PDecl = Method->findPropertyDecl())) in GetIvarBackingPropertyAccessor()
4708 if (ObjCIvarDecl *IV = PDecl->getPropertyIvarDecl()) { in GetIvarBackingPropertyAccessor()
4767 const ObjCPropertyDecl *PDecl; in DiagnoseUnusedBackingIvarInAccessor() local
4768 const ObjCIvarDecl *IV = GetIvarBackingPropertyAccessor(CurMethod, PDecl); in DiagnoseUnusedBackingIvarInAccessor()
4783 Diag(PDecl->getLocation(), diag::note_property_declare); in DiagnoseUnusedBackingIvarInAccessor()