Lines Matching refs:PDecl

1192     if (ObjCProtocolDecl *PDecl = LookupProtocol((*I)->getIdentifier(),  in CheckForwardProtocolDeclarationForCircularDependency()  local
1194 if (PDecl->getIdentifier() == PName) { in CheckForwardProtocolDeclarationForCircularDependency()
1200 if (!PDecl->hasDefinition()) in CheckForwardProtocolDeclarationForCircularDependency()
1204 PDecl->getLocation(), PDecl->getReferencedProtocols())) in CheckForwardProtocolDeclarationForCircularDependency()
1221 ObjCProtocolDecl *PDecl = nullptr; in ActOnStartProtocolInterface() local
1231 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
1238 PushOnScopeChains(PDecl, TUScope); in ActOnStartProtocolInterface()
1239 PDecl->startDefinition(); in ActOnStartProtocolInterface()
1251 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
1255 PushOnScopeChains(PDecl, TUScope); in ActOnStartProtocolInterface()
1256 PDecl->startDefinition(); in ActOnStartProtocolInterface()
1259 ProcessDeclAttributeList(TUScope, PDecl, AttrList); in ActOnStartProtocolInterface()
1260 AddPragmaAttributes(TUScope, PDecl); in ActOnStartProtocolInterface()
1264 mergeDeclAttributes(PDecl, PrevDecl); in ActOnStartProtocolInterface()
1268 diagnoseUseOfProtocols(*this, PDecl, (ObjCProtocolDecl*const*)ProtoRefs, in ActOnStartProtocolInterface()
1270 PDecl->setProtocolList((ObjCProtocolDecl*const*)ProtoRefs, NumProtoRefs, in ActOnStartProtocolInterface()
1274 CheckObjCDeclScope(PDecl); in ActOnStartProtocolInterface()
1275 return ActOnObjCContainerStartDefinition(PDecl); in ActOnStartProtocolInterface()
1278 static bool NestedProtocolHasNoDefinition(ObjCProtocolDecl *PDecl, in NestedProtocolHasNoDefinition() argument
1280 if (!PDecl->hasDefinition() || in NestedProtocolHasNoDefinition()
1281 !PDecl->getDefinition()->isUnconditionallyVisible()) { in NestedProtocolHasNoDefinition()
1282 UndefinedProtocol = PDecl; in NestedProtocolHasNoDefinition()
1286 for (auto *PI : PDecl->protocols()) in NestedProtocolHasNoDefinition()
1302 ObjCProtocolDecl *PDecl = LookupProtocol(Pair.first, Pair.second); in FindProtocolDeclaration() local
1303 if (!PDecl) { in FindProtocolDeclaration()
1308 if ((PDecl = Corrected.getCorrectionDeclAs<ObjCProtocolDecl>())) in FindProtocolDeclaration()
1313 if (!PDecl) { in FindProtocolDeclaration()
1318 if (!PDecl->isThisDeclarationADefinition() && PDecl->getDefinition()) in FindProtocolDeclaration()
1319 PDecl = PDecl->getDefinition(); in FindProtocolDeclaration()
1324 (void)DiagnoseUseOfDecl(PDecl, Pair.second); in FindProtocolDeclaration()
1333 NestedProtocolHasNoDefinition(PDecl, UndefinedProtocol)) { in FindProtocolDeclaration()
1338 Protocols.push_back(PDecl); in FindProtocolDeclaration()
1782 ObjCProtocolDecl *PDecl in ActOnForwardProtocolDeclaration() local
1787 PushOnScopeChains(PDecl, TUScope); in ActOnForwardProtocolDeclaration()
1788 CheckObjCDeclScope(PDecl); in ActOnForwardProtocolDeclaration()
1790 ProcessDeclAttributeList(TUScope, PDecl, attrList); in ActOnForwardProtocolDeclaration()
1791 AddPragmaAttributes(TUScope, PDecl); in ActOnForwardProtocolDeclaration()
1794 mergeDeclAttributes(PDecl, PrevDecl); in ActOnForwardProtocolDeclaration()
1796 DeclsInGroup.push_back(PDecl); in ActOnForwardProtocolDeclaration()
2658 static void findProtocolsWithExplicitImpls(const ObjCProtocolDecl *PDecl, in findProtocolsWithExplicitImpls() argument
2660 if (PDecl->hasAttr<ObjCExplicitProtocolImplAttr>()) in findProtocolsWithExplicitImpls()
2661 PNS.insert(PDecl->getIdentifier()); in findProtocolsWithExplicitImpls()
2662 for (const auto *PI : PDecl->protocols()) in findProtocolsWithExplicitImpls()
2684 ObjCProtocolDecl *PDecl, in CheckProtocolMethodDefs() argument
2709 if (PDecl->hasAttr<ObjCExplicitProtocolImplAttr>()) { in CheckProtocolMethodDefs()
2714 if (ProtocolsExplictImpl->find(PDecl->getIdentifier()) != in CheckProtocolMethodDefs()
2740 if (!PDecl->isThisDeclarationADefinition() && in CheckProtocolMethodDefs()
2741 PDecl->getDefinition()) in CheckProtocolMethodDefs()
2742 PDecl = PDecl->getDefinition(); in CheckProtocolMethodDefs()
2751 for (auto *method : PDecl->instance_methods()) { in CheckProtocolMethodDefs()
2779 PDecl); in CheckProtocolMethodDefs()
2784 for (auto *method : PDecl->class_methods()) { in CheckProtocolMethodDefs()
2801 WarnUndefinedMethod(S, ImpLoc, method, IncompleteImpl, DIAG, PDecl); in CheckProtocolMethodDefs()
2806 for (auto *PI : PDecl->protocols()) in CheckProtocolMethodDefs()
3916 Sema &S, ObjCProtocolDecl *PDecl, ObjCCategoryDecl *CDecl);
3926 Sema &S, ObjCProtocolDecl *PDecl, ObjCCategoryDecl *CDecl) { in DiagnoseCategoryDirectMembersProtocolConformance() argument
3927 if (!PDecl->isThisDeclarationADefinition() && PDecl->getDefinition()) in DiagnoseCategoryDirectMembersProtocolConformance()
3928 PDecl = PDecl->getDefinition(); in DiagnoseCategoryDirectMembersProtocolConformance()
3932 for (auto *MD : PDecl->methods()) { in DiagnoseCategoryDirectMembersProtocolConformance()
3941 for (auto *PD : PDecl->properties()) { in DiagnoseCategoryDirectMembersProtocolConformance()
3953 << CDecl->IsClassExtension() << CDecl << PDecl << IDecl; in DiagnoseCategoryDirectMembersProtocolConformance()
3961 PDecl->protocols()); in DiagnoseCategoryDirectMembersProtocolConformance()
5259 const ObjCPropertyDecl *&PDecl) const { in GetIvarBackingPropertyAccessor()
5270 if ((PDecl = Method->findPropertyDecl())) in GetIvarBackingPropertyAccessor()
5271 if (ObjCIvarDecl *IV = PDecl->getPropertyIvarDecl()) { in GetIvarBackingPropertyAccessor()
5330 const ObjCPropertyDecl *PDecl; in DiagnoseUnusedBackingIvarInAccessor() local
5331 const ObjCIvarDecl *IV = GetIvarBackingPropertyAccessor(CurMethod, PDecl); in DiagnoseUnusedBackingIvarInAccessor()
5349 Diag(PDecl->getLocation(), diag::note_property_declare); in DiagnoseUnusedBackingIvarInAccessor()