Lines Matching refs:PDecl
1201 if (ObjCProtocolDecl *PDecl = LookupProtocol((*I)->getIdentifier(), in CheckForwardProtocolDeclarationForCircularDependency() local
1203 if (PDecl->getIdentifier() == PName) { in CheckForwardProtocolDeclarationForCircularDependency()
1209 if (!PDecl->hasDefinition()) in CheckForwardProtocolDeclarationForCircularDependency()
1213 PDecl->getLocation(), PDecl->getReferencedProtocols())) in CheckForwardProtocolDeclarationForCircularDependency()
1230 ObjCProtocolDecl *PDecl = nullptr; in ActOnStartProtocolInterface() local
1236 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
1242 SkipBody->New = PDecl; in ActOnStartProtocolInterface()
1253 PushOnScopeChains(PDecl, TUScope); in ActOnStartProtocolInterface()
1254 PDecl->startDuplicateDefinitionForComparison(); in ActOnStartProtocolInterface()
1266 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
1270 PushOnScopeChains(PDecl, TUScope); in ActOnStartProtocolInterface()
1271 PDecl->startDefinition(); in ActOnStartProtocolInterface()
1274 ProcessDeclAttributeList(TUScope, PDecl, AttrList); in ActOnStartProtocolInterface()
1275 AddPragmaAttributes(TUScope, PDecl); in ActOnStartProtocolInterface()
1279 mergeDeclAttributes(PDecl, PrevDecl); in ActOnStartProtocolInterface()
1283 diagnoseUseOfProtocols(*this, PDecl, (ObjCProtocolDecl*const*)ProtoRefs, in ActOnStartProtocolInterface()
1285 PDecl->setProtocolList((ObjCProtocolDecl*const*)ProtoRefs, NumProtoRefs, in ActOnStartProtocolInterface()
1289 CheckObjCDeclScope(PDecl); in ActOnStartProtocolInterface()
1290 ActOnObjCContainerStartDefinition(PDecl); in ActOnStartProtocolInterface()
1291 return PDecl; in ActOnStartProtocolInterface()
1294 static bool NestedProtocolHasNoDefinition(ObjCProtocolDecl *PDecl, in NestedProtocolHasNoDefinition() argument
1296 if (!PDecl->hasDefinition() || in NestedProtocolHasNoDefinition()
1297 !PDecl->getDefinition()->isUnconditionallyVisible()) { in NestedProtocolHasNoDefinition()
1298 UndefinedProtocol = PDecl; in NestedProtocolHasNoDefinition()
1302 for (auto *PI : PDecl->protocols()) in NestedProtocolHasNoDefinition()
1318 ObjCProtocolDecl *PDecl = LookupProtocol(Pair.first, Pair.second); in FindProtocolDeclaration() local
1319 if (!PDecl) { in FindProtocolDeclaration()
1324 if ((PDecl = Corrected.getCorrectionDeclAs<ObjCProtocolDecl>())) in FindProtocolDeclaration()
1329 if (!PDecl) { in FindProtocolDeclaration()
1334 if (!PDecl->isThisDeclarationADefinition() && PDecl->getDefinition()) in FindProtocolDeclaration()
1335 PDecl = PDecl->getDefinition(); in FindProtocolDeclaration()
1340 (void)DiagnoseUseOfDecl(PDecl, Pair.second); in FindProtocolDeclaration()
1349 NestedProtocolHasNoDefinition(PDecl, UndefinedProtocol)) { in FindProtocolDeclaration()
1354 Protocols.push_back(PDecl); in FindProtocolDeclaration()
1798 ObjCProtocolDecl *PDecl in ActOnForwardProtocolDeclaration() local
1803 PushOnScopeChains(PDecl, TUScope); in ActOnForwardProtocolDeclaration()
1804 CheckObjCDeclScope(PDecl); in ActOnForwardProtocolDeclaration()
1806 ProcessDeclAttributeList(TUScope, PDecl, attrList); in ActOnForwardProtocolDeclaration()
1807 AddPragmaAttributes(TUScope, PDecl); in ActOnForwardProtocolDeclaration()
1810 mergeDeclAttributes(PDecl, PrevDecl); in ActOnForwardProtocolDeclaration()
1812 DeclsInGroup.push_back(PDecl); in ActOnForwardProtocolDeclaration()
2679 static void findProtocolsWithExplicitImpls(const ObjCProtocolDecl *PDecl, in findProtocolsWithExplicitImpls() argument
2681 if (PDecl->hasAttr<ObjCExplicitProtocolImplAttr>()) in findProtocolsWithExplicitImpls()
2682 PNS.insert(PDecl->getIdentifier()); in findProtocolsWithExplicitImpls()
2683 for (const auto *PI : PDecl->protocols()) in findProtocolsWithExplicitImpls()
2704 Sema &S, ObjCImplDecl *Impl, ObjCProtocolDecl *PDecl, bool &IncompleteImpl, in CheckProtocolMethodDefs() argument
2726 if (PDecl->hasAttr<ObjCExplicitProtocolImplAttr>()) { in CheckProtocolMethodDefs()
2731 if (ProtocolsExplictImpl->contains(PDecl->getIdentifier())) in CheckProtocolMethodDefs()
2756 if (!PDecl->isThisDeclarationADefinition() && in CheckProtocolMethodDefs()
2757 PDecl->getDefinition()) in CheckProtocolMethodDefs()
2758 PDecl = PDecl->getDefinition(); in CheckProtocolMethodDefs()
2767 for (auto *method : PDecl->instance_methods()) { in CheckProtocolMethodDefs()
2794 WarnUndefinedMethod(S, Impl, method, IncompleteImpl, DIAG, PDecl); in CheckProtocolMethodDefs()
2799 for (auto *method : PDecl->class_methods()) { in CheckProtocolMethodDefs()
2816 WarnUndefinedMethod(S, Impl, method, IncompleteImpl, DIAG, PDecl); in CheckProtocolMethodDefs()
2821 for (auto *PI : PDecl->protocols()) in CheckProtocolMethodDefs()
3932 Sema &S, ObjCProtocolDecl *PDecl, ObjCCategoryDecl *CDecl);
3942 Sema &S, ObjCProtocolDecl *PDecl, ObjCCategoryDecl *CDecl) { in DiagnoseCategoryDirectMembersProtocolConformance() argument
3943 if (!PDecl->isThisDeclarationADefinition() && PDecl->getDefinition()) in DiagnoseCategoryDirectMembersProtocolConformance()
3944 PDecl = PDecl->getDefinition(); in DiagnoseCategoryDirectMembersProtocolConformance()
3948 for (auto *MD : PDecl->methods()) { in DiagnoseCategoryDirectMembersProtocolConformance()
3957 for (auto *PD : PDecl->properties()) { in DiagnoseCategoryDirectMembersProtocolConformance()
3969 << CDecl->IsClassExtension() << CDecl << PDecl << IDecl; in DiagnoseCategoryDirectMembersProtocolConformance()
3977 PDecl->protocols()); in DiagnoseCategoryDirectMembersProtocolConformance()
5279 const ObjCPropertyDecl *&PDecl) const { in GetIvarBackingPropertyAccessor()
5290 if ((PDecl = Method->findPropertyDecl())) in GetIvarBackingPropertyAccessor()
5291 if (ObjCIvarDecl *IV = PDecl->getPropertyIvarDecl()) { in GetIvarBackingPropertyAccessor()
5350 const ObjCPropertyDecl *PDecl; in DiagnoseUnusedBackingIvarInAccessor() local
5351 const ObjCIvarDecl *IV = GetIvarBackingPropertyAccessor(CurMethod, PDecl); in DiagnoseUnusedBackingIvarInAccessor()
5369 Diag(PDecl->getLocation(), diag::note_property_declare); in DiagnoseUnusedBackingIvarInAccessor()