Home | History | Annotate | Download | only in Sema

Lines Matching defs:PDecl

1104     if (ObjCProtocolDecl *PDecl = LookupProtocol((*I)->getIdentifier(),
1106 if (PDecl->getIdentifier() == PName) {
1112 if (!PDecl->hasDefinition())
1116 PDecl->getLocation(), PDecl->getReferencedProtocols()))
1137 ObjCProtocolDecl *PDecl = nullptr;
1147 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName,
1150 PDecl->startDefinition();
1162 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName,
1166 PushOnScopeChains(PDecl, TUScope);
1167 PDecl->startDefinition();
1171 ProcessDeclAttributeList(TUScope, PDecl, AttrList);
1175 mergeDeclAttributes(PDecl, PrevDecl);
1179 diagnoseUseOfProtocols(*this, PDecl, (ObjCProtocolDecl*const*)ProtoRefs,
1181 PDecl->setProtocolList((ObjCProtocolDecl*const*)ProtoRefs, NumProtoRefs,
1185 CheckObjCDeclScope(PDecl);
1186 return ActOnObjCContainerStartDefinition(PDecl);
1189 static bool NestedProtocolHasNoDefinition(ObjCProtocolDecl *PDecl,
1191 if (!PDecl->hasDefinition() || PDecl->getDefinition()->isHidden()) {
1192 UndefinedProtocol = PDecl;
1196 for (auto *PI : PDecl->protocols())
1212 ObjCProtocolDecl *PDecl = LookupProtocol(Pair.first, Pair.second);
1213 if (!PDecl) {
1219 if ((PDecl = Corrected.getCorrectionDeclAs<ObjCProtocolDecl>()))
1224 if (!PDecl) {
1229 if (!PDecl->isThisDeclarationADefinition() && PDecl->getDefinition())
1230 PDecl = PDecl->getDefinition();
1235 (void)DiagnoseUseOfDecl(PDecl, Pair.second);
1244 NestedProtocolHasNoDefinition(PDecl, UndefinedProtocol)) {
1249 Protocols.push_back(PDecl);
1683 ObjCProtocolDecl *PDecl
1688 PushOnScopeChains(PDecl, TUScope);
1689 CheckObjCDeclScope(PDecl);
1692 ProcessDeclAttributeList(TUScope, PDecl, attrList);
1695 mergeDeclAttributes(PDecl, PrevDecl);
1697 DeclsInGroup.push_back(PDecl);
2540 static void findProtocolsWithExplicitImpls(const ObjCProtocolDecl *PDecl,
2542 if (PDecl->hasAttr<ObjCExplicitProtocolImplAttr>())
2543 PNS.insert(PDecl->getIdentifier());
2544 for (const auto *PI : PDecl->protocols())
2566 ObjCProtocolDecl *PDecl,
2591 if (PDecl->hasAttr<ObjCExplicitProtocolImplAttr>()) {
2596 if (ProtocolsExplictImpl->find(PDecl->getIdentifier()) !=
2622 if (!PDecl->isThisDeclarationADefinition() &&
2623 PDecl->getDefinition())
2624 PDecl = PDecl->getDefinition();
2633 for (auto *method : PDecl->instance_methods()) {
2661 PDecl);
2666 for (auto *method : PDecl->class_methods()) {
2683 WarnUndefinedMethod(S, ImpLoc, method, IncompleteImpl, DIAG, PDecl);
2688 for (auto *PI : PDecl->protocols())
4544 const ObjCPropertyDecl *&PDecl) const {
4555 if ((PDecl = Method->findPropertyDecl()))
4556 if (ObjCIvarDecl *IV = PDecl->getPropertyIvarDecl()) {
4615 const ObjCPropertyDecl *PDecl;
4616 const ObjCIvarDecl *IV = GetIvarBackingPropertyAccessor(CurMethod, PDecl);
4631 Diag(PDecl->getLocation(), diag::note_property_declare);