Debian Codegraph @

clang/test/FixIt/property-access-fixit.m

raw
1 // RUN: cp %s %t
2 // RUN: %clang_cc1 -x objective-c -fixit %t
3 // RUN: %clang_cc1 -x objective-c -Werror %t
4
5 @class BridgeFormatter;
6
7 @interface NSObject
8 + (id)new;
9 @end
10
11 @interface X : NSObject
12 @property int x;
13 @property int Y;
14 @property(assign, readwrite, getter=formatter, setter=setFormatter:) BridgeFormatter* cppFormatter;
15 @end
16
17 @implementation X
18 - (void) endit
19 {
20 self.formatter = 0;
21 }
22 @end
23
24 int main(void)
25 {
26 X *obj = [X new];
27 obj.X = 3;
28 obj.y = 4;
29 return obj.x + obj.Y;
30 }