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