• Home
  • Raw
  • Download

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()
306 if (Attributes & ObjCDeclSpec::DQ_PR_class) in makePropertyAttributesAsWritten()
417 unsigned &Attributes, in HandlePropertyInClassExtension() argument
436 (Attributes & ObjCDeclSpec::DQ_PR_class); in HandlePropertyInClassExtension()
461 (Attributes & ObjCDeclSpec::DQ_PR_readwrite) && in HandlePropertyInClassExtension()
483 Attributes |= ObjCDeclSpec::DQ_PR_getter; in HandlePropertyInClassExtension()
489 unsigned NewOwnership = getOwnershipRule(Attributes); in HandlePropertyInClassExtension()
498 Attributes = (Attributes & ~OwnershipMask) | ExistingOwnership; in HandlePropertyInClassExtension()
502 if ((Attributes & ObjCPropertyDecl::OBJC_PR_weak) && in HandlePropertyInClassExtension()
517 Attributes, AttributesAsWritten, in HandlePropertyInClassExtension()
567 const unsigned Attributes, in CreatePropertyDecl() argument
578 if (Attributes & (ObjCDeclSpec::DQ_PR_assign | in CreatePropertyDecl()
581 } else if (getOwnershipRule(Attributes) || !isReadWrite) { in CreatePropertyDecl()
591 isAssign && !(Attributes & ObjCDeclSpec::DQ_PR_assign)) { 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()
1961 unsigned Attributes = Property->getPropertyAttributes(); in AtomicPropertySetterGetterRules() local
1988 if ((Attributes & ObjCPropertyDecl::OBJC_PR_nonatomic) || in AtomicPropertySetterGetterRules()
1989 !(Attributes & ObjCPropertyDecl::OBJC_PR_readwrite)) in AtomicPropertySetterGetterRules()
2365 unsigned &Attributes, in CheckObjCPropertyAttributes() argument
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()
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()
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()
2487 if (!getOwnershipRule(Attributes) && PropertyTy->isObjCRetainableType()) { 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()