Lines Matching refs:PDecl
512 ObjCPropertyDecl *PDecl = CreatePropertyDecl(S, CDecl, AtLoc, LParenLoc, in HandlePropertyInClassExtension() local
522 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension()
523 return PDecl; in HandlePropertyInClassExtension()
526 if (!Context.hasSameType(PIDecl->getType(), PDecl->getType())) { in HandlePropertyInClassExtension()
536 QualType ClassExtPropertyT = Context.getCanonicalType(PDecl->getType()); in HandlePropertyInClassExtension()
543 diag::err_type_mismatch_continuation_class) << PDecl->getType(); in HandlePropertyInClassExtension()
551 checkAtomicPropertyMismatch(*this, PIDecl, PDecl, true); in HandlePropertyInClassExtension()
554 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension()
555 return PDecl; in HandlePropertyInClassExtension()
615 ObjCPropertyDecl *PDecl = ObjCPropertyDecl::Create(Context, DC, in CreatePropertyDecl() local
626 Diag(PDecl->getLocation(), diag::err_duplicate_property); in CreatePropertyDecl()
628 PDecl->setInvalidDecl(); in CreatePropertyDecl()
631 DC->addDecl(PDecl); in CreatePropertyDecl()
633 PDecl->setLexicalDeclContext(lexicalDC); in CreatePropertyDecl()
638 PDecl->setInvalidDecl(); in CreatePropertyDecl()
641 ProcessDeclAttributes(S, PDecl, FD.D); in CreatePropertyDecl()
645 PDecl->setGetterName(GetterSel, GetterNameLoc); in CreatePropertyDecl()
646 PDecl->setSetterName(SetterSel, SetterNameLoc); in CreatePropertyDecl()
647 PDecl->setPropertyAttributesAsWritten( in CreatePropertyDecl()
651 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_readonly); in CreatePropertyDecl()
654 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_getter); in CreatePropertyDecl()
657 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_setter); in CreatePropertyDecl()
660 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_readwrite); in CreatePropertyDecl()
663 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_retain); in CreatePropertyDecl()
666 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_strong); in CreatePropertyDecl()
669 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_weak); in CreatePropertyDecl()
672 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_copy); in CreatePropertyDecl()
675 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_unsafe_unretained); in CreatePropertyDecl()
678 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_assign); in CreatePropertyDecl()
682 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_nonatomic); in CreatePropertyDecl()
684 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_atomic); in CreatePropertyDecl()
688 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_assign); in CreatePropertyDecl()
690 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_unsafe_unretained); in CreatePropertyDecl()
693 PDecl->setPropertyImplementation(ObjCPropertyDecl::Required); in CreatePropertyDecl()
695 PDecl->setPropertyImplementation(ObjCPropertyDecl::Optional); in CreatePropertyDecl()
698 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_nullability); in CreatePropertyDecl()
701 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_null_resettable); in CreatePropertyDecl()
704 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_class); in CreatePropertyDecl()
709 Diag(PDecl->getLocation(), diag::err_objc_direct_on_protocol) << true; in CreatePropertyDecl()
711 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_direct); in CreatePropertyDecl()
713 Diag(PDecl->getLocation(), diag::warn_objc_direct_property_ignored) in CreatePropertyDecl()
714 << PDecl->getDeclName(); in CreatePropertyDecl()
718 return PDecl; in CreatePropertyDecl()
846 if (const ObjCProtocolDecl *PDecl = PI->getDefinition()) in SelectPropertyForSynthesisFromProtocols() local
847 PDecl->collectInheritedProtocolProperties(Property, ProtocolSet, in SelectPropertyForSynthesisFromProtocols()
853 if (const ObjCProtocolDecl *PDecl = PI->getDefinition()) in SelectPropertyForSynthesisFromProtocols() local
854 PDecl->collectInheritedProtocolProperties(Property, ProtocolSet, in SelectPropertyForSynthesisFromProtocols()
1794 else if (ObjCProtocolDecl *PDecl = dyn_cast<ObjCProtocolDecl>(CDecl)) { in CollectImmediateProperties() local
1795 for (auto *Prop : PDecl->properties()) { in CollectImmediateProperties()
1813 for (auto *PI : PDecl->protocols()) in CollectImmediateProperties()
2063 for (auto *PDecl : IDecl->all_referenced_protocols()) { in DiagnoseUnimplementedProperties() local
2064 if (!PDecl->hasAttr<ObjCExplicitProtocolImplAttr>()) in DiagnoseUnimplementedProperties()
2082 for (auto *PropDecl : PDecl->properties()) { in DiagnoseUnimplementedProperties()
2636 void Sema::CheckObjCPropertyAttributes(Decl *PDecl, in CheckObjCPropertyAttributes() argument
2641 if (!PDecl || PDecl->isInvalidDecl()) in CheckObjCPropertyAttributes()
2649 ObjCPropertyDecl *PropertyDecl = cast<ObjCPropertyDecl>(PDecl); in CheckObjCPropertyAttributes()