Lines Matching refs:PDecl

679     if (ObjCProtocolDecl *PDecl = LookupProtocol((*I)->getIdentifier(),  in CheckForwardProtocolDeclarationForCircularDependency()  local
681 if (PDecl->getIdentifier() == PName) { in CheckForwardProtocolDeclarationForCircularDependency()
687 if (!PDecl->hasDefinition()) in CheckForwardProtocolDeclarationForCircularDependency()
691 PDecl->getLocation(), PDecl->getReferencedProtocols())) in CheckForwardProtocolDeclarationForCircularDependency()
712 ObjCProtocolDecl *PDecl = nullptr; in ActOnStartProtocolInterface() local
722 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
725 PDecl->startDefinition(); in ActOnStartProtocolInterface()
737 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
741 PushOnScopeChains(PDecl, TUScope); in ActOnStartProtocolInterface()
742 PDecl->startDefinition(); in ActOnStartProtocolInterface()
746 ProcessDeclAttributeList(TUScope, PDecl, AttrList); in ActOnStartProtocolInterface()
750 mergeDeclAttributes(PDecl, PrevDecl); in ActOnStartProtocolInterface()
754 PDecl->setProtocolList((ObjCProtocolDecl*const*)ProtoRefs, NumProtoRefs, in ActOnStartProtocolInterface()
758 CheckObjCDeclScope(PDecl); in ActOnStartProtocolInterface()
759 return ActOnObjCContainerStartDefinition(PDecl); in ActOnStartProtocolInterface()
762 static bool NestedProtocolHasNoDefinition(ObjCProtocolDecl *PDecl, in NestedProtocolHasNoDefinition() argument
764 if (!PDecl->hasDefinition() || PDecl->getDefinition()->isHidden()) { in NestedProtocolHasNoDefinition()
765 UndefinedProtocol = PDecl; in NestedProtocolHasNoDefinition()
769 for (auto *PI : PDecl->protocols()) in NestedProtocolHasNoDefinition()
786 ObjCProtocolDecl *PDecl = LookupProtocol(ProtocolId[i].first, in FindProtocolDeclaration() local
788 if (!PDecl) { in FindProtocolDeclaration()
794 if ((PDecl = Corrected.getCorrectionDeclAs<ObjCProtocolDecl>())) in FindProtocolDeclaration()
799 if (!PDecl) { in FindProtocolDeclaration()
805 if (!PDecl->isThisDeclarationADefinition() && PDecl->getDefinition()) in FindProtocolDeclaration()
806 PDecl = PDecl->getDefinition(); in FindProtocolDeclaration()
808 (void)DiagnoseUseOfDecl(PDecl, ProtocolId[i].second); in FindProtocolDeclaration()
816 NestedProtocolHasNoDefinition(PDecl, UndefinedProtocol)) { in FindProtocolDeclaration()
822 Protocols.push_back(PDecl); in FindProtocolDeclaration()
863 ObjCProtocolDecl *PDecl in ActOnForwardProtocolDeclaration() local
868 PushOnScopeChains(PDecl, TUScope); in ActOnForwardProtocolDeclaration()
869 CheckObjCDeclScope(PDecl); in ActOnForwardProtocolDeclaration()
872 ProcessDeclAttributeList(TUScope, PDecl, attrList); in ActOnForwardProtocolDeclaration()
875 mergeDeclAttributes(PDecl, PrevDecl); in ActOnForwardProtocolDeclaration()
877 DeclsInGroup.push_back(PDecl); in ActOnForwardProtocolDeclaration()
1649 static void findProtocolsWithExplicitImpls(const ObjCProtocolDecl *PDecl, in findProtocolsWithExplicitImpls() argument
1651 if (PDecl->hasAttr<ObjCExplicitProtocolImplAttr>()) in findProtocolsWithExplicitImpls()
1652 PNS.insert(PDecl->getIdentifier()); in findProtocolsWithExplicitImpls()
1653 for (const auto *PI : PDecl->protocols()) in findProtocolsWithExplicitImpls()
1675 ObjCProtocolDecl *PDecl, in CheckProtocolMethodDefs() argument
1700 if (PDecl->hasAttr<ObjCExplicitProtocolImplAttr>()) { in CheckProtocolMethodDefs()
1705 if (ProtocolsExplictImpl->find(PDecl->getIdentifier()) != in CheckProtocolMethodDefs()
1731 if (!PDecl->isThisDeclarationADefinition() && in CheckProtocolMethodDefs()
1732 PDecl->getDefinition()) in CheckProtocolMethodDefs()
1733 PDecl = PDecl->getDefinition(); in CheckProtocolMethodDefs()
1742 for (auto *method : PDecl->instance_methods()) { in CheckProtocolMethodDefs()
1770 PDecl); in CheckProtocolMethodDefs()
1775 for (auto *method : PDecl->class_methods()) { in CheckProtocolMethodDefs()
1792 WarnUndefinedMethod(S, ImpLoc, method, IncompleteImpl, DIAG, PDecl); in CheckProtocolMethodDefs()
1797 for (auto *PI : PDecl->protocols()) in CheckProtocolMethodDefs()
3515 const ObjCPropertyDecl *&PDecl) const { in GetIvarBackingPropertyAccessor()
3526 if ((PDecl = Method->findPropertyDecl())) in GetIvarBackingPropertyAccessor()
3527 if (ObjCIvarDecl *IV = PDecl->getPropertyIvarDecl()) { in GetIvarBackingPropertyAccessor()
3586 const ObjCPropertyDecl *PDecl; in DiagnoseUnusedBackingIvarInAccessor() local
3587 const ObjCIvarDecl *IV = GetIvarBackingPropertyAccessor(CurMethod, PDecl); in DiagnoseUnusedBackingIvarInAccessor()
3602 Diag(PDecl->getLocation(), diag::note_property_declare); in DiagnoseUnusedBackingIvarInAccessor()