Lines Matching refs:PDecl
362 ObjCPropertyDecl *PDecl = in HandlePropertyInClassExtension() local
365 PDecl->setPropertyAttributesAsWritten( in HandlePropertyInClassExtension()
368 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_readonly); in HandlePropertyInClassExtension()
370 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_readwrite); in HandlePropertyInClassExtension()
372 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_nonatomic); in HandlePropertyInClassExtension()
374 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_atomic); in HandlePropertyInClassExtension()
376 PDecl->setGetterName(GetterSel); in HandlePropertyInClassExtension()
377 PDecl->setSetterName(SetterSel); in HandlePropertyInClassExtension()
378 ProcessDeclAttributes(S, PDecl, FD.D); in HandlePropertyInClassExtension()
379 DC->addDecl(PDecl); in HandlePropertyInClassExtension()
406 PDecl->setGetterMethodDecl(PrimaryPDecl->getGetterMethodDecl()); in HandlePropertyInClassExtension()
407 PDecl->setSetterMethodDecl(PrimaryPDecl->getSetterMethodDecl()); in HandlePropertyInClassExtension()
412 if (!Context.hasSameType(PIDecl->getType(), PDecl->getType())) { in HandlePropertyInClassExtension()
422 !isa<ObjCObjectPointerType>(PDecl->getType()) || in HandlePropertyInClassExtension()
423 (!isObjCPointerConversion(PDecl->getType(), PIDecl->getType(), in HandlePropertyInClassExtension()
427 diag::err_type_mismatch_continuation_class) << PDecl->getType(); in HandlePropertyInClassExtension()
494 ProcessPropertyDecl(PIDecl, CCPrimary, PDecl, CDecl); in HandlePropertyInClassExtension()
495 PDecl->setGetterMethodDecl(PIDecl->getGetterMethodDecl()); in HandlePropertyInClassExtension()
496 PDecl->setSetterMethodDecl(PIDecl->getSetterMethodDecl()); in HandlePropertyInClassExtension()
498 L->AddedObjCPropertyInClassExtension(PDecl, PIDecl, CDecl); in HandlePropertyInClassExtension()
499 return PDecl; in HandlePropertyInClassExtension()
536 ObjCPropertyDecl *PDecl = ObjCPropertyDecl::Create(Context, DC, in CreatePropertyDecl() local
542 Diag(PDecl->getLocation(), diag::err_duplicate_property); in CreatePropertyDecl()
544 PDecl->setInvalidDecl(); in CreatePropertyDecl()
547 DC->addDecl(PDecl); in CreatePropertyDecl()
549 PDecl->setLexicalDeclContext(lexicalDC); in CreatePropertyDecl()
554 PDecl->setInvalidDecl(); in CreatePropertyDecl()
557 ProcessDeclAttributes(S, PDecl, FD.D); in CreatePropertyDecl()
561 PDecl->setGetterName(GetterSel); in CreatePropertyDecl()
562 PDecl->setSetterName(SetterSel); in CreatePropertyDecl()
563 PDecl->setPropertyAttributesAsWritten( in CreatePropertyDecl()
567 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_readonly); in CreatePropertyDecl()
570 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_getter); in CreatePropertyDecl()
573 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_setter); in CreatePropertyDecl()
576 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_readwrite); in CreatePropertyDecl()
579 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_retain); in CreatePropertyDecl()
582 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_strong); in CreatePropertyDecl()
585 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_weak); in CreatePropertyDecl()
588 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_copy); in CreatePropertyDecl()
591 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_unsafe_unretained); in CreatePropertyDecl()
594 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_assign); in CreatePropertyDecl()
598 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_nonatomic); in CreatePropertyDecl()
600 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_atomic); in CreatePropertyDecl()
604 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_assign); in CreatePropertyDecl()
606 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_unsafe_unretained); in CreatePropertyDecl()
609 PDecl->setPropertyImplementation(ObjCPropertyDecl::Required); in CreatePropertyDecl()
611 PDecl->setPropertyImplementation(ObjCPropertyDecl::Optional); in CreatePropertyDecl()
613 return PDecl; in CreatePropertyDecl()
1381 Sema::MatchOneProtocolPropertiesInClass(Decl *CDecl, ObjCProtocolDecl *PDecl) { in MatchOneProtocolPropertiesInClass() argument
1391 for (ObjCProtocolDecl::prop_iterator P = PDecl->prop_begin(), in MatchOneProtocolPropertiesInClass()
1392 E = PDecl->prop_end(); P != E; ++P) { in MatchOneProtocolPropertiesInClass()
1401 PDecl->getIdentifier()); in MatchOneProtocolPropertiesInClass()
1413 for (ObjCProtocolDecl::prop_iterator P = PDecl->prop_begin(), in MatchOneProtocolPropertiesInClass()
1414 E = PDecl->prop_end(); P != E; ++P) { in MatchOneProtocolPropertiesInClass()
1423 PDecl->getIdentifier()); in MatchOneProtocolPropertiesInClass()
1433 bool Sema::isPropertyReadonly(ObjCPropertyDecl *PDecl, in isPropertyReadonly() argument
1436 if (!PDecl->isReadOnly()) in isPropertyReadonly()
1440 if (IDecl->getInstanceMethod(PDecl->getSetterName())) in isPropertyReadonly()
1450 if (Cat->getInstanceMethod(PDecl->getSetterName())) in isPropertyReadonly()
1453 Cat->FindPropertyDeclaration(PDecl->getIdentifier()); in isPropertyReadonly()
1463 if (IMD->getInstanceMethod(PDecl->getSetterName())) in isPropertyReadonly()
1467 if (CIMD->getInstanceMethod(PDecl->getSetterName())) in isPropertyReadonly()
1473 if (ImpDecl->getInstanceMethod(PDecl->getSetterName())) in isPropertyReadonly()
1477 return isPropertyReadonly(PDecl, SIDecl); in isPropertyReadonly()
1510 else if (ObjCProtocolDecl *PDecl = dyn_cast<ObjCProtocolDecl>(CDecl)) { in CollectImmediateProperties() local
1511 for (ObjCProtocolDecl::prop_iterator P = PDecl->prop_begin(), in CollectImmediateProperties()
1512 E = PDecl->prop_end(); P != E; ++P) { in CollectImmediateProperties()
1525 for (ObjCProtocolDecl::protocol_iterator PI = PDecl->protocol_begin(), in CollectImmediateProperties()
1526 E = PDecl->protocol_end(); PI != E; ++PI) in CollectImmediateProperties()
2019 void Sema::CheckObjCPropertyAttributes(Decl *PDecl, in CheckObjCPropertyAttributes() argument
2024 if (!PDecl || PDecl->isInvalidDecl()) in CheckObjCPropertyAttributes()
2027 ObjCPropertyDecl *PropertyDecl = cast<ObjCPropertyDecl>(PDecl); in CheckObjCPropertyAttributes()