Lines Matching refs:ObjCDeclSpec

134     if (T.isObjCGCWeak()) return ObjCDeclSpec::DQ_PR_weak;  in deducePropertyOwnershipFromType()
141 return ObjCDeclSpec::DQ_PR_weak; in deducePropertyOwnershipFromType()
143 return ObjCDeclSpec::DQ_PR_strong; in deducePropertyOwnershipFromType()
145 return ObjCDeclSpec::DQ_PR_unsafe_unretained; in deducePropertyOwnershipFromType()
181 ObjCDeclSpec &ODS, in ActOnProperty()
187 FD.D.setObjCWeakProperty((Attributes & ObjCDeclSpec::DQ_PR_weak) != 0); in ActOnProperty()
193 bool isReadWrite = ((Attributes & ObjCDeclSpec::DQ_PR_readwrite) || in ActOnProperty()
195 !(Attributes & ObjCDeclSpec::DQ_PR_readonly)); in ActOnProperty()
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()
440 bool isClassProperty = (AttributesAsWritten & ObjCDeclSpec::DQ_PR_class) || in HandlePropertyInClassExtension()
441 (Attributes & ObjCDeclSpec::DQ_PR_class); in HandlePropertyInClassExtension()
466 (Attributes & ObjCDeclSpec::DQ_PR_readwrite) && in HandlePropertyInClassExtension()
480 if (AttributesAsWritten & ObjCDeclSpec::DQ_PR_getter) { in HandlePropertyInClassExtension()
488 Attributes |= ObjCDeclSpec::DQ_PR_getter; in HandlePropertyInClassExtension()
586 if (Attributes & (ObjCDeclSpec::DQ_PR_assign | in CreatePropertyDecl()
587 ObjCDeclSpec::DQ_PR_unsafe_unretained)) { in CreatePropertyDecl()
599 isAssign && !(Attributes & ObjCDeclSpec::DQ_PR_assign)) { in CreatePropertyDecl()
627 bool isClassProperty = (AttributesAsWritten & ObjCDeclSpec::DQ_PR_class) || 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()
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()
2549 ObjCDeclSpec::DQ_PR_retain | ObjCDeclSpec::DQ_PR_strong)) && 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()
2556 ObjCDeclSpec::DQ_PR_retain | ObjCDeclSpec::DQ_PR_strong); 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()
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()