Lines Matching defs:PDecl

503   ObjCPropertyDecl *PDecl = CreatePropertyDecl(S, CDecl, AtLoc, LParenLoc,
513 ProcessPropertyDecl(PDecl);
514 return PDecl;
517 if (!Context.hasSameType(PIDecl->getType(), PDecl->getType())) {
527 QualType ClassExtPropertyT = Context.getCanonicalType(PDecl->getType());
535 diag::err_type_mismatch_continuation_class) << PDecl->getType();
543 checkAtomicPropertyMismatch(SemaRef, PIDecl, PDecl, true);
546 ProcessPropertyDecl(PDecl);
547 return PDecl;
600 ObjCPropertyDecl *PDecl = ObjCPropertyDecl::Create(Context, DC,
611 Diag(PDecl->getLocation(), diag::err_duplicate_property);
613 PDecl->setInvalidDecl();
616 DC->addDecl(PDecl);
618 PDecl->setLexicalDeclContext(lexicalDC);
623 PDecl->setInvalidDecl();
628 PDecl->setGetterName(GetterSel, GetterNameLoc);
629 PDecl->setSetterName(SetterSel, SetterNameLoc);
630 PDecl->setPropertyAttributesAsWritten(
633 SemaRef.ProcessDeclAttributes(S, PDecl, FD.D);
636 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_readonly);
639 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_getter);
642 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_setter);
645 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_readwrite);
648 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_retain);
651 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_strong);
654 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_weak);
657 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_copy);
660 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_unsafe_unretained);
663 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_assign);
667 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_nonatomic);
669 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_atomic);
673 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_assign);
675 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_unsafe_unretained);
678 PDecl->setPropertyImplementation(ObjCPropertyDecl::Required);
680 PDecl->setPropertyImplementation(ObjCPropertyDecl::Optional);
683 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_nullability);
686 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_null_resettable);
689 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_class);
694 Diag(PDecl->getLocation(), diag::err_objc_direct_on_protocol) << true;
696 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_direct);
698 Diag(PDecl->getLocation(), diag::warn_objc_direct_property_ignored)
699 << PDecl->getDeclName();
703 return PDecl;
831 if (const ObjCProtocolDecl *PDecl = PI->getDefinition())
832 PDecl->collectInheritedProtocolProperties(Property, ProtocolSet,
838 if (const ObjCProtocolDecl *PDecl = PI->getDefinition())
839 PDecl->collectInheritedProtocolProperties(Property, ProtocolSet,
1773 else if (ObjCProtocolDecl *PDecl = dyn_cast<ObjCProtocolDecl>(CDecl)) {
1774 for (auto *Prop : PDecl->properties()) {
1792 for (auto *PI : PDecl->protocols())
2044 for (auto *PDecl : IDecl->all_referenced_protocols()) {
2045 if (!PDecl->hasAttr<ObjCExplicitProtocolImplAttr>())
2061 // Add the properties of 'PDecl' to the list of properties that
2063 for (auto *PropDecl : PDecl->properties()) {
2619 void SemaObjC::CheckObjCPropertyAttributes(Decl *PDecl, SourceLocation Loc,
2623 if (!PDecl || PDecl->isInvalidDecl())
2631 ObjCPropertyDecl *PropertyDecl = cast<ObjCPropertyDecl>(PDecl);