Lines Matching refs:PDecl

514   ObjCPropertyDecl *PDecl = CreatePropertyDecl(S, CDecl, AtLoc, LParenLoc,  in HandlePropertyInClassExtension()  local
523 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension()
524 return PDecl; in HandlePropertyInClassExtension()
527 if (!Context.hasSameType(PIDecl->getType(), PDecl->getType())) { in HandlePropertyInClassExtension()
537 QualType ClassExtPropertyT = Context.getCanonicalType(PDecl->getType()); in HandlePropertyInClassExtension()
544 diag::err_type_mismatch_continuation_class) << PDecl->getType(); in HandlePropertyInClassExtension()
552 checkAtomicPropertyMismatch(*this, PIDecl, PDecl, true); in HandlePropertyInClassExtension()
555 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension()
556 return PDecl; in HandlePropertyInClassExtension()
614 ObjCPropertyDecl *PDecl = ObjCPropertyDecl::Create(Context, DC, in CreatePropertyDecl() local
624 Diag(PDecl->getLocation(), diag::err_duplicate_property); in CreatePropertyDecl()
626 PDecl->setInvalidDecl(); in CreatePropertyDecl()
629 DC->addDecl(PDecl); in CreatePropertyDecl()
631 PDecl->setLexicalDeclContext(lexicalDC); in CreatePropertyDecl()
636 PDecl->setInvalidDecl(); in CreatePropertyDecl()
639 ProcessDeclAttributes(S, PDecl, FD.D); in CreatePropertyDecl()
643 PDecl->setGetterName(GetterSel); in CreatePropertyDecl()
644 PDecl->setSetterName(SetterSel); in CreatePropertyDecl()
645 PDecl->setPropertyAttributesAsWritten( in CreatePropertyDecl()
649 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_readonly); in CreatePropertyDecl()
652 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_getter); in CreatePropertyDecl()
655 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_setter); in CreatePropertyDecl()
658 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_readwrite); in CreatePropertyDecl()
661 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_retain); in CreatePropertyDecl()
664 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_strong); in CreatePropertyDecl()
667 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_weak); in CreatePropertyDecl()
670 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_copy); in CreatePropertyDecl()
673 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_unsafe_unretained); in CreatePropertyDecl()
676 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_assign); in CreatePropertyDecl()
680 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_nonatomic); in CreatePropertyDecl()
682 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_atomic); in CreatePropertyDecl()
686 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_assign); in CreatePropertyDecl()
688 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_unsafe_unretained); in CreatePropertyDecl()
691 PDecl->setPropertyImplementation(ObjCPropertyDecl::Required); in CreatePropertyDecl()
693 PDecl->setPropertyImplementation(ObjCPropertyDecl::Optional); in CreatePropertyDecl()
696 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_nullability); in CreatePropertyDecl()
699 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_null_resettable); in CreatePropertyDecl()
702 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_class); in CreatePropertyDecl()
704 return PDecl; in CreatePropertyDecl()
818 if (const ObjCProtocolDecl *PDecl = PI->getDefinition()) in DiagnosePropertyMismatchDeclInProtocols() local
819 PDecl->collectInheritedProtocolProperties(Property, PropMap); in DiagnosePropertyMismatchDeclInProtocols()
824 if (const ObjCProtocolDecl *PDecl = PI->getDefinition()) in DiagnosePropertyMismatchDeclInProtocols() local
825 PDecl->collectInheritedProtocolProperties(Property, PropMap); in DiagnosePropertyMismatchDeclInProtocols()
1575 else if (ObjCProtocolDecl *PDecl = dyn_cast<ObjCProtocolDecl>(CDecl)) { in CollectImmediateProperties() local
1576 for (auto *Prop : PDecl->properties()) { in CollectImmediateProperties()
1594 for (auto *PI : PDecl->protocols()) in CollectImmediateProperties()
1840 for (auto *PDecl : IDecl->all_referenced_protocols()) { in DiagnoseUnimplementedProperties() local
1841 if (!PDecl->hasAttr<ObjCExplicitProtocolImplAttr>()) in DiagnoseUnimplementedProperties()
1859 for (auto *PropDecl : PDecl->properties()) { in DiagnoseUnimplementedProperties()
2363 void Sema::CheckObjCPropertyAttributes(Decl *PDecl, in CheckObjCPropertyAttributes() argument
2368 if (!PDecl || PDecl->isInvalidDecl()) in CheckObjCPropertyAttributes()
2376 ObjCPropertyDecl *PropertyDecl = cast<ObjCPropertyDecl>(PDecl); in CheckObjCPropertyAttributes()