Lines Matching refs:PDecl

519   ObjCPropertyDecl *PDecl = CreatePropertyDecl(S, CDecl, AtLoc, LParenLoc,  in HandlePropertyInClassExtension()  local
529 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension()
530 return PDecl; in HandlePropertyInClassExtension()
533 if (!Context.hasSameType(PIDecl->getType(), PDecl->getType())) { in HandlePropertyInClassExtension()
543 QualType ClassExtPropertyT = Context.getCanonicalType(PDecl->getType()); in HandlePropertyInClassExtension()
550 diag::err_type_mismatch_continuation_class) << PDecl->getType(); in HandlePropertyInClassExtension()
558 checkAtomicPropertyMismatch(*this, PIDecl, PDecl, true); in HandlePropertyInClassExtension()
561 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension()
562 return PDecl; in HandlePropertyInClassExtension()
622 ObjCPropertyDecl *PDecl = ObjCPropertyDecl::Create(Context, DC, in CreatePropertyDecl() local
633 Diag(PDecl->getLocation(), diag::err_duplicate_property); in CreatePropertyDecl()
635 PDecl->setInvalidDecl(); in CreatePropertyDecl()
638 DC->addDecl(PDecl); in CreatePropertyDecl()
640 PDecl->setLexicalDeclContext(lexicalDC); in CreatePropertyDecl()
645 PDecl->setInvalidDecl(); in CreatePropertyDecl()
648 ProcessDeclAttributes(S, PDecl, FD.D); in CreatePropertyDecl()
652 PDecl->setGetterName(GetterSel, GetterNameLoc); in CreatePropertyDecl()
653 PDecl->setSetterName(SetterSel, SetterNameLoc); in CreatePropertyDecl()
654 PDecl->setPropertyAttributesAsWritten( in CreatePropertyDecl()
658 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_readonly); in CreatePropertyDecl()
661 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_getter); in CreatePropertyDecl()
664 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_setter); in CreatePropertyDecl()
667 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_readwrite); in CreatePropertyDecl()
670 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_retain); in CreatePropertyDecl()
673 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_strong); in CreatePropertyDecl()
676 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_weak); in CreatePropertyDecl()
679 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_copy); in CreatePropertyDecl()
682 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_unsafe_unretained); in CreatePropertyDecl()
685 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_assign); in CreatePropertyDecl()
689 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_nonatomic); in CreatePropertyDecl()
691 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_atomic); in CreatePropertyDecl()
695 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_assign); in CreatePropertyDecl()
697 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_unsafe_unretained); in CreatePropertyDecl()
700 PDecl->setPropertyImplementation(ObjCPropertyDecl::Required); in CreatePropertyDecl()
702 PDecl->setPropertyImplementation(ObjCPropertyDecl::Optional); in CreatePropertyDecl()
705 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_nullability); in CreatePropertyDecl()
708 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_null_resettable); in CreatePropertyDecl()
711 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_class); in CreatePropertyDecl()
716 Diag(PDecl->getLocation(), diag::err_objc_direct_on_protocol) << true; in CreatePropertyDecl()
718 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_direct); in CreatePropertyDecl()
720 Diag(PDecl->getLocation(), diag::warn_objc_direct_property_ignored) in CreatePropertyDecl()
721 << PDecl->getDeclName(); in CreatePropertyDecl()
725 return PDecl; in CreatePropertyDecl()
853 if (const ObjCProtocolDecl *PDecl = PI->getDefinition()) in SelectPropertyForSynthesisFromProtocols() local
854 PDecl->collectInheritedProtocolProperties(Property, ProtocolSet, in SelectPropertyForSynthesisFromProtocols()
860 if (const ObjCProtocolDecl *PDecl = PI->getDefinition()) in SelectPropertyForSynthesisFromProtocols() local
861 PDecl->collectInheritedProtocolProperties(Property, ProtocolSet, in SelectPropertyForSynthesisFromProtocols()
1803 else if (ObjCProtocolDecl *PDecl = dyn_cast<ObjCProtocolDecl>(CDecl)) { in CollectImmediateProperties() local
1804 for (auto *Prop : PDecl->properties()) { in CollectImmediateProperties()
1822 for (auto *PI : PDecl->protocols()) in CollectImmediateProperties()
2075 for (auto *PDecl : IDecl->all_referenced_protocols()) { in DiagnoseUnimplementedProperties() local
2076 if (!PDecl->hasAttr<ObjCExplicitProtocolImplAttr>()) in DiagnoseUnimplementedProperties()
2094 for (auto *PropDecl : PDecl->properties()) { in DiagnoseUnimplementedProperties()
2648 void Sema::CheckObjCPropertyAttributes(Decl *PDecl, in CheckObjCPropertyAttributes() argument
2653 if (!PDecl || PDecl->isInvalidDecl()) in CheckObjCPropertyAttributes()
2661 ObjCPropertyDecl *PropertyDecl = cast<ObjCPropertyDecl>(PDecl); in CheckObjCPropertyAttributes()