Lines Matching refs:Attributes

186   unsigned Attributes = ODS.getPropertyAttributes();  in ActOnProperty()  local
187 FD.D.setObjCWeakProperty((Attributes & ObjCDeclSpec::DQ_PR_weak) != 0); in ActOnProperty()
190 if (!getOwnershipRule(Attributes)) { in ActOnProperty()
191 Attributes |= deducePropertyOwnershipFromType(*this, T); in ActOnProperty()
193 bool isReadWrite = ((Attributes & ObjCDeclSpec::DQ_PR_readwrite) || in ActOnProperty()
195 !(Attributes & ObjCDeclSpec::DQ_PR_readonly)); in ActOnProperty()
205 Attributes, in ActOnProperty()
216 Attributes, ODS.getPropertyAttributes(), in ActOnProperty()
223 CheckObjCPropertyAttributes(Res, AtLoc, Attributes, in ActOnProperty()
280 makePropertyAttributesAsWritten(unsigned Attributes) { in makePropertyAttributesAsWritten() argument
282 if (Attributes & ObjCDeclSpec::DQ_PR_readonly) in makePropertyAttributesAsWritten()
284 if (Attributes & ObjCDeclSpec::DQ_PR_readwrite) in makePropertyAttributesAsWritten()
286 if (Attributes & ObjCDeclSpec::DQ_PR_getter) in makePropertyAttributesAsWritten()
288 if (Attributes & ObjCDeclSpec::DQ_PR_setter) in makePropertyAttributesAsWritten()
290 if (Attributes & ObjCDeclSpec::DQ_PR_assign) in makePropertyAttributesAsWritten()
292 if (Attributes & ObjCDeclSpec::DQ_PR_retain) in makePropertyAttributesAsWritten()
294 if (Attributes & ObjCDeclSpec::DQ_PR_strong) in makePropertyAttributesAsWritten()
296 if (Attributes & ObjCDeclSpec::DQ_PR_weak) in makePropertyAttributesAsWritten()
298 if (Attributes & ObjCDeclSpec::DQ_PR_copy) in makePropertyAttributesAsWritten()
300 if (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained) in makePropertyAttributesAsWritten()
302 if (Attributes & ObjCDeclSpec::DQ_PR_nonatomic) in makePropertyAttributesAsWritten()
304 if (Attributes & ObjCDeclSpec::DQ_PR_atomic) in makePropertyAttributesAsWritten()
416 unsigned &Attributes, in HandlePropertyInClassExtension() argument
457 (Attributes & ObjCDeclSpec::DQ_PR_readwrite) && in HandlePropertyInClassExtension()
479 Attributes |= ObjCDeclSpec::DQ_PR_getter; in HandlePropertyInClassExtension()
485 unsigned NewOwnership = getOwnershipRule(Attributes); in HandlePropertyInClassExtension()
494 Attributes = (Attributes & ~OwnershipMask) | ExistingOwnership; in HandlePropertyInClassExtension()
498 if ((Attributes & ObjCPropertyDecl::OBJC_PR_weak) && in HandlePropertyInClassExtension()
513 Attributes, AttributesAsWritten, in HandlePropertyInClassExtension()
563 const unsigned Attributes, in CreatePropertyDecl() argument
574 if (Attributes & (ObjCDeclSpec::DQ_PR_assign | in CreatePropertyDecl()
577 } else if (getOwnershipRule(Attributes) || !isReadWrite) { in CreatePropertyDecl()
587 isAssign && !(Attributes & ObjCDeclSpec::DQ_PR_assign)) { in CreatePropertyDecl()
641 if (Attributes & ObjCDeclSpec::DQ_PR_readonly) in CreatePropertyDecl()
644 if (Attributes & ObjCDeclSpec::DQ_PR_getter) in CreatePropertyDecl()
647 if (Attributes & ObjCDeclSpec::DQ_PR_setter) in CreatePropertyDecl()
653 if (Attributes & ObjCDeclSpec::DQ_PR_retain) in CreatePropertyDecl()
656 if (Attributes & ObjCDeclSpec::DQ_PR_strong) in CreatePropertyDecl()
659 if (Attributes & ObjCDeclSpec::DQ_PR_weak) in CreatePropertyDecl()
662 if (Attributes & ObjCDeclSpec::DQ_PR_copy) in CreatePropertyDecl()
665 if (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained) in CreatePropertyDecl()
672 if (Attributes & ObjCDeclSpec::DQ_PR_nonatomic) in CreatePropertyDecl()
678 if (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained) in CreatePropertyDecl()
688 if (Attributes & ObjCDeclSpec::DQ_PR_nullability) in CreatePropertyDecl()
691 if (Attributes & ObjCDeclSpec::DQ_PR_null_resettable) in CreatePropertyDecl()
1909 unsigned Attributes = Property->getPropertyAttributes(); in AtomicPropertySetterGetterRules() local
1932 if ((Attributes & ObjCPropertyDecl::OBJC_PR_nonatomic) || in AtomicPropertySetterGetterRules()
1933 !(Attributes & ObjCPropertyDecl::OBJC_PR_readwrite)) in AtomicPropertySetterGetterRules()
2280 unsigned &Attributes, in CheckObjCPropertyAttributes() argument
2286 if ((Attributes & ObjCDeclSpec::DQ_PR_readonly) && in CheckObjCPropertyAttributes()
2287 (Attributes & ObjCDeclSpec::DQ_PR_readwrite)) in CheckObjCPropertyAttributes()
2295 if ((Attributes & (ObjCDeclSpec::DQ_PR_weak | ObjCDeclSpec::DQ_PR_copy | in CheckObjCPropertyAttributes()
2300 << (Attributes & ObjCDeclSpec::DQ_PR_weak ? "weak" : in CheckObjCPropertyAttributes()
2301 Attributes & ObjCDeclSpec::DQ_PR_copy ? "copy" : "retain (or strong)"); in CheckObjCPropertyAttributes()
2302 Attributes &= ~(ObjCDeclSpec::DQ_PR_weak | ObjCDeclSpec::DQ_PR_copy | in CheckObjCPropertyAttributes()
2308 if (Attributes & ObjCDeclSpec::DQ_PR_assign) { in CheckObjCPropertyAttributes()
2309 if (Attributes & ObjCDeclSpec::DQ_PR_copy) { in CheckObjCPropertyAttributes()
2312 Attributes &= ~ObjCDeclSpec::DQ_PR_copy; in CheckObjCPropertyAttributes()
2314 if (Attributes & ObjCDeclSpec::DQ_PR_retain) { in CheckObjCPropertyAttributes()
2317 Attributes &= ~ObjCDeclSpec::DQ_PR_retain; in CheckObjCPropertyAttributes()
2319 if (Attributes & ObjCDeclSpec::DQ_PR_strong) { in CheckObjCPropertyAttributes()
2322 Attributes &= ~ObjCDeclSpec::DQ_PR_strong; in CheckObjCPropertyAttributes()
2325 (Attributes & ObjCDeclSpec::DQ_PR_weak)) { in CheckObjCPropertyAttributes()
2328 Attributes &= ~ObjCDeclSpec::DQ_PR_weak; in CheckObjCPropertyAttributes()
2332 } else if (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained) { in CheckObjCPropertyAttributes()
2333 if (Attributes & ObjCDeclSpec::DQ_PR_copy) { in CheckObjCPropertyAttributes()
2336 Attributes &= ~ObjCDeclSpec::DQ_PR_copy; in CheckObjCPropertyAttributes()
2338 if (Attributes & ObjCDeclSpec::DQ_PR_retain) { in CheckObjCPropertyAttributes()
2341 Attributes &= ~ObjCDeclSpec::DQ_PR_retain; in CheckObjCPropertyAttributes()
2343 if (Attributes & ObjCDeclSpec::DQ_PR_strong) { in CheckObjCPropertyAttributes()
2346 Attributes &= ~ObjCDeclSpec::DQ_PR_strong; in CheckObjCPropertyAttributes()
2349 (Attributes & ObjCDeclSpec::DQ_PR_weak)) { in CheckObjCPropertyAttributes()
2352 Attributes &= ~ObjCDeclSpec::DQ_PR_weak; in CheckObjCPropertyAttributes()
2354 } else if (Attributes & ObjCDeclSpec::DQ_PR_copy) { in CheckObjCPropertyAttributes()
2355 if (Attributes & ObjCDeclSpec::DQ_PR_retain) { in CheckObjCPropertyAttributes()
2358 Attributes &= ~ObjCDeclSpec::DQ_PR_retain; in CheckObjCPropertyAttributes()
2360 if (Attributes & ObjCDeclSpec::DQ_PR_strong) { in CheckObjCPropertyAttributes()
2363 Attributes &= ~ObjCDeclSpec::DQ_PR_strong; in CheckObjCPropertyAttributes()
2365 if (Attributes & ObjCDeclSpec::DQ_PR_weak) { in CheckObjCPropertyAttributes()
2368 Attributes &= ~ObjCDeclSpec::DQ_PR_weak; in CheckObjCPropertyAttributes()
2371 else if ((Attributes & ObjCDeclSpec::DQ_PR_retain) && in CheckObjCPropertyAttributes()
2372 (Attributes & ObjCDeclSpec::DQ_PR_weak)) { in CheckObjCPropertyAttributes()
2375 Attributes &= ~ObjCDeclSpec::DQ_PR_retain; in CheckObjCPropertyAttributes()
2377 else if ((Attributes & ObjCDeclSpec::DQ_PR_strong) && in CheckObjCPropertyAttributes()
2378 (Attributes & ObjCDeclSpec::DQ_PR_weak)) { in CheckObjCPropertyAttributes()
2381 Attributes &= ~ObjCDeclSpec::DQ_PR_weak; in CheckObjCPropertyAttributes()
2384 if (Attributes & ObjCDeclSpec::DQ_PR_weak) { in CheckObjCPropertyAttributes()
2393 if ((Attributes & ObjCDeclSpec::DQ_PR_atomic) && in CheckObjCPropertyAttributes()
2394 (Attributes & ObjCDeclSpec::DQ_PR_nonatomic)) { in CheckObjCPropertyAttributes()
2397 Attributes &= ~ObjCDeclSpec::DQ_PR_atomic; in CheckObjCPropertyAttributes()
2402 if (!getOwnershipRule(Attributes) && PropertyTy->isObjCRetainableType()) { in CheckObjCPropertyAttributes()
2403 if (Attributes & ObjCDeclSpec::DQ_PR_readonly) { in CheckObjCPropertyAttributes()
2436 if (!(Attributes & ObjCDeclSpec::DQ_PR_copy) in CheckObjCPropertyAttributes()
2437 &&!(Attributes & ObjCDeclSpec::DQ_PR_readonly) in CheckObjCPropertyAttributes()
2441 else if ((Attributes & ObjCDeclSpec::DQ_PR_retain) && in CheckObjCPropertyAttributes()
2442 !(Attributes & ObjCDeclSpec::DQ_PR_readonly) && in CheckObjCPropertyAttributes()
2443 !(Attributes & ObjCDeclSpec::DQ_PR_strong) && in CheckObjCPropertyAttributes()
2447 if ((Attributes & ObjCDeclSpec::DQ_PR_readonly) && in CheckObjCPropertyAttributes()
2448 (Attributes & ObjCDeclSpec::DQ_PR_setter)) in CheckObjCPropertyAttributes()