| 1 |
@interface Foo |
| 2 |
- (int)compare:(Foo*)other; |
| 3 |
@end |
| 4 |
|
| 5 |
@implementation Foo |
| 6 |
- (int)compare:(Foo*)other { |
| 7 |
return 0; |
| 8 |
(void)@encode(Foo); |
| 9 |
} |
| 10 |
@end |
| 11 |
|
| 12 |
// The 'barType' referenced in the ivar declarations should be annotated as |
| 13 |
// TypeRefs. |
| 14 |
typedef int * barType; |
| 15 |
@interface Bar |
| 16 |
{ |
| 17 |
barType iVar; |
| 18 |
barType iVar1, iVar2; |
| 19 |
} |
| 20 |
@end |
| 21 |
@implementation Bar |
| 22 |
- (void) method |
| 23 |
{ |
| 24 |
barType local = iVar; |
| 25 |
} |
| 26 |
@end |
| 27 |
|
| 28 |
// The ranges for attributes are not currently stored, causing most of the |
| 29 |
// tokens to be falsely annotated. Since there are no source ranges for |
| 30 |
// attributes, we currently don't annotate them. |
| 31 |
@interface IBActionTests |
| 32 |
- (IBAction) actionMethod:(in id)arg; |
| 33 |
- (void)foo:(int)x; |
| 34 |
@end |
| 35 |
extern int ibaction_test(void); |
| 36 |
@implementation IBActionTests |
| 37 |
- (IBAction) actionMethod:(in id)arg |
| 38 |
{ |
| 39 |
ibaction_test(); |
| 40 |
[self foo:0]; |
| 41 |
} |
| 42 |
- (void) foo:(int)x |
| 43 |
{ |
| 44 |
(void) x; |
| 45 |
} |
| 46 |
@end |
| 47 |
|
| 48 |
// Essentially the same issue as above, but impacting code marked as IBOutlets. |
| 49 |
@interface IBOutletTests |
| 50 |
{ |
| 51 |
IBOutlet char * anOutlet; |
| 52 |
} |
| 53 |
- (IBAction) actionMethod:(id)arg; |
| 54 |
@property IBOutlet int * aPropOutlet; |
| 55 |
@end |
| 56 |
|
| 57 |
// The first 'foo:' wasn't being annotated as being part of the Objective-C |
| 58 |
// message expression since the argument was expanded from a macro. |
| 59 |
|
| 60 |
#define VAL 0 |
| 61 |
|
| 62 |
@interface R7974151 |
| 63 |
- (int) foo:(int)arg; |
| 64 |
- (int) method; |
| 65 |
@end |
| 66 |
|
| 67 |
@implementation R7974151 |
| 68 |
- (int) foo:(int)arg { |
| 69 |
return arg; |
| 70 |
} |
| 71 |
- (int) method |
| 72 |
{ |
| 73 |
int local = [self foo:VAL]; |
| 74 |
int second = [self foo:0]; |
| 75 |
return local; |
| 76 |
} |
| 77 |
- (int)othermethod:(IBOutletTests *)ibt { |
| 78 |
return *ibt.aPropOutlet; |
| 79 |
} |
| 80 |
@end |
| 81 |
|
| 82 |
@protocol Proto @end |
| 83 |
|
| 84 |
void f() { |
| 85 |
(void)@protocol(Proto); |
| 86 |
} |
| 87 |
|
| 88 |
// Properly annotate functions and variables declared within an @implementation. |
| 89 |
@class Rdar8595462_A; |
| 90 |
@interface Rdar8595462_B |
| 91 |
@end |
| 92 |
|
| 93 |
@implementation Rdar8595462_B |
| 94 |
Rdar8595462_A * Rdar8595462_aFunction() { |
| 95 |
Rdar8595462_A * localVar = 0; |
| 96 |
return localVar; |
| 97 |
} |
| 98 |
static Rdar8595462_A * Rdar8595462_staticVar; |
| 99 |
@end |
| 100 |
|
| 101 |
// Issues doing syntax coloring of properties |
| 102 |
@interface Rdar8595386 { |
| 103 |
Foo *_foo; |
| 104 |
} |
| 105 |
|
| 106 |
@property (readonly, copy) Foo *foo; |
| 107 |
@property (readonly) Foo *foo2; |
| 108 |
@end |
| 109 |
|
| 110 |
@implementation Rdar8595386 |
| 111 |
@synthesize foo = _foo; |
| 112 |
@dynamic foo2; |
| 113 |
@end |
| 114 |
|
| 115 |
// Blocks don't get colored if annotation starts within the block itself |
| 116 |
@interface Rdar8778404 |
| 117 |
@end |
| 118 |
|
| 119 |
@implementation Rdar8778404 |
| 120 |
- (int)blah:(int)arg, ... { return arg; } |
| 121 |
- (int)blarg:(int)x { |
| 122 |
(void)^ { |
| 123 |
int result = [self blah:5, x]; |
| 124 |
Rdar8778404 *a = self; |
| 125 |
return 0; |
| 126 |
}; |
| 127 |
} |
| 128 |
@end |
| 129 |
|
| 130 |
@interface Rdar8062781 |
| 131 |
+ (Foo*)getB; |
| 132 |
@property (readonly, nonatomic) Foo *blah; |
| 133 |
@property (readonly, atomic) Foo *abah; |
| 134 |
@end |
| 135 |
|
| 136 |
@interface rdar9535717 { |
| 137 |
__weak Foo *foo; |
| 138 |
} |
| 139 |
@end |
| 140 |
|
| 141 |
@interface MyClass |
| 142 |
@property int classProperty; |
| 143 |
@end |
| 144 |
@interface MyClass (abc) |
| 145 |
@property int categoryProperty; |
| 146 |
@end |
| 147 |
@interface MyClass () |
| 148 |
@property int extensionProperty; |
| 149 |
@end |
| 150 |
|
| 151 |
typedef id<Proto> *proto_ptr; |
| 152 |
|
| 153 |
// RUN: c-index-test -test-annotate-tokens=%s:1:1:118:1 %s -DIBOutlet='__attribute__((iboutlet))' -DIBAction='void)__attribute__((ibaction)' | FileCheck %s |
| 154 |
// CHECK: Punctuation: "@" [1:1 - 1:2] ObjCInterfaceDecl=Foo:1:12 |
| 155 |
// CHECK: Keyword: "interface" [1:2 - 1:11] ObjCInterfaceDecl=Foo:1:12 |
| 156 |
// CHECK: Identifier: "Foo" [1:12 - 1:15] ObjCInterfaceDecl=Foo:1:12 |
| 157 |
// CHECK: Punctuation: "-" [2:1 - 2:2] ObjCInstanceMethodDecl=compare::2:8 |
| 158 |
// CHECK: Punctuation: "(" [2:3 - 2:4] ObjCInstanceMethodDecl=compare::2:8 |
| 159 |
// CHECK: Keyword: "int" [2:4 - 2:7] ObjCInstanceMethodDecl=compare::2:8 |
| 160 |
// CHECK: Punctuation: ")" [2:7 - 2:8] ObjCInstanceMethodDecl=compare::2:8 |
| 161 |
// CHECK: Identifier: "compare" [2:8 - 2:15] ObjCInstanceMethodDecl=compare::2:8 |
| 162 |
// CHECK: Punctuation: ":" [2:15 - 2:16] ObjCInstanceMethodDecl=compare::2:8 |
| 163 |
// CHECK: Punctuation: "(" [2:16 - 2:17] ObjCInstanceMethodDecl=compare::2:8 |
| 164 |
// CHECK: Identifier: "Foo" [2:17 - 2:20] ObjCClassRef=Foo:1:12 |
| 165 |
// CHECK: Punctuation: "*" [2:20 - 2:21] ParmDecl=other:2:22 (Definition) |
| 166 |
// CHECK: Punctuation: ")" [2:21 - 2:22] ParmDecl=other:2:22 (Definition) |
| 167 |
// CHECK: Identifier: "other" [2:22 - 2:27] ParmDecl=other:2:22 (Definition) |
| 168 |
// CHECK: Punctuation: ";" [2:27 - 2:28] ObjCInstanceMethodDecl=compare::2:8 |
| 169 |
// CHECK: Punctuation: "@" [3:1 - 3:2] ObjCInterfaceDecl=Foo:1:12 |
| 170 |
// CHECK: Keyword: "end" [3:2 - 3:5] ObjCInterfaceDecl=Foo:1:12 |
| 171 |
// CHECK: Punctuation: "@" [5:1 - 5:2] ObjCImplementationDecl=Foo:5:17 (Definition) |
| 172 |
// CHECK: Keyword: "implementation" [5:2 - 5:16] ObjCImplementationDecl=Foo:5:17 (Definition) |
| 173 |
// CHECK: Identifier: "Foo" [5:17 - 5:20] ObjCImplementationDecl=Foo:5:17 (Definition) |
| 174 |
// CHECK: Punctuation: "-" [6:1 - 6:2] ObjCInstanceMethodDecl=compare::6:8 (Definition) |
| 175 |
// CHECK: Punctuation: "(" [6:3 - 6:4] ObjCInstanceMethodDecl=compare::6:8 (Definition) |
| 176 |
// CHECK: Keyword: "int" [6:4 - 6:7] ObjCInstanceMethodDecl=compare::6:8 (Definition) |
| 177 |
// CHECK: Punctuation: ")" [6:7 - 6:8] ObjCInstanceMethodDecl=compare::6:8 (Definition) |
| 178 |
// CHECK: Identifier: "compare" [6:8 - 6:15] ObjCInstanceMethodDecl=compare::6:8 (Definition) |
| 179 |
// CHECK: Punctuation: ":" [6:15 - 6:16] ObjCInstanceMethodDecl=compare::6:8 (Definition) |
| 180 |
// CHECK: Punctuation: "(" [6:16 - 6:17] ObjCInstanceMethodDecl=compare::6:8 (Definition) |
| 181 |
// CHECK: Identifier: "Foo" [6:17 - 6:20] ObjCClassRef=Foo:1:12 |
| 182 |
// CHECK: Punctuation: "*" [6:20 - 6:21] ParmDecl=other:6:22 (Definition) |
| 183 |
// CHECK: Punctuation: ")" [6:21 - 6:22] ParmDecl=other:6:22 (Definition) |
| 184 |
// CHECK: Identifier: "other" [6:22 - 6:27] ParmDecl=other:6:22 (Definition) |
| 185 |
// CHECK: Punctuation: "{" [6:28 - 6:29] CompoundStmt= |
| 186 |
// CHECK: Keyword: "return" [7:3 - 7:9] ReturnStmt= |
| 187 |
// CHECK: Literal: "0" [7:10 - 7:11] IntegerLiteral= |
| 188 |
// CHECK: Punctuation: ";" [7:11 - 7:12] CompoundStmt= |
| 189 |
// CHECK: Punctuation: "(" [8:3 - 8:4] CStyleCastExpr= |
| 190 |
// CHECK: Keyword: "void" [8:4 - 8:8] CStyleCastExpr= |
| 191 |
// CHECK: Punctuation: ")" [8:8 - 8:9] CStyleCastExpr= |
| 192 |
// CHECK: Punctuation: "@" [8:9 - 8:10] ObjCEncodeExpr= |
| 193 |
// CHECK: Keyword: "encode" [8:10 - 8:16] ObjCEncodeExpr= |
| 194 |
// CHECK: Punctuation: "(" [8:16 - 8:17] ObjCEncodeExpr= |
| 195 |
// CHECK: Identifier: "Foo" [8:17 - 8:20] ObjCClassRef=Foo:1:12 |
| 196 |
// CHECK: Punctuation: ")" [8:20 - 8:21] ObjCEncodeExpr= |
| 197 |
// CHECK: Punctuation: ";" [8:21 - 8:22] CompoundStmt= |
| 198 |
// CHECK: Punctuation: "}" [9:1 - 9:2] CompoundStmt= |
| 199 |
// CHECK: Punctuation: "@" [10:1 - 10:2] ObjCImplementationDecl=Foo:5:17 (Definition) |
| 200 |
// CHECK: Keyword: "end" [10:2 - 10:5] |
| 201 |
// CHECK: Keyword: "typedef" [14:1 - 14:8] |
| 202 |
// CHECK: Keyword: "int" [14:9 - 14:12] |
| 203 |
// CHECK: Punctuation: "*" [14:13 - 14:14] |
| 204 |
// CHECK: Identifier: "barType" [14:15 - 14:22] TypedefDecl=barType:14:15 (Definition) |
| 205 |
// CHECK: Punctuation: ";" [14:22 - 14:23] |
| 206 |
// CHECK: Punctuation: "@" [15:1 - 15:2] ObjCInterfaceDecl=Bar:15:12 |
| 207 |
// CHECK: Keyword: "interface" [15:2 - 15:11] ObjCInterfaceDecl=Bar:15:12 |
| 208 |
// CHECK: Identifier: "Bar" [15:12 - 15:15] ObjCInterfaceDecl=Bar:15:12 |
| 209 |
// CHECK: Punctuation: "{" [16:1 - 16:2] ObjCInterfaceDecl=Bar:15:12 |
| 210 |
// CHECK: Identifier: "barType" [17:5 - 17:12] TypeRef=barType:14:15 |
| 211 |
// CHECK: Identifier: "iVar" [17:13 - 17:17] ObjCIvarDecl=iVar:17:13 (Definition) |
| 212 |
// CHECK: Punctuation: ";" [17:17 - 17:18] ObjCInterfaceDecl=Bar:15:12 |
| 213 |
// CHECK: Identifier: "barType" [18:5 - 18:12] TypeRef=barType:14:15 |
| 214 |
// CHECK: Identifier: "iVar1" [18:13 - 18:18] ObjCIvarDecl=iVar1:18:13 (Definition) |
| 215 |
// CHECK: Punctuation: "," [18:18 - 18:19] ObjCIvarDecl=iVar2:18:20 (Definition) |
| 216 |
// CHECK: Identifier: "iVar2" [18:20 - 18:25] ObjCIvarDecl=iVar2:18:20 (Definition) |
| 217 |
// CHECK: Punctuation: ";" [18:25 - 18:26] ObjCInterfaceDecl=Bar:15:12 |
| 218 |
// CHECK: Punctuation: "}" [19:1 - 19:2] ObjCInterfaceDecl=Bar:15:12 |
| 219 |
// CHECK: Punctuation: "@" [20:1 - 20:2] ObjCInterfaceDecl=Bar:15:12 |
| 220 |
// CHECK: Keyword: "end" [20:2 - 20:5] ObjCInterfaceDecl=Bar:15:12 |
| 221 |
// CHECK: Punctuation: "@" [21:1 - 21:2] ObjCImplementationDecl=Bar:21:17 (Definition) |
| 222 |
// CHECK: Keyword: "implementation" [21:2 - 21:16] ObjCImplementationDecl=Bar:21:17 (Definition) |
| 223 |
// CHECK: Identifier: "Bar" [21:17 - 21:20] ObjCImplementationDecl=Bar:21:17 (Definition) |
| 224 |
// CHECK: Punctuation: "-" [22:1 - 22:2] ObjCInstanceMethodDecl=method:22:10 (Definition) |
| 225 |
// CHECK: Punctuation: "(" [22:3 - 22:4] ObjCInstanceMethodDecl=method:22:10 (Definition) |
| 226 |
// CHECK: Keyword: "void" [22:4 - 22:8] ObjCInstanceMethodDecl=method:22:10 (Definition) |
| 227 |
// CHECK: Punctuation: ")" [22:8 - 22:9] ObjCInstanceMethodDecl=method:22:10 (Definition) |
| 228 |
// CHECK: Identifier: "method" [22:10 - 22:16] ObjCInstanceMethodDecl=method:22:10 (Definition) |
| 229 |
// CHECK: Punctuation: "{" [23:1 - 23:2] CompoundStmt= |
| 230 |
// CHECK: Identifier: "barType" [24:5 - 24:12] TypeRef=barType:14:15 |
| 231 |
// CHECK: Identifier: "local" [24:13 - 24:18] VarDecl=local:24:13 (Definition) |
| 232 |
// CHECK: Punctuation: "=" [24:19 - 24:20] VarDecl=local:24:13 (Definition) |
| 233 |
// CHECK: Identifier: "iVar" [24:21 - 24:25] MemberRefExpr=iVar:17:13 |
| 234 |
// CHECK: Punctuation: ";" [24:25 - 24:26] DeclStmt= |
| 235 |
// CHECK: Punctuation: "}" [25:1 - 25:2] CompoundStmt= |
| 236 |
// CHECK: Punctuation: "@" [26:1 - 26:2] ObjCImplementationDecl=Bar:21:17 (Definition) |
| 237 |
// CHECK: Keyword: "end" [26:2 - 26:5] |
| 238 |
// CHECK: Punctuation: "@" [31:1 - 31:2] ObjCInterfaceDecl=IBActionTests:31:12 |
| 239 |
// CHECK: Keyword: "interface" [31:2 - 31:11] ObjCInterfaceDecl=IBActionTests:31:12 |
| 240 |
// CHECK: Identifier: "IBActionTests" [31:12 - 31:25] ObjCInterfaceDecl=IBActionTests:31:12 |
| 241 |
// CHECK: Punctuation: "-" [32:1 - 32:2] ObjCInstanceMethodDecl=actionMethod::32:1 |
| 242 |
// CHECK: Punctuation: "(" [32:3 - 32:4] ObjCInstanceMethodDecl=actionMethod::32:1 |
| 243 |
// CHECK: Identifier: "IBAction" [32:4 - 32:12] macro expansion=IBAction |
| 244 |
// CHECK: Punctuation: ")" [32:12 - 32:13] ObjCInstanceMethodDecl=actionMethod::32:1 |
| 245 |
// CHECK: Identifier: "actionMethod" [32:14 - 32:26] ObjCInstanceMethodDecl=actionMethod::32:1 |
| 246 |
// CHECK: Punctuation: ":" [32:26 - 32:27] ObjCInstanceMethodDecl=actionMethod::32:1 |
| 247 |
// CHECK: Punctuation: "(" [32:27 - 32:28] ObjCInstanceMethodDecl=actionMethod::32:1 |
| 248 |
// CHECK: Keyword: "in" [32:28 - 32:30] ObjCInstanceMethodDecl=actionMethod::32:1 |
| 249 |
// CHECK: Identifier: "id" [32:31 - 32:33] TypeRef=id:0:0 |
| 250 |
// CHECK: Punctuation: ")" [32:33 - 32:34] ParmDecl=arg:32:34 (Definition) |
| 251 |
// CHECK: Identifier: "arg" [32:34 - 32:37] ParmDecl=arg:32:34 (Definition) |
| 252 |
// CHECK: Punctuation: ";" [32:37 - 32:38] ObjCInstanceMethodDecl=actionMethod::32:1 |
| 253 |
// CHECK: Punctuation: "-" [33:1 - 33:2] ObjCInstanceMethodDecl=foo::33:9 |
| 254 |
// CHECK: Punctuation: "(" [33:3 - 33:4] ObjCInstanceMethodDecl=foo::33:9 |
| 255 |
// CHECK: Keyword: "void" [33:4 - 33:8] ObjCInstanceMethodDecl=foo::33:9 |
| 256 |
// CHECK: Punctuation: ")" [33:8 - 33:9] ObjCInstanceMethodDecl=foo::33:9 |
| 257 |
// CHECK: Identifier: "foo" [33:9 - 33:12] ObjCInstanceMethodDecl=foo::33:9 |
| 258 |
// CHECK: Punctuation: ":" [33:12 - 33:13] ObjCInstanceMethodDecl=foo::33:9 |
| 259 |
// CHECK: Punctuation: "(" [33:13 - 33:14] ObjCInstanceMethodDecl=foo::33:9 |
| 260 |
// CHECK: Keyword: "int" [33:14 - 33:17] ParmDecl=x:33:18 (Definition) |
| 261 |
// CHECK: Punctuation: ")" [33:17 - 33:18] ParmDecl=x:33:18 (Definition) |
| 262 |
// CHECK: Identifier: "x" [33:18 - 33:19] ParmDecl=x:33:18 (Definition) |
| 263 |
// CHECK: Punctuation: ";" [33:19 - 33:20] ObjCInstanceMethodDecl=foo::33:9 |
| 264 |
// CHECK: Punctuation: "@" [34:1 - 34:2] ObjCInterfaceDecl=IBActionTests:31:12 |
| 265 |
// CHECK: Keyword: "end" [34:2 - 34:5] ObjCInterfaceDecl=IBActionTests:31:12 |
| 266 |
// CHECK: Keyword: "extern" [35:1 - 35:7] |
| 267 |
// CHECK: Keyword: "int" [35:8 - 35:11] FunctionDecl=ibaction_test:35:12 |
| 268 |
// CHECK: Identifier: "ibaction_test" [35:12 - 35:25] FunctionDecl=ibaction_test:35:12 |
| 269 |
// CHECK: Punctuation: "(" [35:25 - 35:26] FunctionDecl=ibaction_test:35:12 |
| 270 |
// CHECK: Keyword: "void" [35:26 - 35:30] FunctionDecl=ibaction_test:35:12 |
| 271 |
// CHECK: Punctuation: ")" [35:30 - 35:31] FunctionDecl=ibaction_test:35:12 |
| 272 |
// CHECK: Punctuation: ";" [35:31 - 35:32] |
| 273 |
// CHECK: Punctuation: "@" [36:1 - 36:2] ObjCImplementationDecl=IBActionTests:36:17 (Definition) |
| 274 |
// CHECK: Keyword: "implementation" [36:2 - 36:16] ObjCImplementationDecl=IBActionTests:36:17 (Definition) |
| 275 |
// CHECK: Identifier: "IBActionTests" [36:17 - 36:30] ObjCImplementationDecl=IBActionTests:36:17 (Definition) |
| 276 |
// CHECK: Punctuation: "-" [37:1 - 37:2] ObjCInstanceMethodDecl=actionMethod::37:14 (Definition) |
| 277 |
// CHECK: Punctuation: "(" [37:3 - 37:4] ObjCInstanceMethodDecl=actionMethod::37:14 (Definition) |
| 278 |
// CHECK: Identifier: "IBAction" [37:4 - 37:12] macro expansion=IBAction |
| 279 |
// CHECK: Punctuation: ")" [37:12 - 37:13] ObjCInstanceMethodDecl=actionMethod::37:14 (Definition) |
| 280 |
// CHECK: Identifier: "actionMethod" [37:14 - 37:26] ObjCInstanceMethodDecl=actionMethod::37:14 (Definition) |
| 281 |
// CHECK: Punctuation: ":" [37:26 - 37:27] ObjCInstanceMethodDecl=actionMethod::37:14 (Definition) |
| 282 |
// CHECK: Keyword: "in" [37:28 - 37:30] ObjCInstanceMethodDecl=actionMethod::37:14 (Definition) |
| 283 |
// CHECK: Identifier: "id" [37:31 - 37:33] TypeRef=id:0:0 |
| 284 |
// CHECK: Punctuation: ")" [37:33 - 37:34] ParmDecl=arg:37:34 (Definition) |
| 285 |
// CHECK: Identifier: "arg" [37:34 - 37:37] ParmDecl=arg:37:34 (Definition) |
| 286 |
// CHECK: Punctuation: "{" [38:1 - 38:2] CompoundStmt= |
| 287 |
// CHECK: Identifier: "ibaction_test" [39:5 - 39:18] DeclRefExpr=ibaction_test:35:12 |
| 288 |
// CHECK: Punctuation: "(" [39:18 - 39:19] CallExpr=ibaction_test:35:12 |
| 289 |
// CHECK: Punctuation: ")" [39:19 - 39:20] CallExpr=ibaction_test:35:12 |
| 290 |
// CHECK: Punctuation: ";" [39:20 - 39:21] CompoundStmt= |
| 291 |
// CHECK: Punctuation: "[" [40:5 - 40:6] ObjCMessageExpr=foo::33:9 |
| 292 |
// CHECK: Identifier: "self" [40:6 - 40:10] ObjCSelfExpr=self:0:0 |
| 293 |
// CHECK: Identifier: "foo" [40:11 - 40:14] ObjCMessageExpr=foo::33:9 |
| 294 |
// CHECK: Punctuation: ":" [40:14 - 40:15] ObjCMessageExpr=foo::33:9 |
| 295 |
// CHECK: Literal: "0" [40:15 - 40:16] IntegerLiteral= |
| 296 |
// CHECK: Punctuation: "]" [40:16 - 40:17] ObjCMessageExpr=foo::33:9 |
| 297 |
// CHECK: Punctuation: ";" [40:17 - 40:18] CompoundStmt= |
| 298 |
// CHECK: Punctuation: "}" [41:1 - 41:2] CompoundStmt= |
| 299 |
// CHECK: Punctuation: "-" [42:1 - 42:2] ObjCInstanceMethodDecl=foo::42:10 (Definition) |
| 300 |
// CHECK: Punctuation: "(" [42:3 - 42:4] ObjCInstanceMethodDecl=foo::42:10 (Definition) |
| 301 |
// CHECK: Keyword: "void" [42:4 - 42:8] ObjCInstanceMethodDecl=foo::42:10 (Definition) |
| 302 |
// CHECK: Punctuation: ")" [42:8 - 42:9] ObjCInstanceMethodDecl=foo::42:10 (Definition) |
| 303 |
// CHECK: Identifier: "foo" [42:10 - 42:13] ObjCInstanceMethodDecl=foo::42:10 (Definition) |
| 304 |
// CHECK: Punctuation: ":" [42:13 - 42:14] ObjCInstanceMethodDecl=foo::42:10 (Definition) |
| 305 |
// CHECK: Punctuation: "(" [42:14 - 42:15] ObjCInstanceMethodDecl=foo::42:10 (Definition) |
| 306 |
// CHECK: Keyword: "int" [42:15 - 42:18] ParmDecl=x:42:19 (Definition) |
| 307 |
// CHECK: Punctuation: ")" [42:18 - 42:19] ParmDecl=x:42:19 (Definition) |
| 308 |
// CHECK: Identifier: "x" [42:19 - 42:20] ParmDecl=x:42:19 (Definition) |
| 309 |
// CHECK: Punctuation: "{" [43:1 - 43:2] CompoundStmt= |
| 310 |
// CHECK: Punctuation: "(" [44:3 - 44:4] CStyleCastExpr= |
| 311 |
// CHECK: Keyword: "void" [44:4 - 44:8] CStyleCastExpr= |
| 312 |
// CHECK: Punctuation: ")" [44:8 - 44:9] CStyleCastExpr= |
| 313 |
// CHECK: Identifier: "x" [44:10 - 44:11] DeclRefExpr=x:42:19 |
| 314 |
// CHECK: Punctuation: ";" [44:11 - 44:12] CompoundStmt= |
| 315 |
// CHECK: Punctuation: "}" [45:1 - 45:2] CompoundStmt= |
| 316 |
// CHECK: Punctuation: "@" [46:1 - 46:2] ObjCImplementationDecl=IBActionTests:36:17 (Definition) |
| 317 |
// CHECK: Keyword: "end" [46:2 - 46:5] |
| 318 |
// CHECK: Punctuation: "@" [49:1 - 49:2] ObjCInterfaceDecl=IBOutletTests:49:12 |
| 319 |
// CHECK: Keyword: "interface" [49:2 - 49:11] ObjCInterfaceDecl=IBOutletTests:49:12 |
| 320 |
// CHECK: Identifier: "IBOutletTests" [49:12 - 49:25] ObjCInterfaceDecl=IBOutletTests:49:12 |
| 321 |
// CHECK: Punctuation: "{" [50:1 - 50:2] ObjCInterfaceDecl=IBOutletTests:49:12 |
| 322 |
// CHECK: Identifier: "IBOutlet" [51:5 - 51:13] macro expansion=IBOutlet |
| 323 |
// CHECK: Keyword: "char" [51:14 - 51:18] ObjCIvarDecl=anOutlet:51:21 (Definition) |
| 324 |
// CHECK: Punctuation: "*" [51:19 - 51:20] ObjCIvarDecl=anOutlet:51:21 (Definition) |
| 325 |
// CHECK: Identifier: "anOutlet" [51:21 - 51:29] ObjCIvarDecl=anOutlet:51:21 (Definition) |
| 326 |
// CHECK: Punctuation: ";" [51:29 - 51:30] ObjCInterfaceDecl=IBOutletTests:49:12 |
| 327 |
// CHECK: Punctuation: "}" [52:1 - 52:2] ObjCInterfaceDecl=IBOutletTests:49:12 |
| 328 |
// CHECK: Punctuation: "-" [53:1 - 53:2] ObjCInstanceMethodDecl=actionMethod::53:1 |
| 329 |
// CHECK: Punctuation: "(" [53:3 - 53:4] ObjCInstanceMethodDecl=actionMethod::53:1 |
| 330 |
// CHECK: Identifier: "IBAction" [53:4 - 53:12] macro expansion=IBAction |
| 331 |
// CHECK: Punctuation: ")" [53:12 - 53:13] ObjCInstanceMethodDecl=actionMethod::53:1 |
| 332 |
// CHECK: Identifier: "actionMethod" [53:14 - 53:26] ObjCInstanceMethodDecl=actionMethod::53:1 |
| 333 |
// CHECK: Punctuation: ":" [53:26 - 53:27] ObjCInstanceMethodDecl=actionMethod::53:1 |
| 334 |
// CHECK: Punctuation: "(" [53:27 - 53:28] ObjCInstanceMethodDecl=actionMethod::53:1 |
| 335 |
// CHECK: Identifier: "id" [53:28 - 53:30] TypeRef=id:0:0 |
| 336 |
// CHECK: Punctuation: ")" [53:30 - 53:31] ParmDecl=arg:53:31 (Definition) |
| 337 |
// CHECK: Identifier: "arg" [53:31 - 53:34] ParmDecl=arg:53:31 (Definition) |
| 338 |
// CHECK: Punctuation: ";" [53:34 - 53:35] ObjCInstanceMethodDecl=actionMethod::53:1 |
| 339 |
// CHECK: Punctuation: "@" [54:1 - 54:2] ObjCPropertyDecl=aPropOutlet:54:26 |
| 340 |
// CHECK: Keyword: "property" [54:2 - 54:10] ObjCPropertyDecl=aPropOutlet:54:26 |
| 341 |
// CHECK: Identifier: "IBOutlet" [54:11 - 54:19] macro expansion=IBOutlet |
| 342 |
// CHECK: Keyword: "int" [54:20 - 54:23] ObjCPropertyDecl=aPropOutlet:54:26 |
| 343 |
// CHECK: Punctuation: "*" [54:24 - 54:25] ObjCPropertyDecl=aPropOutlet:54:26 |
| 344 |
// CHECK: Identifier: "aPropOutlet" [54:26 - 54:37] ObjCPropertyDecl=aPropOutlet:54:26 |
| 345 |
// CHECK: Punctuation: ";" [54:37 - 54:38] ObjCInterfaceDecl=IBOutletTests:49:12 |
| 346 |
// CHECK: Punctuation: "@" [55:1 - 55:2] ObjCInterfaceDecl=IBOutletTests:49:12 |
| 347 |
// CHECK: Keyword: "end" [55:2 - 55:5] ObjCInterfaceDecl=IBOutletTests:49:12 |
| 348 |
// CHECK: Punctuation: "#" [60:1 - 60:2] preprocessing directive= |
| 349 |
// CHECK: Identifier: "define" [60:2 - 60:8] preprocessing directive= |
| 350 |
// CHECK: Identifier: "VAL" [60:9 - 60:12] macro definition=VAL |
| 351 |
// CHECK: Literal: "0" [60:13 - 60:14] macro definition=VAL |
| 352 |
// CHECK: Punctuation: "@" [62:1 - 62:2] ObjCInterfaceDecl=R7974151:62:12 |
| 353 |
// CHECK: Keyword: "interface" [62:2 - 62:11] ObjCInterfaceDecl=R7974151:62:12 |
| 354 |
// CHECK: Identifier: "R7974151" [62:12 - 62:20] ObjCInterfaceDecl=R7974151:62:12 |
| 355 |
// CHECK: Punctuation: "-" [63:1 - 63:2] ObjCInstanceMethodDecl=foo::63:9 |
| 356 |
// CHECK: Punctuation: "(" [63:3 - 63:4] ObjCInstanceMethodDecl=foo::63:9 |
| 357 |
// CHECK: Keyword: "int" [63:4 - 63:7] ObjCInstanceMethodDecl=foo::63:9 |
| 358 |
// CHECK: Punctuation: ")" [63:7 - 63:8] ObjCInstanceMethodDecl=foo::63:9 |
| 359 |
// CHECK: Identifier: "foo" [63:9 - 63:12] ObjCInstanceMethodDecl=foo::63:9 |
| 360 |
// CHECK: Punctuation: ":" [63:12 - 63:13] ObjCInstanceMethodDecl=foo::63:9 |
| 361 |
// CHECK: Punctuation: "(" [63:13 - 63:14] ObjCInstanceMethodDecl=foo::63:9 |
| 362 |
// CHECK: Keyword: "int" [63:14 - 63:17] ParmDecl=arg:63:18 (Definition) |
| 363 |
// CHECK: Punctuation: ")" [63:17 - 63:18] ParmDecl=arg:63:18 (Definition) |
| 364 |
// CHECK: Identifier: "arg" [63:18 - 63:21] ParmDecl=arg:63:18 (Definition) |
| 365 |
// CHECK: Punctuation: ";" [63:21 - 63:22] ObjCInstanceMethodDecl=foo::63:9 |
| 366 |
// CHECK: Punctuation: "-" [64:1 - 64:2] ObjCInstanceMethodDecl=method:64:9 |
| 367 |
// CHECK: Punctuation: "(" [64:3 - 64:4] ObjCInstanceMethodDecl=method:64:9 |
| 368 |
// CHECK: Keyword: "int" [64:4 - 64:7] ObjCInstanceMethodDecl=method:64:9 |
| 369 |
// CHECK: Punctuation: ")" [64:7 - 64:8] ObjCInstanceMethodDecl=method:64:9 |
| 370 |
// CHECK: Identifier: "method" [64:9 - 64:15] ObjCInstanceMethodDecl=method:64:9 |
| 371 |
// CHECK: Punctuation: ";" [64:15 - 64:16] ObjCInstanceMethodDecl=method:64:9 |
| 372 |
// CHECK: Punctuation: "@" [65:1 - 65:2] ObjCInterfaceDecl=R7974151:62:12 |
| 373 |
// CHECK: Keyword: "end" [65:2 - 65:5] ObjCInterfaceDecl=R7974151:62:12 |
| 374 |
// CHECK: Punctuation: "@" [67:1 - 67:2] ObjCImplementationDecl=R7974151:67:17 (Definition) |
| 375 |
// CHECK: Keyword: "implementation" [67:2 - 67:16] ObjCImplementationDecl=R7974151:67:17 (Definition) |
| 376 |
// CHECK: Identifier: "R7974151" [67:17 - 67:25] ObjCImplementationDecl=R7974151:67:17 (Definition) |
| 377 |
// CHECK: Punctuation: "-" [68:1 - 68:2] ObjCInstanceMethodDecl=foo::68:9 (Definition) |
| 378 |
// CHECK: Punctuation: "(" [68:3 - 68:4] ObjCInstanceMethodDecl=foo::68:9 (Definition) |
| 379 |
// CHECK: Keyword: "int" [68:4 - 68:7] ObjCInstanceMethodDecl=foo::68:9 (Definition) |
| 380 |
// CHECK: Punctuation: ")" [68:7 - 68:8] ObjCInstanceMethodDecl=foo::68:9 (Definition) |
| 381 |
// CHECK: Identifier: "foo" [68:9 - 68:12] ObjCInstanceMethodDecl=foo::68:9 (Definition) |
| 382 |
// CHECK: Punctuation: ":" [68:12 - 68:13] ObjCInstanceMethodDecl=foo::68:9 (Definition) |
| 383 |
// CHECK: Punctuation: "(" [68:13 - 68:14] ObjCInstanceMethodDecl=foo::68:9 (Definition) |
| 384 |
// CHECK: Keyword: "int" [68:14 - 68:17] ParmDecl=arg:68:18 (Definition) |
| 385 |
// CHECK: Punctuation: ")" [68:17 - 68:18] ParmDecl=arg:68:18 (Definition) |
| 386 |
// CHECK: Identifier: "arg" [68:18 - 68:21] ParmDecl=arg:68:18 (Definition) |
| 387 |
// CHECK: Punctuation: "{" [68:22 - 68:23] CompoundStmt= |
| 388 |
// CHECK: Keyword: "return" [69:3 - 69:9] ReturnStmt= |
| 389 |
// CHECK: Identifier: "arg" [69:10 - 69:13] DeclRefExpr=arg:68:18 |
| 390 |
// CHECK: Punctuation: ";" [69:13 - 69:14] CompoundStmt= |
| 391 |
// CHECK: Punctuation: "}" [70:1 - 70:2] CompoundStmt= |
| 392 |
// CHECK: Punctuation: "-" [71:1 - 71:2] ObjCInstanceMethodDecl=method:71:9 (Definition) |
| 393 |
// CHECK: Punctuation: "(" [71:3 - 71:4] ObjCInstanceMethodDecl=method:71:9 (Definition) |
| 394 |
// CHECK: Keyword: "int" [71:4 - 71:7] ObjCInstanceMethodDecl=method:71:9 (Definition) |
| 395 |
// CHECK: Punctuation: ")" [71:7 - 71:8] ObjCInstanceMethodDecl=method:71:9 (Definition) |
| 396 |
// CHECK: Identifier: "method" [71:9 - 71:15] ObjCInstanceMethodDecl=method:71:9 (Definition) |
| 397 |
// CHECK: Punctuation: "{" [72:1 - 72:2] CompoundStmt= |
| 398 |
// CHECK: Keyword: "int" [73:5 - 73:8] VarDecl=local:73:9 (Definition) |
| 399 |
// CHECK: Identifier: "local" [73:9 - 73:14] VarDecl=local:73:9 (Definition) |
| 400 |
// CHECK: Punctuation: "=" [73:15 - 73:16] VarDecl=local:73:9 (Definition) |
| 401 |
// CHECK: Punctuation: "[" [73:17 - 73:18] ObjCMessageExpr=foo::63:9 |
| 402 |
// CHECK: Identifier: "self" [73:18 - 73:22] ObjCSelfExpr=self:0:0 |
| 403 |
// CHECK: Identifier: "foo" [73:23 - 73:26] ObjCMessageExpr=foo::63:9 |
| 404 |
// CHECK: Punctuation: ":" [73:26 - 73:27] ObjCMessageExpr=foo::63:9 |
| 405 |
// CHECK: Identifier: "VAL" [73:27 - 73:30] macro expansion=VAL:60:9 |
| 406 |
// CHECK: Punctuation: "]" [73:30 - 73:31] ObjCMessageExpr=foo::63:9 |
| 407 |
// CHECK: Punctuation: ";" [73:31 - 73:32] DeclStmt= |
| 408 |
// CHECK: Keyword: "int" [74:5 - 74:8] VarDecl=second:74:9 (Definition) |
| 409 |
// CHECK: Identifier: "second" [74:9 - 74:15] VarDecl=second:74:9 (Definition) |
| 410 |
// CHECK: Punctuation: "=" [74:16 - 74:17] VarDecl=second:74:9 (Definition) |
| 411 |
// CHECK: Punctuation: "[" [74:18 - 74:19] ObjCMessageExpr=foo::63:9 |
| 412 |
// CHECK: Identifier: "self" [74:19 - 74:23] ObjCSelfExpr=self:0:0 |
| 413 |
// CHECK: Identifier: "foo" [74:24 - 74:27] ObjCMessageExpr=foo::63:9 |
| 414 |
// CHECK: Punctuation: ":" [74:27 - 74:28] ObjCMessageExpr=foo::63:9 |
| 415 |
// CHECK: Literal: "0" [74:28 - 74:29] IntegerLiteral= |
| 416 |
// CHECK: Punctuation: "]" [74:29 - 74:30] ObjCMessageExpr=foo::63:9 |
| 417 |
// CHECK: Punctuation: ";" [74:30 - 74:31] DeclStmt= |
| 418 |
// CHECK: Keyword: "return" [75:5 - 75:11] ReturnStmt= |
| 419 |
// CHECK: Identifier: "local" [75:12 - 75:17] DeclRefExpr=local:73:9 |
| 420 |
// CHECK: Punctuation: ";" [75:17 - 75:18] CompoundStmt= |
| 421 |
// CHECK: Punctuation: "}" [76:1 - 76:2] CompoundStmt= |
| 422 |
// CHECK: Punctuation: "-" [77:1 - 77:2] ObjCInstanceMethodDecl=othermethod::77:8 (Definition) |
| 423 |
// CHECK: Punctuation: "(" [77:3 - 77:4] ObjCInstanceMethodDecl=othermethod::77:8 (Definition) |
| 424 |
// CHECK: Keyword: "int" [77:4 - 77:7] ObjCInstanceMethodDecl=othermethod::77:8 (Definition) |
| 425 |
// CHECK: Punctuation: ")" [77:7 - 77:8] ObjCInstanceMethodDecl=othermethod::77:8 (Definition) |
| 426 |
// CHECK: Identifier: "othermethod" [77:8 - 77:19] ObjCInstanceMethodDecl=othermethod::77:8 (Definition) |
| 427 |
// CHECK: Punctuation: ":" [77:19 - 77:20] ObjCInstanceMethodDecl=othermethod::77:8 (Definition) |
| 428 |
// CHECK: Punctuation: "(" [77:20 - 77:21] ObjCInstanceMethodDecl=othermethod::77:8 (Definition) |
| 429 |
// CHECK: Identifier: "IBOutletTests" [77:21 - 77:34] ObjCClassRef=IBOutletTests:49:12 |
| 430 |
// CHECK: Punctuation: "*" [77:35 - 77:36] ParmDecl=ibt:77:37 (Definition) |
| 431 |
// CHECK: Punctuation: ")" [77:36 - 77:37] ParmDecl=ibt:77:37 (Definition) |
| 432 |
// CHECK: Identifier: "ibt" [77:37 - 77:40] ParmDecl=ibt:77:37 (Definition) |
| 433 |
// CHECK: Punctuation: "{" [77:41 - 77:42] CompoundStmt= |
| 434 |
// CHECK: Keyword: "return" [78:3 - 78:9] ReturnStmt= |
| 435 |
// CHECK: Punctuation: "*" [78:10 - 78:11] UnaryOperator= |
| 436 |
// CHECK: Identifier: "ibt" [78:11 - 78:14] DeclRefExpr=ibt:77:37 |
| 437 |
// CHECK: Punctuation: "." [78:14 - 78:15] MemberRefExpr=aPropOutlet:54:26 |
| 438 |
// CHECK: Identifier: "aPropOutlet" [78:15 - 78:26] MemberRefExpr=aPropOutlet:54:26 |
| 439 |
// CHECK: Punctuation: ";" [78:26 - 78:27] CompoundStmt= |
| 440 |
// CHECK: Punctuation: "}" [79:1 - 79:2] CompoundStmt= |
| 441 |
// CHECK: Punctuation: "@" [80:1 - 80:2] ObjCImplementationDecl=R7974151:67:17 (Definition) |
| 442 |
// CHECK: Keyword: "end" [80:2 - 80:5] |
| 443 |
// CHECK: Punctuation: "@" [82:1 - 82:2] ObjCProtocolDecl=Proto:82:11 (Definition) |
| 444 |
// CHECK: Keyword: "protocol" [82:2 - 82:10] ObjCProtocolDecl=Proto:82:11 (Definition) |
| 445 |
// CHECK: Identifier: "Proto" [82:11 - 82:16] ObjCProtocolDecl=Proto:82:11 (Definition) |
| 446 |
// CHECK: Punctuation: "@" [82:17 - 82:18] ObjCProtocolDecl=Proto:82:11 (Definition) |
| 447 |
// CHECK: Keyword: "end" [82:18 - 82:21] ObjCProtocolDecl=Proto:82:11 (Definition) |
| 448 |
// CHECK: Keyword: "void" [84:1 - 84:5] FunctionDecl=f:84:6 (Definition) |
| 449 |
// CHECK: Identifier: "f" [84:6 - 84:7] FunctionDecl=f:84:6 (Definition) |
| 450 |
// CHECK: Punctuation: "(" [84:7 - 84:8] FunctionDecl=f:84:6 (Definition) |
| 451 |
// CHECK: Punctuation: ")" [84:8 - 84:9] FunctionDecl=f:84:6 (Definition) |
| 452 |
// CHECK: Punctuation: "{" [84:10 - 84:11] CompoundStmt= |
| 453 |
// CHECK: Punctuation: "(" [85:3 - 85:4] CStyleCastExpr= |
| 454 |
// CHECK: Keyword: "void" [85:4 - 85:8] CStyleCastExpr= |
| 455 |
// CHECK: Punctuation: ")" [85:8 - 85:9] CStyleCastExpr= |
| 456 |
// CHECK: Punctuation: "@" [85:9 - 85:10] ObjCProtocolExpr=Proto:82:1 |
| 457 |
// CHECK: Keyword: "protocol" [85:10 - 85:18] ObjCProtocolExpr=Proto:82:1 |
| 458 |
// CHECK: Punctuation: "(" [85:18 - 85:19] ObjCProtocolExpr=Proto:82:1 |
| 459 |
// CHECK: Identifier: "Proto" [85:19 - 85:24] ObjCProtocolExpr=Proto:82:1 |
| 460 |
// CHECK: Punctuation: ")" [85:24 - 85:25] ObjCProtocolExpr=Proto:82:1 |
| 461 |
// CHECK: Punctuation: ";" [85:25 - 85:26] CompoundStmt= |
| 462 |
// CHECK: Punctuation: "}" [86:1 - 86:2] CompoundStmt= |
| 463 |
// CHECK: Punctuation: "@" [89:1 - 89:2] ObjCInterfaceDecl=Rdar8595462_A:89:8 |
| 464 |
// CHECK: Keyword: "class" [89:2 - 89:7] ObjCInterfaceDecl=Rdar8595462_A:89:8 |
| 465 |
// CHECK: Identifier: "Rdar8595462_A" [89:8 - 89:21] ObjCClassRef=Rdar8595462_A:89:8 |
| 466 |
// CHECK: Punctuation: ";" [89:21 - 89:22] |
| 467 |
// CHECK: Punctuation: "@" [90:1 - 90:2] ObjCInterfaceDecl=Rdar8595462_B:90:12 |
| 468 |
// CHECK: Keyword: "interface" [90:2 - 90:11] ObjCInterfaceDecl=Rdar8595462_B:90:12 |
| 469 |
// CHECK: Identifier: "Rdar8595462_B" [90:12 - 90:25] ObjCInterfaceDecl=Rdar8595462_B:90:12 |
| 470 |
// CHECK: Punctuation: "@" [91:1 - 91:2] ObjCInterfaceDecl=Rdar8595462_B:90:12 |
| 471 |
// CHECK: Keyword: "end" [91:2 - 91:5] ObjCInterfaceDecl=Rdar8595462_B:90:12 |
| 472 |
// CHECK: Punctuation: "@" [93:1 - 93:2] ObjCImplementationDecl=Rdar8595462_B:93:17 (Definition) |
| 473 |
// CHECK: Keyword: "implementation" [93:2 - 93:16] ObjCImplementationDecl=Rdar8595462_B:93:17 (Definition) |
| 474 |
// CHECK: Identifier: "Rdar8595462_B" [93:17 - 93:30] ObjCImplementationDecl=Rdar8595462_B:93:17 (Definition) |
| 475 |
// CHECK: Identifier: "Rdar8595462_A" [94:1 - 94:14] ObjCClassRef=Rdar8595462_A:89:8 |
| 476 |
// CHECK: Punctuation: "*" [94:15 - 94:16] FunctionDecl=Rdar8595462_aFunction:94:17 (Definition) |
| 477 |
// CHECK: Identifier: "Rdar8595462_aFunction" [94:17 - 94:38] FunctionDecl=Rdar8595462_aFunction:94:17 (Definition) |
| 478 |
// CHECK: Punctuation: "(" [94:38 - 94:39] FunctionDecl=Rdar8595462_aFunction:94:17 (Definition) |
| 479 |
// CHECK: Punctuation: ")" [94:39 - 94:40] FunctionDecl=Rdar8595462_aFunction:94:17 (Definition) |
| 480 |
// CHECK: Punctuation: "{" [94:41 - 94:42] CompoundStmt= |
| 481 |
// CHECK: Identifier: "Rdar8595462_A" [95:3 - 95:16] ObjCClassRef=Rdar8595462_A:89:8 |
| 482 |
// CHECK: Punctuation: "*" [95:17 - 95:18] VarDecl=localVar:95:19 (Definition) |
| 483 |
// CHECK: Identifier: "localVar" [95:19 - 95:27] VarDecl=localVar:95:19 (Definition) |
| 484 |
// CHECK: Punctuation: "=" [95:28 - 95:29] VarDecl=localVar:95:19 (Definition) |
| 485 |
// CHECK: Literal: "0" [95:30 - 95:31] IntegerLiteral= |
| 486 |
// CHECK: Punctuation: ";" [95:31 - 95:32] DeclStmt= |
| 487 |
// CHECK: Keyword: "return" [96:3 - 96:9] ReturnStmt= |
| 488 |
// CHECK: Identifier: "localVar" [96:10 - 96:18] DeclRefExpr=localVar:95:19 |
| 489 |
// CHECK: Punctuation: ";" [96:18 - 96:19] CompoundStmt= |
| 490 |
// CHECK: Punctuation: "}" [97:1 - 97:2] CompoundStmt= |
| 491 |
// CHECK: Keyword: "static" [98:1 - 98:7] VarDecl=Rdar8595462_staticVar:98:24 |
| 492 |
// CHECK: Identifier: "Rdar8595462_A" [98:8 - 98:21] ObjCClassRef=Rdar8595462_A:89:8 |
| 493 |
// CHECK: Punctuation: "*" [98:22 - 98:23] VarDecl=Rdar8595462_staticVar:98:24 |
| 494 |
// CHECK: Identifier: "Rdar8595462_staticVar" [98:24 - 98:45] VarDecl=Rdar8595462_staticVar:98:24 |
| 495 |
// CHECK: Punctuation: ";" [98:45 - 98:46] ObjCImplementationDecl=Rdar8595462_B:93:17 (Definition) |
| 496 |
// CHECK: Punctuation: "@" [99:1 - 99:2] ObjCImplementationDecl=Rdar8595462_B:93:17 (Definition) |
| 497 |
// CHECK: Keyword: "end" [99:2 - 99:5] |
| 498 |
|
| 499 |
// CHECK: Punctuation: "@" [106:1 - 106:2] ObjCPropertyDecl=foo:106:33 |
| 500 |
// CHECK: Keyword: "property" [106:2 - 106:10] ObjCPropertyDecl=foo:106:33 |
| 501 |
// CHECK: Punctuation: "(" [106:11 - 106:12] ObjCPropertyDecl=foo:106:33 |
| 502 |
// CHECK: Keyword: "readonly" [106:12 - 106:20] ObjCPropertyDecl=foo:106:33 |
| 503 |
// CHECK: Punctuation: "," [106:20 - 106:21] ObjCPropertyDecl=foo:106:33 |
| 504 |
// CHECK: Keyword: "copy" [106:22 - 106:26] ObjCPropertyDecl=foo:106:33 |
| 505 |
// CHECK: Punctuation: ")" [106:26 - 106:27] ObjCPropertyDecl=foo:106:33 |
| 506 |
// CHECK: Identifier: "Foo" [106:28 - 106:31] ObjCClassRef=Foo:1:12 |
| 507 |
// CHECK: Punctuation: "*" [106:32 - 106:33] ObjCPropertyDecl=foo:106:33 |
| 508 |
// CHECK: Identifier: "foo" [106:33 - 106:36] ObjCPropertyDecl=foo:106:33 |
| 509 |
// CHECK: Keyword: "property" [107:2 - 107:10] ObjCPropertyDecl=foo2:107:27 |
| 510 |
// CHECK: Punctuation: "(" [107:11 - 107:12] ObjCPropertyDecl=foo2:107:27 |
| 511 |
// CHECK: Keyword: "readonly" [107:12 - 107:20] ObjCPropertyDecl=foo2:107:27 |
| 512 |
// CHECK: Punctuation: ")" [107:20 - 107:21] ObjCPropertyDecl=foo2:107:27 |
| 513 |
// CHECK: Identifier: "Foo" [107:22 - 107:25] ObjCClassRef=Foo:1:12 |
| 514 |
// CHECK: Punctuation: "*" [107:26 - 107:27] ObjCPropertyDecl=foo2:107:27 |
| 515 |
// CHECK: Identifier: "foo2" [107:27 - 107:31] ObjCPropertyDecl=foo2:107:27 |
| 516 |
|
| 517 |
// CHECK: Punctuation: "@" [111:1 - 111:2] ObjCSynthesizeDecl=foo:106:33 (Definition) |
| 518 |
// CHECK: Keyword: "synthesize" [111:2 - 111:12] ObjCSynthesizeDecl=foo:106:33 (Definition) |
| 519 |
// CHECK: Identifier: "foo" [111:13 - 111:16] ObjCSynthesizeDecl=foo:106:33 (Definition) |
| 520 |
// CHECK: Punctuation: "=" [111:17 - 111:18] ObjCSynthesizeDecl=foo:106:33 (Definition) |
| 521 |
// CHECK: Identifier: "_foo" [111:19 - 111:23] MemberRef=_foo:103:8 |
| 522 |
// CHECK: Punctuation: ";" [111:23 - 111:24] ObjCImplementationDecl=Rdar8595386:110:17 (Definition) |
| 523 |
|
| 524 |
// RUN: c-index-test -test-annotate-tokens=%s:123:1:126:1 %s -DIBOutlet='__attribute__((iboutlet))' -DIBAction='void)__attribute__((ibaction)' | FileCheck -check-prefix=CHECK-INSIDE_BLOCK %s |
| 525 |
// CHECK-INSIDE_BLOCK: Keyword: "int" [123:5 - 123:8] VarDecl=result:123:9 (Definition) |
| 526 |
// CHECK-INSIDE_BLOCK: Identifier: "result" [123:9 - 123:15] VarDecl=result:123:9 (Definition) |
| 527 |
// CHECK-INSIDE_BLOCK: Punctuation: "=" [123:16 - 123:17] VarDecl=result:123:9 (Definition) |
| 528 |
// CHECK-INSIDE_BLOCK: Punctuation: "[" [123:18 - 123:19] ObjCMessageExpr=blah::120:8 |
| 529 |
// CHECK-INSIDE_BLOCK: Identifier: "self" [123:19 - 123:23] ObjCSelfExpr=self:0:0 |
| 530 |
// CHECK-INSIDE_BLOCK: Identifier: "blah" [123:24 - 123:28] ObjCMessageExpr=blah::120:8 |
| 531 |
// CHECK-INSIDE_BLOCK: Punctuation: ":" [123:28 - 123:29] ObjCMessageExpr=blah::120:8 |
| 532 |
// CHECK-INSIDE_BLOCK: Literal: "5" [123:29 - 123:30] IntegerLiteral= |
| 533 |
// CHECK-INSIDE_BLOCK: Punctuation: "," [123:30 - 123:31] ObjCMessageExpr=blah::120:8 |
| 534 |
// CHECK-INSIDE_BLOCK: Identifier: "x" [123:32 - 123:33] DeclRefExpr=x:121:19 |
| 535 |
// CHECK-INSIDE_BLOCK: Punctuation: "]" [123:33 - 123:34] ObjCMessageExpr=blah::120:8 |
| 536 |
// CHECK-INSIDE_BLOCK: Punctuation: ";" [123:34 - 123:35] DeclStmt= |
| 537 |
// CHECK-INSIDE_BLOCK: Identifier: "Rdar8778404" [124:5 - 124:16] ObjCClassRef=Rdar8778404:116:12 |
| 538 |
// CHECK-INSIDE_BLOCK: Punctuation: "*" [124:17 - 124:18] VarDecl=a:124:18 (Definition) |
| 539 |
// CHECK-INSIDE_BLOCK: Identifier: "a" [124:18 - 124:19] VarDecl=a:124:18 (Definition) |
| 540 |
// CHECK-INSIDE_BLOCK: Punctuation: "=" [124:20 - 124:21] VarDecl=a:124:18 (Definition) |
| 541 |
// CHECK-INSIDE_BLOCK: Identifier: "self" [124:22 - 124:26] ObjCSelfExpr=self:0:0 |
| 542 |
|
| 543 |
// RUN: c-index-test -test-annotate-tokens=%s:130:1:134:1 %s -DIBOutlet='__attribute__((iboutlet))' -DIBAction='void)__attribute__((ibaction)' | FileCheck -check-prefix=CHECK-PROP-AFTER-METHOD %s |
| 544 |
// CHECK-PROP-AFTER-METHOD: Punctuation: "@" [130:1 - 130:2] ObjCInterfaceDecl=Rdar8062781:130:12 |
| 545 |
// CHECK-PROP-AFTER-METHOD: Keyword: "interface" [130:2 - 130:11] ObjCInterfaceDecl=Rdar8062781:130:12 |
| 546 |
// CHECK-PROP-AFTER-METHOD: Identifier: "Rdar8062781" [130:12 - 130:23] ObjCInterfaceDecl=Rdar8062781:130:12 |
| 547 |
// CHECK-PROP-AFTER-METHOD: Punctuation: "+" [131:1 - 131:2] ObjCClassMethodDecl=getB:131:9 |
| 548 |
// CHECK-PROP-AFTER-METHOD: Punctuation: "(" [131:3 - 131:4] ObjCClassMethodDecl=getB:131:9 |
| 549 |
// CHECK-PROP-AFTER-METHOD: Identifier: "Foo" [131:4 - 131:7] ObjCClassRef=Foo:1:12 |
| 550 |
// CHECK-PROP-AFTER-METHOD: Punctuation: "*" [131:7 - 131:8] ObjCClassMethodDecl=getB:131:9 |
| 551 |
// CHECK-PROP-AFTER-METHOD: Punctuation: ")" [131:8 - 131:9] ObjCClassMethodDecl=getB:131:9 |
| 552 |
// CHECK-PROP-AFTER-METHOD: Identifier: "getB" [131:9 - 131:13] ObjCClassMethodDecl=getB:131:9 |
| 553 |
// CHECK-PROP-AFTER-METHOD: Punctuation: ";" [131:13 - 131:14] ObjCClassMethodDecl=getB:131:9 |
| 554 |
// CHECK-PROP-AFTER-METHOD: Punctuation: "@" [132:1 - 132:2] ObjCPropertyDecl=blah:132:38 |
| 555 |
// CHECK-PROP-AFTER-METHOD: Keyword: "property" [132:2 - 132:10] ObjCPropertyDecl=blah:132:38 |
| 556 |
// CHECK-PROP-AFTER-METHOD: Punctuation: "(" [132:11 - 132:12] ObjCPropertyDecl=blah:132:38 |
| 557 |
// CHECK-PROP-AFTER-METHOD: Keyword: "readonly" [132:12 - 132:20] ObjCPropertyDecl=blah:132:38 |
| 558 |
// CHECK-PROP-AFTER-METHOD: Punctuation: "," [132:20 - 132:21] ObjCPropertyDecl=blah:132:38 |
| 559 |
// CHECK-PROP-AFTER-METHOD: Keyword: "nonatomic" [132:22 - 132:31] ObjCPropertyDecl=blah:132:38 |
| 560 |
// CHECK-PROP-AFTER-METHOD: Punctuation: ")" [132:31 - 132:32] ObjCPropertyDecl=blah:132:38 |
| 561 |
// CHECK-PROP-AFTER-METHOD: Identifier: "Foo" [132:33 - 132:36] ObjCClassRef=Foo:1:12 |
| 562 |
// CHECK-PROP-AFTER-METHOD: Punctuation: "*" [132:37 - 132:38] ObjCPropertyDecl=blah:132:38 |
| 563 |
// CHECK-PROP-AFTER-METHOD: Identifier: "blah" [132:38 - 132:42] ObjCPropertyDecl=blah:132:38 |
| 564 |
// CHECK-PROP-AFTER-METHOD: Punctuation: ";" [132:42 - 132:43] ObjCInterfaceDecl=Rdar8062781:130:12 |
| 565 |
// CHECK-PROP-AFTER-METHOD: Punctuation: "@" [133:1 - 133:2] ObjCPropertyDecl=abah:133:35 |
| 566 |
// CHECK-PROP-AFTER-METHOD: Keyword: "property" [133:2 - 133:10] ObjCPropertyDecl=abah:133:35 |
| 567 |
// CHECK-PROP-AFTER-METHOD: Punctuation: "(" [133:11 - 133:12] ObjCPropertyDecl=abah:133:35 |
| 568 |
// CHECK-PROP-AFTER-METHOD: Keyword: "readonly" [133:12 - 133:20] ObjCPropertyDecl=abah:133:35 |
| 569 |
// CHECK-PROP-AFTER-METHOD: Punctuation: "," [133:20 - 133:21] ObjCPropertyDecl=abah:133:35 |
| 570 |
// CHECK-PROP-AFTER-METHOD: Keyword: "atomic" [133:22 - 133:28] ObjCPropertyDecl=abah:133:35 |
| 571 |
// CHECK-PROP-AFTER-METHOD: Punctuation: ")" [133:28 - 133:29] ObjCPropertyDecl=abah:133:35 |
| 572 |
// CHECK-PROP-AFTER-METHOD: Identifier: "Foo" [133:30 - 133:33] ObjCClassRef=Foo:1:12 |
| 573 |
// CHECK-PROP-AFTER-METHOD: Punctuation: "*" [133:34 - 133:35] ObjCPropertyDecl=abah:133:35 |
| 574 |
// CHECK-PROP-AFTER-METHOD: Identifier: "abah" [133:35 - 133:39] ObjCPropertyDecl=abah:133:35 |
| 575 |
// CHECK-PROP-AFTER-METHOD: Punctuation: ";" [133:39 - 133:40] ObjCInterfaceDecl=Rdar8062781:130:12 |
| 576 |
// CHECK-PROP-AFTER-METHOD: Punctuation: "@" [134:1 - 134:2] ObjCInterfaceDecl=Rdar8062781:130:12 |
| 577 |
|
| 578 |
// RUN: c-index-test -test-annotate-tokens=%s:137:1:138:1 %s -DIBOutlet='__attribute__((iboutlet))' -DIBAction='void)__attribute__((ibaction)' -target x86_64-apple-macosx10.7.0 | FileCheck -check-prefix=CHECK-WITH-WEAK %s |
| 579 |
// CHECK-WITH-WEAK: Identifier: "__weak" [137:3 - 137:9] macro expansion |
| 580 |
// CHECK-WITH-WEAK: Identifier: "Foo" [137:10 - 137:13] ObjCClassRef=Foo:1:12 |
| 581 |
// CHECK-WITH-WEAK: Punctuation: "*" [137:14 - 137:15] ObjCIvarDecl=foo:137:15 (Definition) |
| 582 |
// CHECK-WITH-WEAK: Identifier: "foo" [137:15 - 137:18] ObjCIvarDecl=foo:137:15 (Definition) |
| 583 |
// CHECK-WITH-WEAK: Punctuation: ";" [137:18 - 137:19] ObjCInterfaceDecl=rdar9535717:136:12 |
| 584 |
// CHECK-WITH-WEAK: Punctuation: "}" [138:1 - 138:2] ObjCInterfaceDecl=rdar9535717:136:12 |
| 585 |
|
| 586 |
// RUN: c-index-test -test-annotate-tokens=%s:141:1:149:1 %s -DIBOutlet='__attribute__((iboutlet))' -DIBAction='void)__attribute__((ibaction)' -target x86_64-apple-macosx10.7.0 | FileCheck -check-prefix=CHECK-PROP %s |
| 587 |
// CHECK-PROP: Keyword: "property" [142:4 - 142:12] ObjCPropertyDecl=classProperty:142:17 |
| 588 |
// CHECK-PROP: Keyword: "int" [142:13 - 142:16] ObjCPropertyDecl=classProperty:142:17 |
| 589 |
// CHECK-PROP: Identifier: "classProperty" [142:17 - 142:30] ObjCPropertyDecl=classProperty:142:17 |
| 590 |
// CHECK-PROP: Keyword: "property" [145:4 - 145:12] ObjCPropertyDecl=categoryProperty:145:17 |
| 591 |
// CHECK-PROP: Keyword: "int" [145:13 - 145:16] ObjCPropertyDecl=categoryProperty:145:17 |
| 592 |
// CHECK-PROP: Identifier: "categoryProperty" [145:17 - 145:33] ObjCPropertyDecl=categoryProperty:145:17 |
| 593 |
// CHECK-PROP: Keyword: "property" [148:4 - 148:12] ObjCPropertyDecl=extensionProperty:148:17 |
| 594 |
// CHECK-PROP: Keyword: "int" [148:13 - 148:16] ObjCPropertyDecl=extensionProperty:148:17 |
| 595 |
// CHECK-PROP: Identifier: "extensionProperty" [148:17 - 148:34] ObjCPropertyDecl=extensionProperty:148:17 |
| 596 |
|
| 597 |
// RUN: c-index-test -test-annotate-tokens=%s:151:1:152:1 %s -DIBOutlet='__attribute__((iboutlet))' -DIBAction='void)__attribute__((ibaction)' -target x86_64-apple-macosx10.7.0 | FileCheck -check-prefix=CHECK-ID-PROTO %s |
| 598 |
// CHECK-ID-PROTO: Identifier: "id" [151:9 - 151:11] TypeRef=id:0:0 |
| 599 |
// CHECK-ID-PROTO: Punctuation: "<" [151:11 - 151:12] TypedefDecl=proto_ptr:151:20 (Definition) |
| 600 |
// CHECK-ID-PROTO: Identifier: "Proto" [151:12 - 151:17] ObjCProtocolRef=Proto |
| 601 |
// CHECK-ID-PROTO: Punctuation: ">" [151:17 - 151:18] TypedefDecl=proto_ptr:151:20 (Definition) |