Lines Matching refs:Attributes
180 unsigned Attributes = ODS.getPropertyAttributes(); in ActOnProperty() local
181 FD.D.setObjCWeakProperty((Attributes & ObjCPropertyAttribute::kind_weak) != in ActOnProperty()
185 if (!getOwnershipRule(Attributes)) { in ActOnProperty()
186 Attributes |= deducePropertyOwnershipFromType(*this, T); in ActOnProperty()
188 bool isReadWrite = ((Attributes & ObjCPropertyAttribute::kind_readwrite) || in ActOnProperty()
190 !(Attributes & ObjCPropertyAttribute::kind_readonly)); in ActOnProperty()
201 isReadWrite, Attributes, in ActOnProperty()
212 ODS.getSetterNameLoc(), isReadWrite, Attributes, in ActOnProperty()
220 CheckObjCPropertyAttributes(Res, AtLoc, Attributes, in ActOnProperty()
272 makePropertyAttributesAsWritten(unsigned Attributes) { in makePropertyAttributesAsWritten() argument
274 if (Attributes & ObjCPropertyAttribute::kind_readonly) in makePropertyAttributesAsWritten()
276 if (Attributes & ObjCPropertyAttribute::kind_readwrite) in makePropertyAttributesAsWritten()
278 if (Attributes & ObjCPropertyAttribute::kind_getter) in makePropertyAttributesAsWritten()
280 if (Attributes & ObjCPropertyAttribute::kind_setter) in makePropertyAttributesAsWritten()
282 if (Attributes & ObjCPropertyAttribute::kind_assign) in makePropertyAttributesAsWritten()
284 if (Attributes & ObjCPropertyAttribute::kind_retain) in makePropertyAttributesAsWritten()
286 if (Attributes & ObjCPropertyAttribute::kind_strong) in makePropertyAttributesAsWritten()
288 if (Attributes & ObjCPropertyAttribute::kind_weak) in makePropertyAttributesAsWritten()
290 if (Attributes & ObjCPropertyAttribute::kind_copy) in makePropertyAttributesAsWritten()
292 if (Attributes & ObjCPropertyAttribute::kind_unsafe_unretained) in makePropertyAttributesAsWritten()
294 if (Attributes & ObjCPropertyAttribute::kind_nonatomic) in makePropertyAttributesAsWritten()
296 if (Attributes & ObjCPropertyAttribute::kind_atomic) in makePropertyAttributesAsWritten()
298 if (Attributes & ObjCPropertyAttribute::kind_class) in makePropertyAttributesAsWritten()
300 if (Attributes & ObjCPropertyAttribute::kind_direct) in makePropertyAttributesAsWritten()
414 unsigned &Attributes, in HandlePropertyInClassExtension() argument
434 (Attributes & ObjCPropertyAttribute::kind_class); in HandlePropertyInClassExtension()
459 (Attributes & ObjCPropertyAttribute::kind_readwrite) && in HandlePropertyInClassExtension()
481 Attributes |= ObjCPropertyAttribute::kind_getter; in HandlePropertyInClassExtension()
487 unsigned NewOwnership = getOwnershipRule(Attributes); in HandlePropertyInClassExtension()
496 Attributes = (Attributes & ~OwnershipMask) | ExistingOwnership; in HandlePropertyInClassExtension()
500 if ((Attributes & ObjCPropertyAttribute::kind_weak) && in HandlePropertyInClassExtension()
516 Attributes, AttributesAsWritten, in HandlePropertyInClassExtension()
568 const unsigned Attributes, in CreatePropertyDecl() argument
579 if (Attributes & (ObjCPropertyAttribute::kind_assign | in CreatePropertyDecl()
582 } else if (getOwnershipRule(Attributes) || !isReadWrite) { in CreatePropertyDecl()
592 !(Attributes & ObjCPropertyAttribute::kind_assign)) { in CreatePropertyDecl()
622 (Attributes & ObjCPropertyAttribute::kind_class); in CreatePropertyDecl()
650 if (Attributes & ObjCPropertyAttribute::kind_readonly) in CreatePropertyDecl()
653 if (Attributes & ObjCPropertyAttribute::kind_getter) in CreatePropertyDecl()
656 if (Attributes & ObjCPropertyAttribute::kind_setter) in CreatePropertyDecl()
662 if (Attributes & ObjCPropertyAttribute::kind_retain) in CreatePropertyDecl()
665 if (Attributes & ObjCPropertyAttribute::kind_strong) in CreatePropertyDecl()
668 if (Attributes & ObjCPropertyAttribute::kind_weak) in CreatePropertyDecl()
671 if (Attributes & ObjCPropertyAttribute::kind_copy) in CreatePropertyDecl()
674 if (Attributes & ObjCPropertyAttribute::kind_unsafe_unretained) in CreatePropertyDecl()
681 if (Attributes & ObjCPropertyAttribute::kind_nonatomic) in CreatePropertyDecl()
687 if (Attributes & ObjCPropertyAttribute::kind_unsafe_unretained) in CreatePropertyDecl()
697 if (Attributes & ObjCPropertyAttribute::kind_nullability) in CreatePropertyDecl()
700 if (Attributes & ObjCPropertyAttribute::kind_null_resettable) in CreatePropertyDecl()
703 if (Attributes & ObjCPropertyAttribute::kind_class) in CreatePropertyDecl()
706 if ((Attributes & ObjCPropertyAttribute::kind_direct) || in CreatePropertyDecl()
2184 unsigned Attributes = Property->getPropertyAttributes(); in AtomicPropertySetterGetterRules() local
2214 if ((Attributes & ObjCPropertyAttribute::kind_nonatomic) || in AtomicPropertySetterGetterRules()
2215 !(Attributes & ObjCPropertyAttribute::kind_readwrite)) in AtomicPropertySetterGetterRules()
2641 unsigned &Attributes, in CheckObjCPropertyAttributes() argument
2647 if ((Attributes & ObjCPropertyAttribute::kind_readonly) && in CheckObjCPropertyAttributes()
2648 (Attributes & ObjCPropertyAttribute::kind_readwrite)) in CheckObjCPropertyAttributes()
2656 if ((Attributes & in CheckObjCPropertyAttributes()
2663 << (Attributes & ObjCPropertyAttribute::kind_weak in CheckObjCPropertyAttributes()
2665 : Attributes & ObjCPropertyAttribute::kind_copy in CheckObjCPropertyAttributes()
2668 Attributes &= in CheckObjCPropertyAttributes()
2676 if ((Attributes & ObjCPropertyAttribute::kind_assign) && in CheckObjCPropertyAttributes()
2677 !(Attributes & ObjCPropertyAttribute::kind_unsafe_unretained) && in CheckObjCPropertyAttributes()
2684 if (Attributes & ObjCPropertyAttribute::kind_assign) { in CheckObjCPropertyAttributes()
2685 if (Attributes & ObjCPropertyAttribute::kind_copy) { in CheckObjCPropertyAttributes()
2688 Attributes &= ~ObjCPropertyAttribute::kind_copy; in CheckObjCPropertyAttributes()
2690 if (Attributes & ObjCPropertyAttribute::kind_retain) { in CheckObjCPropertyAttributes()
2693 Attributes &= ~ObjCPropertyAttribute::kind_retain; in CheckObjCPropertyAttributes()
2695 if (Attributes & ObjCPropertyAttribute::kind_strong) { in CheckObjCPropertyAttributes()
2698 Attributes &= ~ObjCPropertyAttribute::kind_strong; in CheckObjCPropertyAttributes()
2701 (Attributes & ObjCPropertyAttribute::kind_weak)) { in CheckObjCPropertyAttributes()
2704 Attributes &= ~ObjCPropertyAttribute::kind_weak; in CheckObjCPropertyAttributes()
2708 } else if (Attributes & ObjCPropertyAttribute::kind_unsafe_unretained) { in CheckObjCPropertyAttributes()
2709 if (Attributes & ObjCPropertyAttribute::kind_copy) { in CheckObjCPropertyAttributes()
2712 Attributes &= ~ObjCPropertyAttribute::kind_copy; in CheckObjCPropertyAttributes()
2714 if (Attributes & ObjCPropertyAttribute::kind_retain) { in CheckObjCPropertyAttributes()
2717 Attributes &= ~ObjCPropertyAttribute::kind_retain; in CheckObjCPropertyAttributes()
2719 if (Attributes & ObjCPropertyAttribute::kind_strong) { in CheckObjCPropertyAttributes()
2722 Attributes &= ~ObjCPropertyAttribute::kind_strong; in CheckObjCPropertyAttributes()
2725 (Attributes & ObjCPropertyAttribute::kind_weak)) { in CheckObjCPropertyAttributes()
2728 Attributes &= ~ObjCPropertyAttribute::kind_weak; in CheckObjCPropertyAttributes()
2730 } else if (Attributes & ObjCPropertyAttribute::kind_copy) { in CheckObjCPropertyAttributes()
2731 if (Attributes & ObjCPropertyAttribute::kind_retain) { in CheckObjCPropertyAttributes()
2734 Attributes &= ~ObjCPropertyAttribute::kind_retain; in CheckObjCPropertyAttributes()
2736 if (Attributes & ObjCPropertyAttribute::kind_strong) { in CheckObjCPropertyAttributes()
2739 Attributes &= ~ObjCPropertyAttribute::kind_strong; in CheckObjCPropertyAttributes()
2741 if (Attributes & ObjCPropertyAttribute::kind_weak) { in CheckObjCPropertyAttributes()
2744 Attributes &= ~ObjCPropertyAttribute::kind_weak; in CheckObjCPropertyAttributes()
2746 } else if ((Attributes & ObjCPropertyAttribute::kind_retain) && in CheckObjCPropertyAttributes()
2747 (Attributes & ObjCPropertyAttribute::kind_weak)) { in CheckObjCPropertyAttributes()
2750 Attributes &= ~ObjCPropertyAttribute::kind_retain; in CheckObjCPropertyAttributes()
2751 } else if ((Attributes & ObjCPropertyAttribute::kind_strong) && in CheckObjCPropertyAttributes()
2752 (Attributes & ObjCPropertyAttribute::kind_weak)) { in CheckObjCPropertyAttributes()
2755 Attributes &= ~ObjCPropertyAttribute::kind_weak; in CheckObjCPropertyAttributes()
2758 if (Attributes & ObjCPropertyAttribute::kind_weak) { in CheckObjCPropertyAttributes()
2767 if ((Attributes & ObjCPropertyAttribute::kind_atomic) && in CheckObjCPropertyAttributes()
2768 (Attributes & ObjCPropertyAttribute::kind_nonatomic)) { in CheckObjCPropertyAttributes()
2771 Attributes &= ~ObjCPropertyAttribute::kind_atomic; in CheckObjCPropertyAttributes()
2776 if (!getOwnershipRule(Attributes) && PropertyTy->isObjCRetainableType()) { in CheckObjCPropertyAttributes()
2777 if (Attributes & ObjCPropertyAttribute::kind_readonly) { in CheckObjCPropertyAttributes()
2809 if (!(Attributes & ObjCPropertyAttribute::kind_copy) && in CheckObjCPropertyAttributes()
2810 !(Attributes & ObjCPropertyAttribute::kind_readonly) && in CheckObjCPropertyAttributes()
2814 else if ((Attributes & ObjCPropertyAttribute::kind_retain) && in CheckObjCPropertyAttributes()
2815 !(Attributes & ObjCPropertyAttribute::kind_readonly) && in CheckObjCPropertyAttributes()
2816 !(Attributes & ObjCPropertyAttribute::kind_strong) && in CheckObjCPropertyAttributes()
2820 if ((Attributes & ObjCPropertyAttribute::kind_readonly) && in CheckObjCPropertyAttributes()
2821 (Attributes & ObjCPropertyAttribute::kind_setter)) in CheckObjCPropertyAttributes()