Lines Matching refs:Attributes
186 unsigned Attributes = ODS.getPropertyAttributes(); in ActOnProperty() local
187 FD.D.setObjCWeakProperty((Attributes & ObjCDeclSpec::DQ_PR_weak) != 0); in ActOnProperty()
190 if (!getOwnershipRule(Attributes)) { in ActOnProperty()
191 Attributes |= deducePropertyOwnershipFromType(*this, T); in ActOnProperty()
193 bool isReadWrite = ((Attributes & ObjCDeclSpec::DQ_PR_readwrite) || in ActOnProperty()
195 !(Attributes & ObjCDeclSpec::DQ_PR_readonly)); in ActOnProperty()
206 isReadWrite, Attributes, in ActOnProperty()
217 ODS.getSetterNameLoc(), isReadWrite, Attributes, in ActOnProperty()
225 CheckObjCPropertyAttributes(Res, AtLoc, Attributes, in ActOnProperty()
282 makePropertyAttributesAsWritten(unsigned Attributes) { in makePropertyAttributesAsWritten() argument
284 if (Attributes & ObjCDeclSpec::DQ_PR_readonly) in makePropertyAttributesAsWritten()
286 if (Attributes & ObjCDeclSpec::DQ_PR_readwrite) in makePropertyAttributesAsWritten()
288 if (Attributes & ObjCDeclSpec::DQ_PR_getter) in makePropertyAttributesAsWritten()
290 if (Attributes & ObjCDeclSpec::DQ_PR_setter) in makePropertyAttributesAsWritten()
292 if (Attributes & ObjCDeclSpec::DQ_PR_assign) in makePropertyAttributesAsWritten()
294 if (Attributes & ObjCDeclSpec::DQ_PR_retain) in makePropertyAttributesAsWritten()
296 if (Attributes & ObjCDeclSpec::DQ_PR_strong) in makePropertyAttributesAsWritten()
298 if (Attributes & ObjCDeclSpec::DQ_PR_weak) in makePropertyAttributesAsWritten()
300 if (Attributes & ObjCDeclSpec::DQ_PR_copy) in makePropertyAttributesAsWritten()
302 if (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained) in makePropertyAttributesAsWritten()
304 if (Attributes & ObjCDeclSpec::DQ_PR_nonatomic) in makePropertyAttributesAsWritten()
306 if (Attributes & ObjCDeclSpec::DQ_PR_atomic) in makePropertyAttributesAsWritten()
308 if (Attributes & ObjCDeclSpec::DQ_PR_class) in makePropertyAttributesAsWritten()
422 unsigned &Attributes, in HandlePropertyInClassExtension() argument
441 (Attributes & ObjCDeclSpec::DQ_PR_class); in HandlePropertyInClassExtension()
466 (Attributes & ObjCDeclSpec::DQ_PR_readwrite) && in HandlePropertyInClassExtension()
488 Attributes |= ObjCDeclSpec::DQ_PR_getter; in HandlePropertyInClassExtension()
494 unsigned NewOwnership = getOwnershipRule(Attributes); in HandlePropertyInClassExtension()
503 Attributes = (Attributes & ~OwnershipMask) | ExistingOwnership; in HandlePropertyInClassExtension()
507 if ((Attributes & ObjCPropertyDecl::OBJC_PR_weak) && in HandlePropertyInClassExtension()
523 Attributes, AttributesAsWritten, in HandlePropertyInClassExtension()
575 const unsigned Attributes, in CreatePropertyDecl() argument
586 if (Attributes & (ObjCDeclSpec::DQ_PR_assign | in CreatePropertyDecl()
589 } else if (getOwnershipRule(Attributes) || !isReadWrite) { in CreatePropertyDecl()
599 isAssign && !(Attributes & ObjCDeclSpec::DQ_PR_assign)) { in CreatePropertyDecl()
628 (Attributes & ObjCDeclSpec::DQ_PR_class); in CreatePropertyDecl()
656 if (Attributes & ObjCDeclSpec::DQ_PR_readonly) in CreatePropertyDecl()
659 if (Attributes & ObjCDeclSpec::DQ_PR_getter) in CreatePropertyDecl()
662 if (Attributes & ObjCDeclSpec::DQ_PR_setter) in CreatePropertyDecl()
668 if (Attributes & ObjCDeclSpec::DQ_PR_retain) in CreatePropertyDecl()
671 if (Attributes & ObjCDeclSpec::DQ_PR_strong) in CreatePropertyDecl()
674 if (Attributes & ObjCDeclSpec::DQ_PR_weak) in CreatePropertyDecl()
677 if (Attributes & ObjCDeclSpec::DQ_PR_copy) in CreatePropertyDecl()
680 if (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained) in CreatePropertyDecl()
687 if (Attributes & ObjCDeclSpec::DQ_PR_nonatomic) in CreatePropertyDecl()
693 if (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained) in CreatePropertyDecl()
703 if (Attributes & ObjCDeclSpec::DQ_PR_nullability) in CreatePropertyDecl()
706 if (Attributes & ObjCDeclSpec::DQ_PR_null_resettable) in CreatePropertyDecl()
709 if (Attributes & ObjCDeclSpec::DQ_PR_class) in CreatePropertyDecl()
2132 unsigned Attributes = Property->getPropertyAttributes(); in AtomicPropertySetterGetterRules() local
2159 if ((Attributes & ObjCPropertyDecl::OBJC_PR_nonatomic) || in AtomicPropertySetterGetterRules()
2160 !(Attributes & ObjCPropertyDecl::OBJC_PR_readwrite)) in AtomicPropertySetterGetterRules()
2533 unsigned &Attributes, in CheckObjCPropertyAttributes() argument
2539 if ((Attributes & ObjCDeclSpec::DQ_PR_readonly) && in CheckObjCPropertyAttributes()
2540 (Attributes & ObjCDeclSpec::DQ_PR_readwrite)) in CheckObjCPropertyAttributes()
2548 if ((Attributes & (ObjCDeclSpec::DQ_PR_weak | ObjCDeclSpec::DQ_PR_copy | in CheckObjCPropertyAttributes()
2553 << (Attributes & ObjCDeclSpec::DQ_PR_weak ? "weak" : in CheckObjCPropertyAttributes()
2554 Attributes & ObjCDeclSpec::DQ_PR_copy ? "copy" : "retain (or strong)"); in CheckObjCPropertyAttributes()
2555 Attributes &= ~(ObjCDeclSpec::DQ_PR_weak | ObjCDeclSpec::DQ_PR_copy | in CheckObjCPropertyAttributes()
2561 if ((Attributes & ObjCDeclSpec::DQ_PR_assign) && in CheckObjCPropertyAttributes()
2562 !(Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained) && in CheckObjCPropertyAttributes()
2569 if (Attributes & ObjCDeclSpec::DQ_PR_assign) { in CheckObjCPropertyAttributes()
2570 if (Attributes & ObjCDeclSpec::DQ_PR_copy) { in CheckObjCPropertyAttributes()
2573 Attributes &= ~ObjCDeclSpec::DQ_PR_copy; in CheckObjCPropertyAttributes()
2575 if (Attributes & ObjCDeclSpec::DQ_PR_retain) { in CheckObjCPropertyAttributes()
2578 Attributes &= ~ObjCDeclSpec::DQ_PR_retain; in CheckObjCPropertyAttributes()
2580 if (Attributes & ObjCDeclSpec::DQ_PR_strong) { in CheckObjCPropertyAttributes()
2583 Attributes &= ~ObjCDeclSpec::DQ_PR_strong; in CheckObjCPropertyAttributes()
2586 (Attributes & ObjCDeclSpec::DQ_PR_weak)) { in CheckObjCPropertyAttributes()
2589 Attributes &= ~ObjCDeclSpec::DQ_PR_weak; in CheckObjCPropertyAttributes()
2593 } else if (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained) { in CheckObjCPropertyAttributes()
2594 if (Attributes & ObjCDeclSpec::DQ_PR_copy) { in CheckObjCPropertyAttributes()
2597 Attributes &= ~ObjCDeclSpec::DQ_PR_copy; in CheckObjCPropertyAttributes()
2599 if (Attributes & ObjCDeclSpec::DQ_PR_retain) { in CheckObjCPropertyAttributes()
2602 Attributes &= ~ObjCDeclSpec::DQ_PR_retain; in CheckObjCPropertyAttributes()
2604 if (Attributes & ObjCDeclSpec::DQ_PR_strong) { in CheckObjCPropertyAttributes()
2607 Attributes &= ~ObjCDeclSpec::DQ_PR_strong; in CheckObjCPropertyAttributes()
2610 (Attributes & ObjCDeclSpec::DQ_PR_weak)) { in CheckObjCPropertyAttributes()
2613 Attributes &= ~ObjCDeclSpec::DQ_PR_weak; in CheckObjCPropertyAttributes()
2615 } else if (Attributes & ObjCDeclSpec::DQ_PR_copy) { in CheckObjCPropertyAttributes()
2616 if (Attributes & ObjCDeclSpec::DQ_PR_retain) { in CheckObjCPropertyAttributes()
2619 Attributes &= ~ObjCDeclSpec::DQ_PR_retain; in CheckObjCPropertyAttributes()
2621 if (Attributes & ObjCDeclSpec::DQ_PR_strong) { in CheckObjCPropertyAttributes()
2624 Attributes &= ~ObjCDeclSpec::DQ_PR_strong; in CheckObjCPropertyAttributes()
2626 if (Attributes & ObjCDeclSpec::DQ_PR_weak) { in CheckObjCPropertyAttributes()
2629 Attributes &= ~ObjCDeclSpec::DQ_PR_weak; in CheckObjCPropertyAttributes()
2632 else if ((Attributes & ObjCDeclSpec::DQ_PR_retain) && in CheckObjCPropertyAttributes()
2633 (Attributes & ObjCDeclSpec::DQ_PR_weak)) { in CheckObjCPropertyAttributes()
2636 Attributes &= ~ObjCDeclSpec::DQ_PR_retain; in CheckObjCPropertyAttributes()
2638 else if ((Attributes & ObjCDeclSpec::DQ_PR_strong) && in CheckObjCPropertyAttributes()
2639 (Attributes & ObjCDeclSpec::DQ_PR_weak)) { in CheckObjCPropertyAttributes()
2642 Attributes &= ~ObjCDeclSpec::DQ_PR_weak; in CheckObjCPropertyAttributes()
2645 if (Attributes & ObjCDeclSpec::DQ_PR_weak) { in CheckObjCPropertyAttributes()
2654 if ((Attributes & ObjCDeclSpec::DQ_PR_atomic) && in CheckObjCPropertyAttributes()
2655 (Attributes & ObjCDeclSpec::DQ_PR_nonatomic)) { in CheckObjCPropertyAttributes()
2658 Attributes &= ~ObjCDeclSpec::DQ_PR_atomic; in CheckObjCPropertyAttributes()
2663 if (!getOwnershipRule(Attributes) && PropertyTy->isObjCRetainableType()) { in CheckObjCPropertyAttributes()
2664 if (Attributes & ObjCDeclSpec::DQ_PR_readonly) { in CheckObjCPropertyAttributes()
2697 if (!(Attributes & ObjCDeclSpec::DQ_PR_copy) in CheckObjCPropertyAttributes()
2698 &&!(Attributes & ObjCDeclSpec::DQ_PR_readonly) in CheckObjCPropertyAttributes()
2702 else if ((Attributes & ObjCDeclSpec::DQ_PR_retain) && in CheckObjCPropertyAttributes()
2703 !(Attributes & ObjCDeclSpec::DQ_PR_readonly) && in CheckObjCPropertyAttributes()
2704 !(Attributes & ObjCDeclSpec::DQ_PR_strong) && in CheckObjCPropertyAttributes()
2708 if ((Attributes & ObjCDeclSpec::DQ_PR_readonly) && in CheckObjCPropertyAttributes()
2709 (Attributes & ObjCDeclSpec::DQ_PR_setter)) in CheckObjCPropertyAttributes()