Lines Matching refs:Attributes

151   unsigned Attributes = ODS.getPropertyAttributes();
154 Attributes |= deduceWeakPropertyFromType(*this, T);
156 bool isReadWrite = ((Attributes & ObjCDeclSpec::DQ_PR_readwrite) ||
158 !(Attributes & ObjCDeclSpec::DQ_PR_readonly));
161 bool isAssign = ((Attributes & ObjCDeclSpec::DQ_PR_assign) ||
163 !(Attributes & ObjCDeclSpec::DQ_PR_retain) &&
164 !(Attributes & ObjCDeclSpec::DQ_PR_strong) &&
165 !(Attributes & ObjCDeclSpec::DQ_PR_copy) &&
166 !(Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained) &&
167 !(Attributes & ObjCDeclSpec::DQ_PR_weak)));
177 Attributes,
189 Attributes, ODS.getPropertyAttributes(),
196 CheckObjCPropertyAttributes(Res, AtLoc, Attributes,
254 makePropertyAttributesAsWritten(unsigned Attributes) {
256 if (Attributes & ObjCDeclSpec::DQ_PR_readonly)
258 if (Attributes & ObjCDeclSpec::DQ_PR_readwrite)
260 if (Attributes & ObjCDeclSpec::DQ_PR_getter)
262 if (Attributes & ObjCDeclSpec::DQ_PR_setter)
264 if (Attributes & ObjCDeclSpec::DQ_PR_assign)
266 if (Attributes & ObjCDeclSpec::DQ_PR_retain)
268 if (Attributes & ObjCDeclSpec::DQ_PR_strong)
270 if (Attributes & ObjCDeclSpec::DQ_PR_weak)
272 if (Attributes & ObjCDeclSpec::DQ_PR_copy)
274 if (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained)
276 if (Attributes & ObjCDeclSpec::DQ_PR_nonatomic)
278 if (Attributes & ObjCDeclSpec::DQ_PR_atomic)
347 const unsigned Attributes,
382 if (Attributes & ObjCDeclSpec::DQ_PR_readonly)
384 if (Attributes & ObjCDeclSpec::DQ_PR_readwrite)
386 if (Attributes & ObjCDeclSpec::DQ_PR_nonatomic)
388 if (Attributes & ObjCDeclSpec::DQ_PR_atomic)
414 Attributes,AttributesAsWritten, T, MethodImplKind, DC);
455 unsigned ClassExtensionMemoryModel = getOwnershipRule(Attributes);
470 (Attributes & ObjCDeclSpec::DQ_PR_weak) &&
503 if (Attributes & ObjCDeclSpec::DQ_PR_retain)
505 if (Attributes & ObjCDeclSpec::DQ_PR_strong)
507 if (Attributes & ObjCDeclSpec::DQ_PR_copy)
516 (Attributes & ObjCDeclSpec::DQ_PR_readwrite) &&
544 const unsigned Attributes,
555 isAssign && !(Attributes & ObjCDeclSpec::DQ_PR_assign))
607 if (Attributes & ObjCDeclSpec::DQ_PR_readonly)
610 if (Attributes & ObjCDeclSpec::DQ_PR_getter)
613 if (Attributes & ObjCDeclSpec::DQ_PR_setter)
619 if (Attributes & ObjCDeclSpec::DQ_PR_retain)
622 if (Attributes & ObjCDeclSpec::DQ_PR_strong)
625 if (Attributes & ObjCDeclSpec::DQ_PR_weak)
628 if (Attributes & ObjCDeclSpec::DQ_PR_copy)
631 if (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained)
638 if (Attributes & ObjCDeclSpec::DQ_PR_nonatomic)
644 if (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained)
1728 unsigned Attributes = Property->getPropertyAttributes();
1751 if ((Attributes & ObjCPropertyDecl::OBJC_PR_nonatomic) ||
1752 !(Attributes & ObjCPropertyDecl::OBJC_PR_readwrite))
2015 unsigned &Attributes,
2021 if ((Attributes & ObjCDeclSpec::DQ_PR_readonly) &&
2022 (Attributes & ObjCDeclSpec::DQ_PR_readwrite))
2028 unsigned PropertyOwnership = getOwnershipRule(Attributes);
2030 if (Attributes & ObjCDeclSpec::DQ_PR_readonly) {
2041 << "readonly" << NameOfOwnershipAttribute(Attributes);
2047 if ((Attributes & (ObjCDeclSpec::DQ_PR_weak | ObjCDeclSpec::DQ_PR_copy |
2052 << (Attributes & ObjCDeclSpec::DQ_PR_weak ? "weak" :
2053 Attributes & ObjCDeclSpec::DQ_PR_copy ? "copy" : "retain (or strong)");
2054 Attributes &= ~(ObjCDeclSpec::DQ_PR_weak | ObjCDeclSpec::DQ_PR_copy |
2060 if (Attributes & ObjCDeclSpec::DQ_PR_assign) {
2061 if (Attributes & ObjCDeclSpec::DQ_PR_copy) {
2064 Attributes &= ~ObjCDeclSpec::DQ_PR_copy;
2066 if (Attributes & ObjCDeclSpec::DQ_PR_retain) {
2069 Attributes &= ~ObjCDeclSpec::DQ_PR_retain;
2071 if (Attributes & ObjCDeclSpec::DQ_PR_strong) {
2074 Attributes &= ~ObjCDeclSpec::DQ_PR_strong;
2077 (Attributes & ObjCDeclSpec::DQ_PR_weak)) {
2080 Attributes &= ~ObjCDeclSpec::DQ_PR_weak;
2084 } else if (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained) {
2085 if (Attributes & ObjCDeclSpec::DQ_PR_copy) {
2088 Attributes &= ~ObjCDeclSpec::DQ_PR_copy;
2090 if (Attributes & ObjCDeclSpec::DQ_PR_retain) {
2093 Attributes &= ~ObjCDeclSpec::DQ_PR_retain;
2095 if (Attributes & ObjCDeclSpec::DQ_PR_strong) {
2098 Attributes &= ~ObjCDeclSpec::DQ_PR_strong;
2101 (Attributes & ObjCDeclSpec::DQ_PR_weak)) {
2104 Attributes &= ~ObjCDeclSpec::DQ_PR_weak;
2106 } else if (Attributes & ObjCDeclSpec::DQ_PR_copy) {
2107 if (Attributes & ObjCDeclSpec::DQ_PR_retain) {
2110 Attributes &= ~ObjCDeclSpec::DQ_PR_retain;
2112 if (Attributes & ObjCDeclSpec::DQ_PR_strong) {
2115 Attributes &= ~ObjCDeclSpec::DQ_PR_strong;
2117 if (Attributes & ObjCDeclSpec::DQ_PR_weak) {
2120 Attributes &= ~ObjCDeclSpec::DQ_PR_weak;
2123 else if ((Attributes & ObjCDeclSpec::DQ_PR_retain) &&
2124 (Attributes & ObjCDeclSpec::DQ_PR_weak)) {
2127 Attributes &= ~ObjCDeclSpec::DQ_PR_retain;
2129 else if ((Attributes & ObjCDeclSpec::DQ_PR_strong) &&
2130 (Attributes & ObjCDeclSpec::DQ_PR_weak)) {
2133 Attributes &= ~ObjCDeclSpec::DQ_PR_weak;
2136 if ((Attributes & ObjCDeclSpec::DQ_PR_atomic) &&
2137 (Attributes & ObjCDeclSpec::DQ_PR_nonatomic)) {
2140 Attributes &= ~ObjCDeclSpec::DQ_PR_atomic;
2145 if (!(Attributes & (ObjCDeclSpec::DQ_PR_assign | ObjCDeclSpec::DQ_PR_copy |
2154 else if (!(Attributes & ObjCDeclSpec::DQ_PR_readonly)) {
2181 if (!(Attributes & ObjCDeclSpec::DQ_PR_copy)
2182 &&!(Attributes & ObjCDeclSpec::DQ_PR_readonly)
2186 else if ((Attributes & ObjCDeclSpec::DQ_PR_retain) &&
2187 !(Attributes & ObjCDeclSpec::DQ_PR_readonly) &&
2188 !(Attributes & ObjCDeclSpec::DQ_PR_strong) &&
2192 if ((Attributes & ObjCDeclSpec::DQ_PR_readonly) &&
2193 (Attributes & ObjCDeclSpec::DQ_PR_setter))