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()
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()
306 if (Attributes & ObjCDeclSpec::DQ_PR_class) in makePropertyAttributesAsWritten()
435 bool isClassProperty = (AttributesAsWritten & ObjCDeclSpec::DQ_PR_class) || in HandlePropertyInClassExtension()
436 (Attributes & ObjCDeclSpec::DQ_PR_class); in HandlePropertyInClassExtension()
461 (Attributes & ObjCDeclSpec::DQ_PR_readwrite) && in HandlePropertyInClassExtension()
475 if (AttributesAsWritten & ObjCDeclSpec::DQ_PR_getter) { in HandlePropertyInClassExtension()
483 Attributes |= ObjCDeclSpec::DQ_PR_getter; in HandlePropertyInClassExtension()
578 if (Attributes & (ObjCDeclSpec::DQ_PR_assign | in CreatePropertyDecl()
579 ObjCDeclSpec::DQ_PR_unsafe_unretained)) { in CreatePropertyDecl()
591 isAssign && !(Attributes & ObjCDeclSpec::DQ_PR_assign)) { in CreatePropertyDecl()
619 bool isClassProperty = (AttributesAsWritten & ObjCDeclSpec::DQ_PR_class) || in CreatePropertyDecl()
620 (Attributes & ObjCDeclSpec::DQ_PR_class); in CreatePropertyDecl()
648 if (Attributes & ObjCDeclSpec::DQ_PR_readonly) in CreatePropertyDecl()
651 if (Attributes & ObjCDeclSpec::DQ_PR_getter) in CreatePropertyDecl()
654 if (Attributes & ObjCDeclSpec::DQ_PR_setter) in CreatePropertyDecl()
660 if (Attributes & ObjCDeclSpec::DQ_PR_retain) in CreatePropertyDecl()
663 if (Attributes & ObjCDeclSpec::DQ_PR_strong) in CreatePropertyDecl()
666 if (Attributes & ObjCDeclSpec::DQ_PR_weak) in CreatePropertyDecl()
669 if (Attributes & ObjCDeclSpec::DQ_PR_copy) in CreatePropertyDecl()
672 if (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained) in CreatePropertyDecl()
679 if (Attributes & ObjCDeclSpec::DQ_PR_nonatomic) in CreatePropertyDecl()
685 if (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained) in CreatePropertyDecl()
695 if (Attributes & ObjCDeclSpec::DQ_PR_nullability) in CreatePropertyDecl()
698 if (Attributes & ObjCDeclSpec::DQ_PR_null_resettable) in CreatePropertyDecl()
701 if (Attributes & ObjCDeclSpec::DQ_PR_class) in CreatePropertyDecl()
2371 if ((Attributes & ObjCDeclSpec::DQ_PR_readonly) && in CheckObjCPropertyAttributes()
2372 (Attributes & ObjCDeclSpec::DQ_PR_readwrite)) in CheckObjCPropertyAttributes()
2380 if ((Attributes & (ObjCDeclSpec::DQ_PR_weak | ObjCDeclSpec::DQ_PR_copy | in CheckObjCPropertyAttributes()
2381 ObjCDeclSpec::DQ_PR_retain | ObjCDeclSpec::DQ_PR_strong)) && in CheckObjCPropertyAttributes()
2385 << (Attributes & ObjCDeclSpec::DQ_PR_weak ? "weak" : in CheckObjCPropertyAttributes()
2386 Attributes & ObjCDeclSpec::DQ_PR_copy ? "copy" : "retain (or strong)"); in CheckObjCPropertyAttributes()
2387 Attributes &= ~(ObjCDeclSpec::DQ_PR_weak | ObjCDeclSpec::DQ_PR_copy | in CheckObjCPropertyAttributes()
2388 ObjCDeclSpec::DQ_PR_retain | ObjCDeclSpec::DQ_PR_strong); in CheckObjCPropertyAttributes()
2393 if (Attributes & ObjCDeclSpec::DQ_PR_assign) { in CheckObjCPropertyAttributes()
2394 if (Attributes & ObjCDeclSpec::DQ_PR_copy) { in CheckObjCPropertyAttributes()
2397 Attributes &= ~ObjCDeclSpec::DQ_PR_copy; in CheckObjCPropertyAttributes()
2399 if (Attributes & ObjCDeclSpec::DQ_PR_retain) { in CheckObjCPropertyAttributes()
2402 Attributes &= ~ObjCDeclSpec::DQ_PR_retain; in CheckObjCPropertyAttributes()
2404 if (Attributes & ObjCDeclSpec::DQ_PR_strong) { in CheckObjCPropertyAttributes()
2407 Attributes &= ~ObjCDeclSpec::DQ_PR_strong; in CheckObjCPropertyAttributes()
2410 (Attributes & ObjCDeclSpec::DQ_PR_weak)) { in CheckObjCPropertyAttributes()
2413 Attributes &= ~ObjCDeclSpec::DQ_PR_weak; in CheckObjCPropertyAttributes()
2417 } else if (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained) { in CheckObjCPropertyAttributes()
2418 if (Attributes & ObjCDeclSpec::DQ_PR_copy) { in CheckObjCPropertyAttributes()
2421 Attributes &= ~ObjCDeclSpec::DQ_PR_copy; in CheckObjCPropertyAttributes()
2423 if (Attributes & ObjCDeclSpec::DQ_PR_retain) { in CheckObjCPropertyAttributes()
2426 Attributes &= ~ObjCDeclSpec::DQ_PR_retain; in CheckObjCPropertyAttributes()
2428 if (Attributes & ObjCDeclSpec::DQ_PR_strong) { in CheckObjCPropertyAttributes()
2431 Attributes &= ~ObjCDeclSpec::DQ_PR_strong; in CheckObjCPropertyAttributes()
2434 (Attributes & ObjCDeclSpec::DQ_PR_weak)) { in CheckObjCPropertyAttributes()
2437 Attributes &= ~ObjCDeclSpec::DQ_PR_weak; in CheckObjCPropertyAttributes()
2439 } else if (Attributes & ObjCDeclSpec::DQ_PR_copy) { in CheckObjCPropertyAttributes()
2440 if (Attributes & ObjCDeclSpec::DQ_PR_retain) { in CheckObjCPropertyAttributes()
2443 Attributes &= ~ObjCDeclSpec::DQ_PR_retain; in CheckObjCPropertyAttributes()
2445 if (Attributes & ObjCDeclSpec::DQ_PR_strong) { in CheckObjCPropertyAttributes()
2448 Attributes &= ~ObjCDeclSpec::DQ_PR_strong; in CheckObjCPropertyAttributes()
2450 if (Attributes & ObjCDeclSpec::DQ_PR_weak) { in CheckObjCPropertyAttributes()
2453 Attributes &= ~ObjCDeclSpec::DQ_PR_weak; in CheckObjCPropertyAttributes()
2456 else if ((Attributes & ObjCDeclSpec::DQ_PR_retain) && in CheckObjCPropertyAttributes()
2457 (Attributes & ObjCDeclSpec::DQ_PR_weak)) { in CheckObjCPropertyAttributes()
2460 Attributes &= ~ObjCDeclSpec::DQ_PR_retain; in CheckObjCPropertyAttributes()
2462 else if ((Attributes & ObjCDeclSpec::DQ_PR_strong) && in CheckObjCPropertyAttributes()
2463 (Attributes & ObjCDeclSpec::DQ_PR_weak)) { in CheckObjCPropertyAttributes()
2466 Attributes &= ~ObjCDeclSpec::DQ_PR_weak; in CheckObjCPropertyAttributes()
2469 if (Attributes & ObjCDeclSpec::DQ_PR_weak) { in CheckObjCPropertyAttributes()
2478 if ((Attributes & ObjCDeclSpec::DQ_PR_atomic) && in CheckObjCPropertyAttributes()
2479 (Attributes & ObjCDeclSpec::DQ_PR_nonatomic)) { in CheckObjCPropertyAttributes()
2482 Attributes &= ~ObjCDeclSpec::DQ_PR_atomic; in CheckObjCPropertyAttributes()
2488 if (Attributes & ObjCDeclSpec::DQ_PR_readonly) { in CheckObjCPropertyAttributes()
2521 if (!(Attributes & ObjCDeclSpec::DQ_PR_copy) in CheckObjCPropertyAttributes()
2522 &&!(Attributes & ObjCDeclSpec::DQ_PR_readonly) in CheckObjCPropertyAttributes()
2526 else if ((Attributes & ObjCDeclSpec::DQ_PR_retain) && in CheckObjCPropertyAttributes()
2527 !(Attributes & ObjCDeclSpec::DQ_PR_readonly) && in CheckObjCPropertyAttributes()
2528 !(Attributes & ObjCDeclSpec::DQ_PR_strong) && in CheckObjCPropertyAttributes()
2532 if ((Attributes & ObjCDeclSpec::DQ_PR_readonly) && in CheckObjCPropertyAttributes()
2533 (Attributes & ObjCDeclSpec::DQ_PR_setter)) in CheckObjCPropertyAttributes()