Lines Matching refs:PDecl

349   ObjCPropertyDecl *PDecl =  in HandlePropertyInClassExtension()  local
352 PDecl->setPropertyAttributesAsWritten( in HandlePropertyInClassExtension()
355 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_readonly); in HandlePropertyInClassExtension()
357 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_readwrite); in HandlePropertyInClassExtension()
359 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_nonatomic); in HandlePropertyInClassExtension()
361 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_atomic); in HandlePropertyInClassExtension()
363 PDecl->setGetterName(GetterSel); in HandlePropertyInClassExtension()
364 PDecl->setSetterName(SetterSel); in HandlePropertyInClassExtension()
365 ProcessDeclAttributes(S, PDecl, FD.D); in HandlePropertyInClassExtension()
366 DC->addDecl(PDecl); in HandlePropertyInClassExtension()
394 PDecl->setGetterMethodDecl(PrimaryPDecl->getGetterMethodDecl()); in HandlePropertyInClassExtension()
395 PDecl->setSetterMethodDecl(PrimaryPDecl->getSetterMethodDecl()); in HandlePropertyInClassExtension()
401 if (!Context.hasSameType(PIDecl->getType(), PDecl->getType())) { in HandlePropertyInClassExtension()
411 QualType ClassExtPropertyT = Context.getCanonicalType(PDecl->getType()); in HandlePropertyInClassExtension()
418 diag::err_type_mismatch_continuation_class) << PDecl->getType(); in HandlePropertyInClassExtension()
515 ProcessPropertyDecl(PIDecl, CCPrimary, PDecl, CDecl); in HandlePropertyInClassExtension()
516 PDecl->setGetterMethodDecl(PIDecl->getGetterMethodDecl()); in HandlePropertyInClassExtension()
517 PDecl->setSetterMethodDecl(PIDecl->getSetterMethodDecl()); in HandlePropertyInClassExtension()
519 L->AddedObjCPropertyInClassExtension(PDecl, PIDecl, CDecl); in HandlePropertyInClassExtension()
520 return PDecl; in HandlePropertyInClassExtension()
565 ObjCPropertyDecl *PDecl = ObjCPropertyDecl::Create(Context, DC, in CreatePropertyDecl() local
571 Diag(PDecl->getLocation(), diag::err_duplicate_property); in CreatePropertyDecl()
573 PDecl->setInvalidDecl(); in CreatePropertyDecl()
576 DC->addDecl(PDecl); in CreatePropertyDecl()
578 PDecl->setLexicalDeclContext(lexicalDC); in CreatePropertyDecl()
583 PDecl->setInvalidDecl(); in CreatePropertyDecl()
586 ProcessDeclAttributes(S, PDecl, FD.D); in CreatePropertyDecl()
590 PDecl->setGetterName(GetterSel); in CreatePropertyDecl()
591 PDecl->setSetterName(SetterSel); in CreatePropertyDecl()
592 PDecl->setPropertyAttributesAsWritten( in CreatePropertyDecl()
596 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_readonly); in CreatePropertyDecl()
599 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_getter); in CreatePropertyDecl()
602 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_setter); in CreatePropertyDecl()
605 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_readwrite); in CreatePropertyDecl()
608 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_retain); in CreatePropertyDecl()
611 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_strong); in CreatePropertyDecl()
614 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_weak); in CreatePropertyDecl()
617 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_copy); in CreatePropertyDecl()
620 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_unsafe_unretained); in CreatePropertyDecl()
623 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_assign); in CreatePropertyDecl()
627 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_nonatomic); in CreatePropertyDecl()
629 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_atomic); in CreatePropertyDecl()
633 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_assign); in CreatePropertyDecl()
635 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_unsafe_unretained); in CreatePropertyDecl()
638 PDecl->setPropertyImplementation(ObjCPropertyDecl::Required); in CreatePropertyDecl()
640 PDecl->setPropertyImplementation(ObjCPropertyDecl::Optional); in CreatePropertyDecl()
642 return PDecl; in CreatePropertyDecl()
755 if (const ObjCProtocolDecl *PDecl = PI->getDefinition()) in DiagnosePropertyMismatchDeclInProtocols() local
756 PDecl->collectInheritedProtocolProperties(Property, PropMap); in DiagnosePropertyMismatchDeclInProtocols()
761 if (const ObjCProtocolDecl *PDecl = PI->getDefinition()) in DiagnosePropertyMismatchDeclInProtocols() local
762 PDecl->collectInheritedProtocolProperties(Property, PropMap); in DiagnosePropertyMismatchDeclInProtocols()
1448 else if (ObjCProtocolDecl *PDecl = dyn_cast<ObjCProtocolDecl>(CDecl)) { in CollectImmediateProperties() local
1449 for (auto *Prop : PDecl->properties()) { in CollectImmediateProperties()
1461 for (auto *PI : PDecl->protocols()) in CollectImmediateProperties()
1685 for (auto *PDecl : IDecl->all_referenced_protocols()) { in DiagnoseUnimplementedProperties() local
1686 if (!PDecl->hasAttr<ObjCExplicitProtocolImplAttr>()) in DiagnoseUnimplementedProperties()
1703 for (auto *PropDecl : PDecl->properties()) { in DiagnoseUnimplementedProperties()
2116 void Sema::CheckObjCPropertyAttributes(Decl *PDecl, in CheckObjCPropertyAttributes() argument
2121 if (!PDecl || PDecl->isInvalidDecl()) in CheckObjCPropertyAttributes()
2129 ObjCPropertyDecl *PropertyDecl = cast<ObjCPropertyDecl>(PDecl); in CheckObjCPropertyAttributes()