• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/

Lines Matching defs:Attributes

185   unsigned Attributes = ODS.getPropertyAttributes();
186 FD.D.setObjCWeakProperty((Attributes & ObjCDeclSpec::DQ_PR_weak) != 0);
189 if (!getOwnershipRule(Attributes)) {
190 Attributes |= deducePropertyOwnershipFromType(*this, T);
192 bool isReadWrite = ((Attributes & ObjCDeclSpec::DQ_PR_readwrite) ||
194 !(Attributes & ObjCDeclSpec::DQ_PR_readonly));
205 isReadWrite, Attributes,
216 ODS.getSetterNameLoc(), isReadWrite, Attributes,
224 CheckObjCPropertyAttributes(Res, AtLoc, Attributes,
281 makePropertyAttributesAsWritten(unsigned Attributes) {
283 if (Attributes & ObjCDeclSpec::DQ_PR_readonly)
285 if (Attributes & ObjCDeclSpec::DQ_PR_readwrite)
287 if (Attributes & ObjCDeclSpec::DQ_PR_getter)
289 if (Attributes & ObjCDeclSpec::DQ_PR_setter)
291 if (Attributes & ObjCDeclSpec::DQ_PR_assign)
293 if (Attributes & ObjCDeclSpec::DQ_PR_retain)
295 if (Attributes & ObjCDeclSpec::DQ_PR_strong)
297 if (Attributes & ObjCDeclSpec::DQ_PR_weak)
299 if (Attributes & ObjCDeclSpec::DQ_PR_copy)
301 if (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained)
303 if (Attributes & ObjCDeclSpec::DQ_PR_nonatomic)
305 if (Attributes & ObjCDeclSpec::DQ_PR_atomic)
307 if (Attributes & ObjCDeclSpec::DQ_PR_class)
309 if (Attributes & ObjCDeclSpec::DQ_PR_direct)
423 unsigned &Attributes,
442 (Attributes & ObjCDeclSpec::DQ_PR_class);
467 (Attributes & ObjCDeclSpec::DQ_PR_readwrite) &&
489 Attributes |= ObjCDeclSpec::DQ_PR_getter;
495 unsigned NewOwnership = getOwnershipRule(Attributes);
504 Attributes = (Attributes & ~OwnershipMask) | ExistingOwnership;
508 if ((Attributes & ObjCPropertyDecl::OBJC_PR_weak) &&
524 Attributes, AttributesAsWritten,
576 const unsigned Attributes,
587 if (Attributes & (ObjCDeclSpec::DQ_PR_assign |
590 } else if (getOwnershipRule(Attributes) || !isReadWrite) {
600 isAssign && !(Attributes & ObjCDeclSpec::DQ_PR_assign)) {
629 (Attributes & ObjCDeclSpec::DQ_PR_class);
657 if (Attributes & ObjCDeclSpec::DQ_PR_readonly)
660 if (Attributes & ObjCDeclSpec::DQ_PR_getter)
663 if (Attributes & ObjCDeclSpec::DQ_PR_setter)
669 if (Attributes & ObjCDeclSpec::DQ_PR_retain)
672 if (Attributes & ObjCDeclSpec::DQ_PR_strong)
675 if (Attributes & ObjCDeclSpec::DQ_PR_weak)
678 if (Attributes & ObjCDeclSpec::DQ_PR_copy)
681 if (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained)
688 if (Attributes & ObjCDeclSpec::DQ_PR_nonatomic)
694 if (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained)
704 if (Attributes & ObjCDeclSpec::DQ_PR_nullability)
707 if (Attributes & ObjCDeclSpec::DQ_PR_null_resettable)
710 if (Attributes & ObjCDeclSpec::DQ_PR_class)
713 if ((Attributes & ObjCDeclSpec::DQ_PR_direct) ||
2195 unsigned Attributes = Property->getPropertyAttributes();
2225 if ((Attributes & ObjCPropertyDecl::OBJC_PR_nonatomic) ||
2226 !(Attributes & ObjCPropertyDecl::OBJC_PR_readwrite))
2619 unsigned &Attributes,
2625 if ((Attributes & ObjCDeclSpec::DQ_PR_readonly) &&
2626 (Attributes & ObjCDeclSpec::DQ_PR_readwrite))
2634 if ((Attributes & (ObjCDeclSpec::DQ_PR_weak | ObjCDeclSpec::DQ_PR_copy |
2639 << (Attributes & ObjCDeclSpec::DQ_PR_weak ? "weak" :
2640 Attributes & ObjCDeclSpec::DQ_PR_copy ? "copy" : "retain (or strong)");
2641 Attributes &= ~(ObjCDeclSpec::DQ_PR_weak | ObjCDeclSpec::DQ_PR_copy |
2647 if ((Attributes & ObjCDeclSpec::DQ_PR_assign) &&
2648 !(Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained) &&
2655 if (Attributes & ObjCDeclSpec::DQ_PR_assign) {
2656 if (Attributes & ObjCDeclSpec::DQ_PR_copy) {
2659 Attributes &= ~ObjCDeclSpec::DQ_PR_copy;
2661 if (Attributes & ObjCDeclSpec::DQ_PR_retain) {
2664 Attributes &= ~ObjCDeclSpec::DQ_PR_retain;
2666 if (Attributes & ObjCDeclSpec::DQ_PR_strong) {
2669 Attributes &= ~ObjCDeclSpec::DQ_PR_strong;
2672 (Attributes & ObjCDeclSpec::DQ_PR_weak)) {
2675 Attributes &= ~ObjCDeclSpec::DQ_PR_weak;
2679 } else if (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained) {
2680 if (Attributes & ObjCDeclSpec::DQ_PR_copy) {
2683 Attributes &= ~ObjCDeclSpec::DQ_PR_copy;
2685 if (Attributes & ObjCDeclSpec::DQ_PR_retain) {
2688 Attributes &= ~ObjCDeclSpec::DQ_PR_retain;
2690 if (Attributes & ObjCDeclSpec::DQ_PR_strong) {
2693 Attributes &= ~ObjCDeclSpec::DQ_PR_strong;
2696 (Attributes & ObjCDeclSpec::DQ_PR_weak)) {
2699 Attributes &= ~ObjCDeclSpec::DQ_PR_weak;
2701 } else if (Attributes & ObjCDeclSpec::DQ_PR_copy) {
2702 if (Attributes & ObjCDeclSpec::DQ_PR_retain) {
2705 Attributes &= ~ObjCDeclSpec::DQ_PR_retain;
2707 if (Attributes & ObjCDeclSpec::DQ_PR_strong) {
2710 Attributes &= ~ObjCDeclSpec::DQ_PR_strong;
2712 if (Attributes & ObjCDeclSpec::DQ_PR_weak) {
2715 Attributes &= ~ObjCDeclSpec::DQ_PR_weak;
2718 else if ((Attributes & ObjCDeclSpec::DQ_PR_retain) &&
2719 (Attributes & ObjCDeclSpec::DQ_PR_weak)) {
2722 Attributes &= ~ObjCDeclSpec::DQ_PR_retain;
2724 else if ((Attributes & ObjCDeclSpec::DQ_PR_strong) &&
2725 (Attributes & ObjCDeclSpec::DQ_PR_weak)) {
2728 Attributes &= ~ObjCDeclSpec::DQ_PR_weak;
2731 if (Attributes & ObjCDeclSpec::DQ_PR_weak) {
2740 if ((Attributes & ObjCDeclSpec::DQ_PR_atomic) &&
2741 (Attributes & ObjCDeclSpec::DQ_PR_nonatomic)) {
2744 Attributes &= ~ObjCDeclSpec::DQ_PR_atomic;
2749 if (!getOwnershipRule(Attributes) && PropertyTy->isObjCRetainableType()) {
2750 if (Attributes & ObjCDeclSpec::DQ_PR_readonly) {
2783 if (!(Attributes & ObjCDeclSpec::DQ_PR_copy)
2784 &&!(Attributes & ObjCDeclSpec::DQ_PR_readonly)
2788 else if ((Attributes & ObjCDeclSpec::DQ_PR_retain) &&
2789 !(Attributes & ObjCDeclSpec::DQ_PR_readonly) &&
2790 !(Attributes & ObjCDeclSpec::DQ_PR_strong) &&
2794 if ((Attributes & ObjCDeclSpec::DQ_PR_readonly) &&
2795 (Attributes & ObjCDeclSpec::DQ_PR_setter))