Lines Matching defs:Attributes
178 unsigned Attributes = ODS.getPropertyAttributes();
179 FD.D.setObjCWeakProperty((Attributes & ObjCPropertyAttribute::kind_weak) !=
183 if (!getOwnershipRule(Attributes)) {
184 Attributes |= deducePropertyOwnershipFromType(SemaRef, T);
186 bool isReadWrite = ((Attributes & ObjCPropertyAttribute::kind_readwrite) ||
188 !(Attributes & ObjCPropertyAttribute::kind_readonly));
199 isReadWrite, Attributes,
210 ODS.getSetterNameLoc(), isReadWrite, Attributes,
218 CheckObjCPropertyAttributes(Res, AtLoc, Attributes,
270 makePropertyAttributesAsWritten(unsigned Attributes) {
272 if (Attributes & ObjCPropertyAttribute::kind_readonly)
274 if (Attributes & ObjCPropertyAttribute::kind_readwrite)
276 if (Attributes & ObjCPropertyAttribute::kind_getter)
278 if (Attributes & ObjCPropertyAttribute::kind_setter)
280 if (Attributes & ObjCPropertyAttribute::kind_assign)
282 if (Attributes & ObjCPropertyAttribute::kind_retain)
284 if (Attributes & ObjCPropertyAttribute::kind_strong)
286 if (Attributes & ObjCPropertyAttribute::kind_weak)
288 if (Attributes & ObjCPropertyAttribute::kind_copy)
290 if (Attributes & ObjCPropertyAttribute::kind_unsafe_unretained)
292 if (Attributes & ObjCPropertyAttribute::kind_nonatomic)
294 if (Attributes & ObjCPropertyAttribute::kind_atomic)
296 if (Attributes & ObjCPropertyAttribute::kind_class)
298 if (Attributes & ObjCPropertyAttribute::kind_direct)
406 unsigned &Attributes, const unsigned AttributesAsWritten, QualType T,
423 (Attributes & ObjCPropertyAttribute::kind_class);
448 (Attributes & ObjCPropertyAttribute::kind_readwrite) &&
470 Attributes |= ObjCPropertyAttribute::kind_getter;
476 unsigned NewOwnership = getOwnershipRule(Attributes);
485 Attributes = (Attributes & ~OwnershipMask) | ExistingOwnership;
489 if ((Attributes & ObjCPropertyAttribute::kind_weak) &&
505 Attributes, AttributesAsWritten,
553 const unsigned Attributes, const unsigned AttributesAsWritten, QualType T,
562 if (Attributes & (ObjCPropertyAttribute::kind_assign |
565 } else if (getOwnershipRule(Attributes) || !isReadWrite) {
575 !(Attributes & ObjCPropertyAttribute::kind_assign)) {
605 (Attributes & ObjCPropertyAttribute::kind_class);
633 if (Attributes & ObjCPropertyAttribute::kind_readonly)
636 if (Attributes & ObjCPropertyAttribute::kind_getter)
639 if (Attributes & ObjCPropertyAttribute::kind_setter)
645 if (Attributes & ObjCPropertyAttribute::kind_retain)
648 if (Attributes & ObjCPropertyAttribute::kind_strong)
651 if (Attributes & ObjCPropertyAttribute::kind_weak)
654 if (Attributes & ObjCPropertyAttribute::kind_copy)
657 if (Attributes & ObjCPropertyAttribute::kind_unsafe_unretained)
664 if (Attributes & ObjCPropertyAttribute::kind_nonatomic)
670 if (Attributes & ObjCPropertyAttribute::kind_unsafe_unretained)
680 if (Attributes & ObjCPropertyAttribute::kind_nullability)
683 if (Attributes & ObjCPropertyAttribute::kind_null_resettable)
686 if (Attributes & ObjCPropertyAttribute::kind_class)
689 if ((Attributes & ObjCPropertyAttribute::kind_direct) ||
2160 unsigned Attributes = Property->getPropertyAttributes();
2190 if ((Attributes & ObjCPropertyAttribute::kind_nonatomic) ||
2191 !(Attributes & ObjCPropertyAttribute::kind_readwrite))
2618 unsigned &Attributes,
2624 if ((Attributes & ObjCPropertyAttribute::kind_readonly) &&
2625 (Attributes & ObjCPropertyAttribute::kind_readwrite))
2633 if ((Attributes &
2640 << (Attributes & ObjCPropertyAttribute::kind_weak
2642 : Attributes & ObjCPropertyAttribute::kind_copy
2645 Attributes &=
2653 if ((Attributes & ObjCPropertyAttribute::kind_assign) &&
2654 !(Attributes & ObjCPropertyAttribute::kind_unsafe_unretained) &&
2661 if (Attributes & ObjCPropertyAttribute::kind_assign) {
2662 if (Attributes & ObjCPropertyAttribute::kind_copy) {
2665 Attributes &= ~ObjCPropertyAttribute::kind_copy;
2667 if (Attributes & ObjCPropertyAttribute::kind_retain) {
2670 Attributes &= ~ObjCPropertyAttribute::kind_retain;
2672 if (Attributes & ObjCPropertyAttribute::kind_strong) {
2675 Attributes &= ~ObjCPropertyAttribute::kind_strong;
2678 (Attributes & ObjCPropertyAttribute::kind_weak)) {
2681 Attributes &= ~ObjCPropertyAttribute::kind_weak;
2685 } else if (Attributes & ObjCPropertyAttribute::kind_unsafe_unretained) {
2686 if (Attributes & ObjCPropertyAttribute::kind_copy) {
2689 Attributes &= ~ObjCPropertyAttribute::kind_copy;
2691 if (Attributes & ObjCPropertyAttribute::kind_retain) {
2694 Attributes &= ~ObjCPropertyAttribute::kind_retain;
2696 if (Attributes & ObjCPropertyAttribute::kind_strong) {
2699 Attributes &= ~ObjCPropertyAttribute::kind_strong;
2702 (Attributes & ObjCPropertyAttribute::kind_weak)) {
2705 Attributes &= ~ObjCPropertyAttribute::kind_weak;
2707 } else if (Attributes & ObjCPropertyAttribute::kind_copy) {
2708 if (Attributes & ObjCPropertyAttribute::kind_retain) {
2711 Attributes &= ~ObjCPropertyAttribute::kind_retain;
2713 if (Attributes & ObjCPropertyAttribute::kind_strong) {
2716 Attributes &= ~ObjCPropertyAttribute::kind_strong;
2718 if (Attributes & ObjCPropertyAttribute::kind_weak) {
2721 Attributes &= ~ObjCPropertyAttribute::kind_weak;
2723 } else if ((Attributes & ObjCPropertyAttribute::kind_retain) &&
2724 (Attributes & ObjCPropertyAttribute::kind_weak)) {
2727 Attributes &= ~ObjCPropertyAttribute::kind_retain;
2728 } else if ((Attributes & ObjCPropertyAttribute::kind_strong) &&
2729 (Attributes & ObjCPropertyAttribute::kind_weak)) {
2732 Attributes &= ~ObjCPropertyAttribute::kind_weak;
2735 if (Attributes & ObjCPropertyAttribute::kind_weak) {
2744 if ((Attributes & ObjCPropertyAttribute::kind_atomic) &&
2745 (Attributes & ObjCPropertyAttribute::kind_nonatomic)) {
2748 Attributes &= ~ObjCPropertyAttribute::kind_atomic;
2753 if (!getOwnershipRule(Attributes) && PropertyTy->isObjCRetainableType()) {
2754 if (Attributes & ObjCPropertyAttribute::kind_readonly) {
2784 if (!(Attributes & ObjCPropertyAttribute::kind_copy) &&
2785 !(Attributes & ObjCPropertyAttribute::kind_readonly) &&
2789 else if ((Attributes & ObjCPropertyAttribute::kind_retain) &&
2790 !(Attributes & ObjCPropertyAttribute::kind_readonly) &&
2791 !(Attributes & ObjCPropertyAttribute::kind_strong) &&
2795 if ((Attributes & ObjCPropertyAttribute::kind_readonly) &&
2796 (Attributes & ObjCPropertyAttribute::kind_setter))