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()
2181 unsigned Attributes = Property->getPropertyAttributes(); in AtomicPropertySetterGetterRules() local
2211 if ((Attributes & ObjCPropertyAttribute::kind_nonatomic) || in AtomicPropertySetterGetterRules()
2212 !(Attributes & ObjCPropertyAttribute::kind_readwrite)) in AtomicPropertySetterGetterRules()
2638 unsigned &Attributes, in CheckObjCPropertyAttributes() argument
2644 if ((Attributes & ObjCPropertyAttribute::kind_readonly) && in CheckObjCPropertyAttributes()
2645 (Attributes & ObjCPropertyAttribute::kind_readwrite)) in CheckObjCPropertyAttributes()
2653 if ((Attributes & in CheckObjCPropertyAttributes()
2660 << (Attributes & ObjCPropertyAttribute::kind_weak in CheckObjCPropertyAttributes()
2662 : Attributes & ObjCPropertyAttribute::kind_copy in CheckObjCPropertyAttributes()
2665 Attributes &= in CheckObjCPropertyAttributes()
2673 if ((Attributes & ObjCPropertyAttribute::kind_assign) && in CheckObjCPropertyAttributes()
2674 !(Attributes & ObjCPropertyAttribute::kind_unsafe_unretained) && in CheckObjCPropertyAttributes()
2681 if (Attributes & ObjCPropertyAttribute::kind_assign) { in CheckObjCPropertyAttributes()
2682 if (Attributes & ObjCPropertyAttribute::kind_copy) { in CheckObjCPropertyAttributes()
2685 Attributes &= ~ObjCPropertyAttribute::kind_copy; in CheckObjCPropertyAttributes()
2687 if (Attributes & ObjCPropertyAttribute::kind_retain) { in CheckObjCPropertyAttributes()
2690 Attributes &= ~ObjCPropertyAttribute::kind_retain; in CheckObjCPropertyAttributes()
2692 if (Attributes & ObjCPropertyAttribute::kind_strong) { in CheckObjCPropertyAttributes()
2695 Attributes &= ~ObjCPropertyAttribute::kind_strong; in CheckObjCPropertyAttributes()
2698 (Attributes & ObjCPropertyAttribute::kind_weak)) { in CheckObjCPropertyAttributes()
2701 Attributes &= ~ObjCPropertyAttribute::kind_weak; in CheckObjCPropertyAttributes()
2705 } else if (Attributes & ObjCPropertyAttribute::kind_unsafe_unretained) { in CheckObjCPropertyAttributes()
2706 if (Attributes & ObjCPropertyAttribute::kind_copy) { in CheckObjCPropertyAttributes()
2709 Attributes &= ~ObjCPropertyAttribute::kind_copy; in CheckObjCPropertyAttributes()
2711 if (Attributes & ObjCPropertyAttribute::kind_retain) { in CheckObjCPropertyAttributes()
2714 Attributes &= ~ObjCPropertyAttribute::kind_retain; in CheckObjCPropertyAttributes()
2716 if (Attributes & ObjCPropertyAttribute::kind_strong) { in CheckObjCPropertyAttributes()
2719 Attributes &= ~ObjCPropertyAttribute::kind_strong; in CheckObjCPropertyAttributes()
2722 (Attributes & ObjCPropertyAttribute::kind_weak)) { in CheckObjCPropertyAttributes()
2725 Attributes &= ~ObjCPropertyAttribute::kind_weak; in CheckObjCPropertyAttributes()
2727 } else if (Attributes & ObjCPropertyAttribute::kind_copy) { in CheckObjCPropertyAttributes()
2728 if (Attributes & ObjCPropertyAttribute::kind_retain) { in CheckObjCPropertyAttributes()
2731 Attributes &= ~ObjCPropertyAttribute::kind_retain; in CheckObjCPropertyAttributes()
2733 if (Attributes & ObjCPropertyAttribute::kind_strong) { in CheckObjCPropertyAttributes()
2736 Attributes &= ~ObjCPropertyAttribute::kind_strong; in CheckObjCPropertyAttributes()
2738 if (Attributes & ObjCPropertyAttribute::kind_weak) { in CheckObjCPropertyAttributes()
2741 Attributes &= ~ObjCPropertyAttribute::kind_weak; in CheckObjCPropertyAttributes()
2743 } else if ((Attributes & ObjCPropertyAttribute::kind_retain) && in CheckObjCPropertyAttributes()
2744 (Attributes & ObjCPropertyAttribute::kind_weak)) { in CheckObjCPropertyAttributes()
2747 Attributes &= ~ObjCPropertyAttribute::kind_retain; in CheckObjCPropertyAttributes()
2748 } else if ((Attributes & ObjCPropertyAttribute::kind_strong) && in CheckObjCPropertyAttributes()
2749 (Attributes & ObjCPropertyAttribute::kind_weak)) { in CheckObjCPropertyAttributes()
2752 Attributes &= ~ObjCPropertyAttribute::kind_weak; in CheckObjCPropertyAttributes()
2755 if (Attributes & ObjCPropertyAttribute::kind_weak) { in CheckObjCPropertyAttributes()
2764 if ((Attributes & ObjCPropertyAttribute::kind_atomic) && in CheckObjCPropertyAttributes()
2765 (Attributes & ObjCPropertyAttribute::kind_nonatomic)) { in CheckObjCPropertyAttributes()
2768 Attributes &= ~ObjCPropertyAttribute::kind_atomic; in CheckObjCPropertyAttributes()
2773 if (!getOwnershipRule(Attributes) && PropertyTy->isObjCRetainableType()) { in CheckObjCPropertyAttributes()
2774 if (Attributes & ObjCPropertyAttribute::kind_readonly) { in CheckObjCPropertyAttributes()
2806 if (!(Attributes & ObjCPropertyAttribute::kind_copy) && in CheckObjCPropertyAttributes()
2807 !(Attributes & ObjCPropertyAttribute::kind_readonly) && in CheckObjCPropertyAttributes()
2811 else if ((Attributes & ObjCPropertyAttribute::kind_retain) && in CheckObjCPropertyAttributes()
2812 !(Attributes & ObjCPropertyAttribute::kind_readonly) && in CheckObjCPropertyAttributes()
2813 !(Attributes & ObjCPropertyAttribute::kind_strong) && in CheckObjCPropertyAttributes()
2817 if ((Attributes & ObjCPropertyAttribute::kind_readonly) && in CheckObjCPropertyAttributes()
2818 (Attributes & ObjCPropertyAttribute::kind_setter)) in CheckObjCPropertyAttributes()