• Home
  • Raw
  • Download

Lines Matching refs:PDecl

683     if (ObjCProtocolDecl *PDecl = LookupProtocol((*I)->getIdentifier(),  in CheckForwardProtocolDeclarationForCircularDependency()  local
685 if (PDecl->getIdentifier() == PName) { in CheckForwardProtocolDeclarationForCircularDependency()
691 if (!PDecl->hasDefinition()) in CheckForwardProtocolDeclarationForCircularDependency()
695 PDecl->getLocation(), PDecl->getReferencedProtocols())) in CheckForwardProtocolDeclarationForCircularDependency()
716 ObjCProtocolDecl *PDecl = nullptr; in ActOnStartProtocolInterface() local
726 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
729 PDecl->startDefinition(); in ActOnStartProtocolInterface()
741 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
745 PushOnScopeChains(PDecl, TUScope); in ActOnStartProtocolInterface()
746 PDecl->startDefinition(); in ActOnStartProtocolInterface()
750 ProcessDeclAttributeList(TUScope, PDecl, AttrList); in ActOnStartProtocolInterface()
754 mergeDeclAttributes(PDecl, PrevDecl); in ActOnStartProtocolInterface()
758 PDecl->setProtocolList((ObjCProtocolDecl*const*)ProtoRefs, NumProtoRefs, in ActOnStartProtocolInterface()
762 CheckObjCDeclScope(PDecl); in ActOnStartProtocolInterface()
763 return ActOnObjCContainerStartDefinition(PDecl); in ActOnStartProtocolInterface()
766 static bool NestedProtocolHasNoDefinition(ObjCProtocolDecl *PDecl, in NestedProtocolHasNoDefinition() argument
768 if (!PDecl->hasDefinition() || PDecl->getDefinition()->isHidden()) { in NestedProtocolHasNoDefinition()
769 UndefinedProtocol = PDecl; in NestedProtocolHasNoDefinition()
773 for (auto *PI : PDecl->protocols()) in NestedProtocolHasNoDefinition()
790 ObjCProtocolDecl *PDecl = LookupProtocol(ProtocolId[i].first, in FindProtocolDeclaration() local
792 if (!PDecl) { in FindProtocolDeclaration()
798 if ((PDecl = Corrected.getCorrectionDeclAs<ObjCProtocolDecl>())) in FindProtocolDeclaration()
803 if (!PDecl) { in FindProtocolDeclaration()
809 if (!PDecl->isThisDeclarationADefinition() && PDecl->getDefinition()) in FindProtocolDeclaration()
810 PDecl = PDecl->getDefinition(); in FindProtocolDeclaration()
812 (void)DiagnoseUseOfDecl(PDecl, ProtocolId[i].second); in FindProtocolDeclaration()
820 NestedProtocolHasNoDefinition(PDecl, UndefinedProtocol)) { in FindProtocolDeclaration()
826 Protocols.push_back(PDecl); in FindProtocolDeclaration()
867 ObjCProtocolDecl *PDecl in ActOnForwardProtocolDeclaration() local
872 PushOnScopeChains(PDecl, TUScope); in ActOnForwardProtocolDeclaration()
873 CheckObjCDeclScope(PDecl); in ActOnForwardProtocolDeclaration()
876 ProcessDeclAttributeList(TUScope, PDecl, attrList); in ActOnForwardProtocolDeclaration()
879 mergeDeclAttributes(PDecl, PrevDecl); in ActOnForwardProtocolDeclaration()
881 DeclsInGroup.push_back(PDecl); in ActOnForwardProtocolDeclaration()
1654 static void findProtocolsWithExplicitImpls(const ObjCProtocolDecl *PDecl, in findProtocolsWithExplicitImpls() argument
1656 if (PDecl->hasAttr<ObjCExplicitProtocolImplAttr>()) in findProtocolsWithExplicitImpls()
1657 PNS.insert(PDecl->getIdentifier()); in findProtocolsWithExplicitImpls()
1658 for (const auto *PI : PDecl->protocols()) in findProtocolsWithExplicitImpls()
1680 ObjCProtocolDecl *PDecl, in CheckProtocolMethodDefs() argument
1705 if (PDecl->hasAttr<ObjCExplicitProtocolImplAttr>()) { in CheckProtocolMethodDefs()
1710 if (ProtocolsExplictImpl->find(PDecl->getIdentifier()) != in CheckProtocolMethodDefs()
1736 if (!PDecl->isThisDeclarationADefinition() && in CheckProtocolMethodDefs()
1737 PDecl->getDefinition()) in CheckProtocolMethodDefs()
1738 PDecl = PDecl->getDefinition(); in CheckProtocolMethodDefs()
1747 for (auto *method : PDecl->instance_methods()) { in CheckProtocolMethodDefs()
1775 PDecl); in CheckProtocolMethodDefs()
1780 for (auto *method : PDecl->class_methods()) { in CheckProtocolMethodDefs()
1797 WarnUndefinedMethod(S, ImpLoc, method, IncompleteImpl, DIAG, PDecl); in CheckProtocolMethodDefs()
1802 for (auto *PI : PDecl->protocols()) in CheckProtocolMethodDefs()
3458 const ObjCPropertyDecl *&PDecl) const { in GetIvarBackingPropertyAccessor()
3469 if ((PDecl = Method->findPropertyDecl())) in GetIvarBackingPropertyAccessor()
3470 if (ObjCIvarDecl *IV = PDecl->getPropertyIvarDecl()) { in GetIvarBackingPropertyAccessor()
3529 const ObjCPropertyDecl *PDecl; in DiagnoseUnusedBackingIvarInAccessor() local
3530 const ObjCIvarDecl *IV = GetIvarBackingPropertyAccessor(CurMethod, PDecl); in DiagnoseUnusedBackingIvarInAccessor()
3545 Diag(PDecl->getLocation(), diag::note_property_declare); in DiagnoseUnusedBackingIvarInAccessor()