Home
last modified time | relevance | path

Searched refs:getter (Results 1 – 25 of 115) sorted by relevance

12345

/llvm-project-15.0.7/clang/test/ARCMT/
H A Dobjcmt-atomic-property.m.result73 @property (getter=isContinuous) BOOL continuous;
95 @property (getter=getM, readonly) BOOL m;
96 @property (getter=getMA, readonly) BOOL MA;
97 @property (getter=getALL, readonly) BOOL ALL;
98 @property (getter=getMANY, readonly) BOOL MANY;
99 @property (getter=getSome, readonly) BOOL some;
133 @property (getter=getM, readonly) BOOL m;
134 @property (getter=getMA, readonly) BOOL MA;
135 @property (getter=getALL, readonly) BOOL ALL;
136 @property (getter=getMANY, readonly) BOOL MANY;
[all …]
H A Dobjcmt-property.m.result76 @property (nonatomic, getter=isContinuous) BOOL continuous;
98 @property (nonatomic, getter=getM, readonly) BOOL m;
99 @property (nonatomic, getter=getMA, readonly) BOOL MA;
100 @property (nonatomic, getter=getALL, readonly) BOOL ALL;
101 @property (nonatomic, getter=getMANY, readonly) BOOL MANY;
102 @property (nonatomic, getter=getSome, readonly) BOOL some;
136 @property (nonatomic, getter=getM, readonly) BOOL m;
137 @property (nonatomic, getter=getMA, readonly) BOOL MA;
138 @property (nonatomic, getter=getALL, readonly) BOOL ALL;
139 @property (nonatomic, getter=getMANY, readonly) BOOL MANY;
[all …]
H A Dobjcmt-ns-nonatomic-iosonly.m.result80 @property (NS_NONATOMIC_IOSONLY, getter=isContinuous) BOOL continuous;
102 @property (NS_NONATOMIC_IOSONLY, getter=getM, readonly) BOOL m;
103 @property (NS_NONATOMIC_IOSONLY, getter=getMA, readonly) BOOL MA;
104 @property (NS_NONATOMIC_IOSONLY, getter=getALL, readonly) BOOL ALL;
105 @property (NS_NONATOMIC_IOSONLY, getter=getMANY, readonly) BOOL MANY;
106 @property (NS_NONATOMIC_IOSONLY, getter=getSome, readonly) BOOL some;
140 @property (NS_NONATOMIC_IOSONLY, getter=getM, readonly) BOOL m;
141 @property (NS_NONATOMIC_IOSONLY, getter=getMA, readonly) BOOL MA;
142 @property (NS_NONATOMIC_IOSONLY, getter=getALL, readonly) BOOL ALL;
143 @property (NS_NONATOMIC_IOSONLY, getter=getMANY, readonly) BOOL MANY;
[all …]
/llvm-project-15.0.7/clang/test/SemaObjC/
H A Derror-missing-getter.m12 if (x.setterOnly) { // expected-error {{no getter method for read from property}}
15 func(x.setterOnly + 1, x); // expected-error {{no getter method for read from property}}
16 int i = x.setterOnly + 1; // expected-error {{no getter method for read from property}}
17 return x.setterOnly + 1; // expected-error {{no getter method for read from property}}
27 if (TestClass.setterOnly) { // expected-error {{no getter method for read from property}}
30 … func(TestClass.setterOnly + 1, x); // expected-error {{no getter method for read from property}} \
32 int i = TestClass.setterOnly + 1; // expected-error {{no getter method for read from property}}
33 return TestClass.setterOnly + 1; // expected-error {{no getter method for read from property}}
41 return super.setterOnly; // expected-error {{no getter method for read from property}}
H A Datomic-property-synthesis-rules.m7 3. the current @implementation contains a hand-written setter XOR getter
12 manually-implemented getter, which may break atomicity.
13 warning: Atomic property 'x' has a synthesized getter and a
111 // expected-note {{setter and getter must both be synthesized}}
113 // expected-note {{setter and getter must both be synthesized}}
144 … // expected-note {{setter and getter must both be synthesized}}
146 … // expected-note {{setter and getter must both be synthesized}}
207 … // expected-note {{setter and getter must both be synthesized}}
333 // late synthesize - follows getter/setter implementations
349 …tomic property 'x' cannot pair a synthesized setter/getter with a manually implemented setter/gett…
[all …]
H A Dattr-swift_name.m103 float Point3DGetMagnitude(Point3D point) SWIFT_NAME("getter:Point3D.magnitude(self:)");
107 float Point3DGetRadius(Point3D point) SWIFT_NAME("getter:Point3D.radius(self:)");
137 float Point3DStaticSubscript(unsigned x) SWIFT_NAME("getter:Point3D.subscript(_:)");
140 float Point3DStaticSubscriptNoArgs(void) SWIFT_NAME("getter:Point3D.subscript()");
145 Point3D getCurrentPoint3D(void) SWIFT_NAME("getter:currentPoint3D()");
149 Point3D getLastPoint3D(void) SWIFT_NAME("getter:lastPoint3D()");
153 Point3D getZeroPoint(void) SWIFT_NAME("getter:Point3D.zero()");
155 Point3D getZeroPointNoPrototype() SWIFT_NAME("getter:Point3D.zeroNoPrototype()");
158 Point3D badGetter1(int x) SWIFT_NAME("getter:bad1(_:)");
161 void badSetter1(void) SWIFT_NAME("getter:bad1())");
[all …]
H A Dproperty-13.m17 getter = optional_preexisting_setter_getter) int optional_with_setter_getter_attr;
22 @property (readonly, getter = optional_preexisting_setter_getter) int optional_getter_attr;
62 /* 3. Test of optional property with pre-sxisting defined setter/getter */
67 /* 4. Test of optional property with setter/getter attribute */
72 /* 5. Test of optional property with getter attribute and default setter method. */
H A Darc-decls.m70 …ention for returning 'owned' objects}} expected-note{{explicitly declare getter '-newFoo' with '__…
71 …ention for returning 'owned' objects}} expected-note{{explicitly declare getter '-copyBar' with '_…
72 …ention for returning 'owned' objects}} expected-note{{explicitly declare getter '-allocBaz' with '…
74 …ention for returning 'owned' objects}} expected-note{{explicitly declare getter '-newDFoo' with '_…
75 …ention for returning 'owned' objects}} expected-note{{explicitly declare getter '-copyDBar' with '…
76 …ention for returning 'owned' objects}} expected-note{{explicitly declare getter '-allocDBaz' with …
94 - (id)newFoo; // expected-note {{explicitly declare getter '-newFoo' with '__attribute__((objc_meth…
97 - (id)newBar; // expected-note {{explicitly declare getter '-newBar' with 'OBJC_METHOD_FAMILY_NONE'…
100 …ntion for returning 'owned' objects}} expected-note {{explicitly declare getter '-newBaz' with 'OB…
103 …ntion for returning 'owned' objects}} expected-note {{explicitly declare getter '-newGarply' with …
H A Dproperty-3.m37 @property (nonatomic, readonly, getter=isAvailable) int available; // expected-note{{property decla…
41 @property (nonatomic, assign, getter=wasAvailable) int available; // expected-warning{{getter name …
H A Dno-warning-unavail-unimp.m7 @property (getter=getVal) int val __attribute__((unavailable));
8 @property (getter=getVal) int val2 __attribute__((availability(macosx,unavailable)));
H A Derror-implicit-property.m18 arg.P++; // expected-error {{no getter method 'P' for increment of property}}
19 --arg.P; // expected-error {{no getter method 'P' for decrement of property}}
H A Dproperty-category-4.m98 @property (readonly) int p; // no warning for this property - a getter is declared in another cate…
100 @property (readonly) int p2; // no warning for this property - a getter is declared in this catego…
110 @property (readonly) float Float; // no warning for this property - a getter is declared in this p…
H A Dsuper-property-notation.m5 -(int) getter; method
21 int x = super.getter;
H A Dproperty-user-setter.m92 g(c.Foo); // expected-error {{no getter method for read from property}}
135 return self.R; // expected-error {{no getter method for read from property}} \
145 @property(assign, readwrite, getter=formatter, setter=setFormatter:) BridgeFormatter* cppFormatter;
/llvm-project-15.0.7/clang/test/Index/
H A Dproperty-getter-setter.m2 @property (assign,readwrite,getter=b,setter=c:) id a;
3 @property (assign,readonly,getter=e) id d;
8 // CHECK: ObjCPropertyDecl=a:2:52 [getter,assign,readwrite,setter,] (getter=b) (setter=c:) [typedec…
9 // CHECK: ObjCPropertyDecl=d:3:41 [readonly,getter,assign,] (getter=e) [typedeclaration=id] [typeki…
H A Dcomplete-documentation-properties.m11 @property (readonly, getter = ReadonlyGetter) id MyProperty;
40 @property (copy, getter = GetterInClassExtension) id PropertyInClassExtension;
78 @property (getter = ReadonlyGetter) int MyProperty;
80 \brief This is getter = ReadonlyGetter
91 // CHECK-CC7: {TypedText ReadonlyGetter}{{.*}}(brief comment: This is getter = ReadonlyGetter)
H A Dcomplete-property-flags.m15 // CHECK-CC1-NEXT: {TypedText getter}{Text =}{Placeholder method}
34 // CHECK-CC1-ARC-NEXT: {TypedText getter}{Text =}{Placeholder method}
49 // CHECK-CC2: {TypedText getter}{Text =}{Placeholder method}
/llvm-project-15.0.7/clang/test/CodeGenObjC/
H A Ddot-syntax-1.m13 @property(getter=_getX,setter=_setX:) int x;
49 @property(getter=_getX,setter=_setX:) int x;
72 // Mixed setter & getter (variant 1)
80 @property(getter=_getX,setter=_setX:) int x;
103 // Mixed setter & getter (variant 2)
111 @property(getter=_getX,setter=_setX:) int x;
134 // Mixed setter & getter (variant 3)
137 @property(getter=_getX,setter=_setX:) int x;
165 // Mixed setter & getter (variant 4)
168 @property(getter=_getX,setter=_setX:) int x;
[all …]
H A Dsuper-dotsyntax-property.m11 -(int) getter; method
29 super.getter = 200;
30 int x = super.getter;
H A Ddebug-info-property-accessors.m9 // CHECK-SAME: getter: "isBlah"
30 @property (getter=isBlah, setter=setBlah:) BOOL blah;
/llvm-project-15.0.7/lldb/test/Shell/SymbolFile/DWARF/
H A Dclang-ast-from-dwarf-objc-property.m10 @property (readonly, getter=custom_getter) int manual;
18 // CHECK: | `-getter ObjCMethod [[READONLY:0x[0-9a-f]+]] 'ro_number'
21 // CHECK: | |-getter ObjCMethod {{.*}} 'rw_number'
24 // CHECK: | `-getter ObjCMethod [[CUSTOM:0x[0-9a-f]+]] 'custom_getter'
27 // CHECK: | `-getter ObjCMethod [[CLASS:0x[0-9a-f]+]] 'class_property'
/llvm-project-15.0.7/llvm/test/Assembler/
H A Ddiobjcproperty.ll12 ; CHECK-NEXT: !3 = !DIObjCProperty(name: "foo", file: !1, line: 7, setter: "setFoo", getter: "getFo…
14 getter: "getFoo", attributes: 7, type: !2)
17 !4 = !DIObjCProperty(name: "", file: null, line: 0, setter: "", getter: "",
/llvm-project-15.0.7/clang/test/APINotes/Inputs/Frameworks/SomeKit.framework/Headers/
H A DSomeKit.apinotes16 AvailabilityMsg: "getter gone"
20 AvailabilityMsg: "getter gone"
24 AvailabilityMsg: "getter gone"
28 AvailabilityMsg: "getter gone"
/llvm-project-15.0.7/clang/test/AST/
H A Dast-print-objc-property.m10 @property(retain, nonatomic, setter=my_setter:, getter=my_getter) id __crazy_name;
19 // CHECK: @property(nonatomic, retain, readwrite, getter = my_getter, setter = my_setter:) id __cra…
/llvm-project-15.0.7/clang/test/Parser/
H A Dstmt-attributes.m3 // RUN: -Wno-unused-value -Wno-unused-getter-return-value
13 @property(getter=hasFoobar) int foobar;

12345