2011-11-02 03:47:41 +08:00
|
|
|
|
2010-04-21 07:15:40 +08:00
|
|
|
|
2010-04-30 01:43:29 +08:00
|
|
|
static inline int my_helper(int x, int y) { return x + y; }
|
|
|
|
|
2010-04-21 07:15:40 +08:00
|
|
|
enum {
|
|
|
|
ABA,
|
|
|
|
CADABA
|
|
|
|
};
|
|
|
|
|
|
|
|
enum {
|
|
|
|
FOO,
|
|
|
|
BAR
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int wa;
|
|
|
|
int moo;
|
|
|
|
} MyStruct;
|
|
|
|
|
|
|
|
enum Pizza {
|
|
|
|
CHEESE,
|
|
|
|
MUSHROOMS
|
|
|
|
};
|
|
|
|
|
|
|
|
@interface Foo {
|
|
|
|
id x;
|
|
|
|
id y;
|
|
|
|
}
|
|
|
|
- (id) godzilla;
|
|
|
|
+ (id) kingkong;
|
|
|
|
@property int d1;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation Foo
|
|
|
|
- (id) godzilla {
|
|
|
|
static int a = 0;
|
|
|
|
extern int z;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
+ (id) kingkong {
|
2010-04-30 01:43:29 +08:00
|
|
|
int local_var;
|
2010-04-21 07:15:40 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
@synthesize d1;
|
|
|
|
@end
|
|
|
|
|
|
|
|
int z;
|
|
|
|
|
2010-04-30 01:43:29 +08:00
|
|
|
static int local_func(int x) { return x; }
|
|
|
|
|
2010-06-24 02:10:30 +08:00
|
|
|
@interface CWithExt
|
2010-08-25 07:13:41 +08:00
|
|
|
- (id) meth1;
|
2010-06-24 02:10:30 +08:00
|
|
|
@end
|
|
|
|
@interface CWithExt ()
|
2010-08-25 07:13:41 +08:00
|
|
|
- (id) meth2;
|
2010-06-24 02:10:30 +08:00
|
|
|
@end
|
|
|
|
@interface CWithExt ()
|
2010-08-25 07:13:41 +08:00
|
|
|
- (id) meth3;
|
|
|
|
@end
|
|
|
|
@interface CWithExt (Bar)
|
|
|
|
- (id) meth4;
|
2010-06-24 02:10:30 +08:00
|
|
|
@end
|
|
|
|
@implementation CWithExt
|
2010-08-25 07:13:41 +08:00
|
|
|
- (id) meth1 { return 0; }
|
|
|
|
- (id) meth2 { return 0; }
|
|
|
|
- (id) meth3 { return 0; }
|
|
|
|
@end
|
|
|
|
@implementation CWithExt (Bar)
|
|
|
|
- (id) meth4 { return 0; }
|
2010-06-24 02:10:30 +08:00
|
|
|
@end
|
|
|
|
|
2010-11-02 07:26:51 +08:00
|
|
|
void aux_1(int, int, int);
|
|
|
|
int test_multi_declaration(void) {
|
|
|
|
int foo = 1, bar = 2, baz = 3;
|
|
|
|
aux_1(foo, bar, baz);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2011-02-05 09:10:26 +08:00
|
|
|
@protocol P1
|
|
|
|
- (void)method;
|
|
|
|
@end
|
|
|
|
|
2011-11-02 01:14:12 +08:00
|
|
|
@interface CWithExt2
|
|
|
|
@end
|
|
|
|
@interface CWithExt2 () {
|
|
|
|
id var_ext;
|
|
|
|
}
|
|
|
|
@property (assign) id pro_ext;
|
2013-04-17 09:56:48 +08:00
|
|
|
-(int)methodWithFn:(void (*)(int *p))fn;
|
2011-11-02 01:14:12 +08:00
|
|
|
@end
|
|
|
|
|
2012-01-21 06:01:23 +08:00
|
|
|
// RUN: c-index-test -test-load-source-usrs all -target x86_64-apple-macosx10.7 %s | FileCheck %s
|
2011-03-08 16:55:46 +08:00
|
|
|
// CHECK: usrs.m c:usrs.m@67@F@my_helper Extent=[3:1 - 3:60]
|
2010-07-22 19:14:15 +08:00
|
|
|
// CHECK: usrs.m c:usrs.m@95@F@my_helper@x Extent=[3:29 - 3:34]
|
|
|
|
// CHECK: usrs.m c:usrs.m@102@F@my_helper@y Extent=[3:36 - 3:41]
|
|
|
|
// CHECK: usrs.m c:usrs.m@128@Ea Extent=[5:1 - 8:2]
|
|
|
|
// CHECK: usrs.m c:usrs.m@128@Ea@ABA Extent=[6:3 - 6:6]
|
|
|
|
// CHECK: usrs.m c:usrs.m@128@Ea@CADABA Extent=[7:3 - 7:9]
|
|
|
|
// CHECK: usrs.m c:usrs.m@155@Ea Extent=[10:1 - 13:2]
|
|
|
|
// CHECK: usrs.m c:usrs.m@155@Ea@FOO Extent=[11:3 - 11:6]
|
|
|
|
// CHECK: usrs.m c:usrs.m@155@Ea@BAR Extent=[12:3 - 12:6]
|
2010-04-30 01:43:29 +08:00
|
|
|
// CHECK: usrs.m c:@SA@MyStruct Extent=[15:9 - 18:2]
|
2011-03-08 16:55:46 +08:00
|
|
|
// CHECK: usrs.m c:@SA@MyStruct@FI@wa Extent=[16:3 - 16:9]
|
|
|
|
// CHECK: usrs.m c:@SA@MyStruct@FI@moo Extent=[17:3 - 17:10]
|
2011-03-06 23:48:19 +08:00
|
|
|
// CHECK: usrs.m c:usrs.m@179@T@MyStruct Extent=[15:1 - 18:11]
|
2010-04-30 01:43:29 +08:00
|
|
|
// CHECK: usrs.m c:@E@Pizza Extent=[20:1 - 23:2]
|
|
|
|
// CHECK: usrs.m c:@E@Pizza@CHEESE Extent=[21:3 - 21:9]
|
|
|
|
// CHECK: usrs.m c:@E@Pizza@MUSHROOMS Extent=[22:3 - 22:12]
|
|
|
|
// CHECK: usrs.m c:objc(cs)Foo Extent=[25:1 - 32:5]
|
2011-03-08 16:55:46 +08:00
|
|
|
// CHECK: usrs.m c:objc(cs)Foo@x Extent=[26:3 - 26:7]
|
|
|
|
// CHECK: usrs.m c:objc(cs)Foo@y Extent=[27:3 - 27:7]
|
2010-04-30 01:43:29 +08:00
|
|
|
// CHECK: usrs.m c:objc(cs)Foo(im)godzilla Extent=[29:1 - 29:17]
|
|
|
|
// CHECK: usrs.m c:objc(cs)Foo(cm)kingkong Extent=[30:1 - 30:17]
|
Fix a major inconsistency in the representation of Objective-C
classes, categories, protocols, and class extensions, where the
methods and properties of these entities would be inserted into the
DeclContext in an ordering that doesn't necessarily reflect source
order. The culprits were Sema::ActOnMethodDeclaration(), which did not
perform the insertion of the just-created method declaration into
the DeclContext for these Objective-C entities, and
Sema::ActOnAtEnd(), which inserted all method declarations at the
*end* of the DeclContext.
With this fix in hand, clean up the code-completion actions for
property setters/getters that worked around this brokenness in the AST.
Fixes <rdar://problem/8062781>, where this problem manifested as poor
token-annotation information, but this would have struck again in many
other places.
llvm-svn: 122347
2010-12-22 01:34:17 +08:00
|
|
|
// CHECK: usrs.m c:objc(cs)Foo(py)d1 Extent=[31:1 - 31:17]
|
2011-09-27 03:05:37 +08:00
|
|
|
// CHECK: usrs.m c:objc(cs)Foo(im)d1 Extent=[31:15 - 31:17]
|
|
|
|
// CHECK: usrs.m c:objc(cs)Foo(im)setD1: Extent=[31:15 - 31:17]
|
|
|
|
// CHECK: usrs.m c:usrs.m@352objc(cs)Foo(im)setD1:@d1 Extent=[31:15 - 31:17]
|
2010-04-30 01:43:29 +08:00
|
|
|
// CHECK: usrs.m c:objc(cs)Foo Extent=[34:1 - 45:2]
|
|
|
|
// CHECK: usrs.m c:objc(cs)Foo(im)godzilla Extent=[35:1 - 39:2]
|
2011-03-08 16:55:46 +08:00
|
|
|
// CHECK: usrs.m c:usrs.m@402objc(cs)Foo(im)godzilla@a Extent=[36:3 - 36:19]
|
2013-09-20 09:15:31 +08:00
|
|
|
// CHECK: usrs.m c:@z Extent=[37:3 - 37:15]
|
2010-04-30 01:43:29 +08:00
|
|
|
// CHECK: usrs.m c:objc(cs)Foo(cm)kingkong Extent=[40:1 - 43:2]
|
2010-07-22 19:14:15 +08:00
|
|
|
// CHECK: usrs.m c:usrs.m@470objc(cs)Foo(cm)kingkong@local_var Extent=[41:3 - 41:16]
|
2010-04-30 01:43:29 +08:00
|
|
|
// CHECK: usrs.m c:objc(cs)Foo(py)d1 Extent=[44:1 - 44:15]
|
|
|
|
// CHECK: usrs.m c:@z Extent=[47:1 - 47:6]
|
2011-03-08 16:55:46 +08:00
|
|
|
// CHECK: usrs.m c:usrs.m@529@F@local_func Extent=[49:1 - 49:43]
|
2010-07-22 19:14:15 +08:00
|
|
|
// CHECK: usrs.m c:usrs.m@551@F@local_func@x Extent=[49:23 - 49:28]
|
2010-08-25 07:13:41 +08:00
|
|
|
// CHECK: usrs.m c:objc(cs)CWithExt Extent=[51:1 - 53:5]
|
|
|
|
// CHECK: usrs.m c:objc(cs)CWithExt(im)meth1 Extent=[52:1 - 52:14]
|
2011-11-02 01:14:12 +08:00
|
|
|
// CHECK: usrs.m c:objc(ext)CWithExt@usrs.m@612 Extent=[54:1 - 56:5]
|
2010-08-25 07:13:41 +08:00
|
|
|
// CHECK: usrs.m c:objc(cs)CWithExt(im)meth2 Extent=[55:1 - 55:14]
|
2011-11-02 01:14:12 +08:00
|
|
|
// CHECK: usrs.m c:objc(ext)CWithExt@usrs.m@654 Extent=[57:1 - 59:5]
|
2010-08-25 07:13:41 +08:00
|
|
|
// CHECK: usrs.m c:objc(cs)CWithExt(im)meth3 Extent=[58:1 - 58:14]
|
|
|
|
// CHECK: usrs.m c:objc(cy)CWithExt@Bar Extent=[60:1 - 62:5]
|
2011-02-04 15:13:40 +08:00
|
|
|
// CHECK: usrs.m c:objc(cs)CWithExt(im)meth4 Extent=[61:1 - 61:14]
|
2010-08-25 07:13:41 +08:00
|
|
|
// CHECK: usrs.m c:objc(cs)CWithExt Extent=[63:1 - 67:2]
|
|
|
|
// CHECK: usrs.m c:objc(cs)CWithExt(im)meth1 Extent=[64:1 - 64:27]
|
|
|
|
// CHECK: usrs.m c:objc(cs)CWithExt(im)meth2 Extent=[65:1 - 65:27]
|
|
|
|
// CHECK: usrs.m c:objc(cs)CWithExt(im)meth3 Extent=[66:1 - 66:27]
|
|
|
|
// CHECK: usrs.m c:objc(cy)CWithExt@Bar Extent=[68:1 - 70:2]
|
2011-02-04 15:13:40 +08:00
|
|
|
// CHECK: usrs.m c:objc(cs)CWithExt(im)meth4 Extent=[69:1 - 69:27]
|
2011-03-08 16:55:46 +08:00
|
|
|
// CHECK: usrs.m c:@F@aux_1 Extent=[72:1 - 72:26]
|
|
|
|
// CHECK: usrs.m c:@F@test_multi_declaration Extent=[73:1 - 77:2]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK: usrs.m c:usrs.m@980@F@test_multi_declaration@foo Extent=[74:3 - 74:14]
|
|
|
|
// CHECK: usrs.m c:usrs.m@980@F@test_multi_declaration@bar Extent=[74:16 - 74:23]
|
|
|
|
// CHECK: usrs.m c:usrs.m@980@F@test_multi_declaration@baz Extent=[74:25 - 74:32]
|
2011-02-05 09:10:26 +08:00
|
|
|
// CHECK: usrs.m c:objc(pl)P1 Extent=[79:1 - 81:5]
|
|
|
|
// CHECK: usrs.m c:objc(pl)P1(im)method Extent=[80:1 - 80:16]
|
2011-11-02 01:14:12 +08:00
|
|
|
// CHECK: usrs.m c:objc(cs)CWithExt2 Extent=[83:1 - 84:5]
|
2013-04-17 09:56:48 +08:00
|
|
|
// CHECK: usrs.m c:objc(ext)CWithExt2@usrs.m@1111 Extent=[85:1 - 90:5]
|
2011-11-02 01:14:12 +08:00
|
|
|
// CHECK: usrs.m c:objc(cs)CWithExt2@var_ext Extent=[86:3 - 86:13]
|
|
|
|
// CHECK: usrs.m c:objc(cs)CWithExt2(py)pro_ext Extent=[88:1 - 88:30]
|
|
|
|
// CHECK: usrs.m c:objc(cs)CWithExt2(im)pro_ext Extent=[88:23 - 88:30]
|
|
|
|
// CHECK: usrs.m c:objc(cs)CWithExt2(im)setPro_ext: Extent=[88:23 - 88:30]
|
2010-11-02 07:26:51 +08:00
|
|
|
|
|
|
|
// RUN: c-index-test -test-load-source all %s | FileCheck -check-prefix=CHECK-source %s
|
2011-03-08 16:55:46 +08:00
|
|
|
// CHECK-source: usrs.m:3:19: FunctionDecl=my_helper:3:19 (Definition) Extent=[3:1 - 3:60]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:3:33: ParmDecl=x:3:33 (Definition) Extent=[3:29 - 3:34]
|
|
|
|
// CHECK-source: usrs.m:3:40: ParmDecl=y:3:40 (Definition) Extent=[3:36 - 3:41]
|
2011-10-06 03:00:14 +08:00
|
|
|
// CHECK-source: usrs.m:3:43: CompoundStmt= Extent=[3:43 - 3:60]
|
|
|
|
// CHECK-source: usrs.m:3:45: ReturnStmt= Extent=[3:45 - 3:57]
|
|
|
|
// CHECK-source: usrs.m:3:52: BinaryOperator= Extent=[3:52 - 3:57]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:3:52: DeclRefExpr=x:3:33 Extent=[3:52 - 3:53]
|
|
|
|
// CHECK-source: usrs.m:3:56: DeclRefExpr=y:3:40 Extent=[3:56 - 3:57]
|
|
|
|
// CHECK-source: usrs.m:5:1: EnumDecl=:5:1 (Definition) Extent=[5:1 - 8:2]
|
|
|
|
// CHECK-source: usrs.m:6:3: EnumConstantDecl=ABA:6:3 (Definition) Extent=[6:3 - 6:6]
|
|
|
|
// CHECK-source: usrs.m:7:3: EnumConstantDecl=CADABA:7:3 (Definition) Extent=[7:3 - 7:9]
|
|
|
|
// CHECK-source: usrs.m:10:1: EnumDecl=:10:1 (Definition) Extent=[10:1 - 13:2]
|
|
|
|
// CHECK-source: usrs.m:11:3: EnumConstantDecl=FOO:11:3 (Definition) Extent=[11:3 - 11:6]
|
|
|
|
// CHECK-source: usrs.m:12:3: EnumConstantDecl=BAR:12:3 (Definition) Extent=[12:3 - 12:6]
|
2011-08-26 06:24:47 +08:00
|
|
|
// CHECK-source: usrs.m:18:3: TypedefDecl=MyStruct:18:3 (Definition) Extent=[15:1 - 18:11]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:15:9: StructDecl=:15:9 (Definition) Extent=[15:9 - 18:2]
|
2011-03-08 16:55:46 +08:00
|
|
|
// CHECK-source: usrs.m:16:7: FieldDecl=wa:16:7 (Definition) Extent=[16:3 - 16:9]
|
|
|
|
// CHECK-source: usrs.m:17:7: FieldDecl=moo:17:7 (Definition) Extent=[17:3 - 17:10]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:20:6: EnumDecl=Pizza:20:6 (Definition) Extent=[20:1 - 23:2]
|
|
|
|
// CHECK-source: usrs.m:21:3: EnumConstantDecl=CHEESE:21:3 (Definition) Extent=[21:3 - 21:9]
|
|
|
|
// CHECK-source: usrs.m:22:3: EnumConstantDecl=MUSHROOMS:22:3 (Definition) Extent=[22:3 - 22:12]
|
|
|
|
// CHECK-source: usrs.m:25:12: ObjCInterfaceDecl=Foo:25:12 Extent=[25:1 - 32:5]
|
2011-03-08 16:55:46 +08:00
|
|
|
// CHECK-source: usrs.m:26:6: ObjCIvarDecl=x:26:6 (Definition) Extent=[26:3 - 26:7]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:26:3: TypeRef=id:0:0 Extent=[26:3 - 26:5]
|
2011-03-08 16:55:46 +08:00
|
|
|
// CHECK-source: usrs.m:27:6: ObjCIvarDecl=y:27:6 (Definition) Extent=[27:3 - 27:7]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:27:3: TypeRef=id:0:0 Extent=[27:3 - 27:5]
|
2012-03-23 11:33:19 +08:00
|
|
|
// CHECK-source: usrs.m:29:8: ObjCInstanceMethodDecl=godzilla:29:8 Extent=[29:1 - 29:17]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:29:4: TypeRef=id:0:0 Extent=[29:4 - 29:6]
|
2012-03-23 11:33:19 +08:00
|
|
|
// CHECK-source: usrs.m:30:8: ObjCClassMethodDecl=kingkong:30:8 Extent=[30:1 - 30:17]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:30:4: TypeRef=id:0:0 Extent=[30:4 - 30:6]
|
Fix a major inconsistency in the representation of Objective-C
classes, categories, protocols, and class extensions, where the
methods and properties of these entities would be inserted into the
DeclContext in an ordering that doesn't necessarily reflect source
order. The culprits were Sema::ActOnMethodDeclaration(), which did not
perform the insertion of the just-created method declaration into
the DeclContext for these Objective-C entities, and
Sema::ActOnAtEnd(), which inserted all method declarations at the
*end* of the DeclContext.
With this fix in hand, clean up the code-completion actions for
property setters/getters that worked around this brokenness in the AST.
Fixes <rdar://problem/8062781>, where this problem manifested as poor
token-annotation information, but this would have struck again in many
other places.
llvm-svn: 122347
2010-12-22 01:34:17 +08:00
|
|
|
// CHECK-source: usrs.m:31:15: ObjCPropertyDecl=d1:31:15 Extent=[31:1 - 31:17]
|
2011-09-27 03:05:37 +08:00
|
|
|
// CHECK-source: usrs.m:31:15: ObjCInstanceMethodDecl=d1:31:15 Extent=[31:15 - 31:17]
|
|
|
|
// CHECK-source: usrs.m:31:15: ObjCInstanceMethodDecl=setD1::31:15 Extent=[31:15 - 31:17]
|
|
|
|
// CHECK-source: usrs.m:31:15: ParmDecl=d1:31:15 (Definition) Extent=[31:15 - 31:17]
|
2011-10-04 12:48:02 +08:00
|
|
|
// CHECK-source: usrs.m:34:17: ObjCImplementationDecl=Foo:34:17 (Definition) Extent=[34:1 - 45:2]
|
2012-03-23 11:33:19 +08:00
|
|
|
// CHECK-source: usrs.m:35:8: ObjCInstanceMethodDecl=godzilla:35:8 (Definition) Extent=[35:1 - 39:2]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:35:4: TypeRef=id:0:0 Extent=[35:4 - 35:6]
|
2011-10-06 03:00:14 +08:00
|
|
|
// CHECK-source: usrs.m:35:17: CompoundStmt= Extent=[35:17 - 39:2]
|
|
|
|
// CHECK-source: usrs.m:36:3: DeclStmt= Extent=[36:3 - 36:20]
|
2011-03-08 16:55:46 +08:00
|
|
|
// CHECK-source: usrs.m:36:14: VarDecl=a:36:14 (Definition) Extent=[36:3 - 36:19]
|
2011-10-06 03:00:14 +08:00
|
|
|
// CHECK-source: usrs.m:36:18: IntegerLiteral= Extent=[36:18 - 36:19]
|
|
|
|
// CHECK-source: usrs.m:37:3: DeclStmt= Extent=[37:3 - 37:16]
|
2011-03-08 16:55:46 +08:00
|
|
|
// CHECK-source: usrs.m:37:14: VarDecl=z:37:14 Extent=[37:3 - 37:15]
|
2011-10-06 03:00:14 +08:00
|
|
|
// CHECK-source: usrs.m:38:3: ReturnStmt= Extent=[38:3 - 38:11]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:38:10: UnexposedExpr= Extent=[38:10 - 38:11]
|
2011-10-06 03:00:14 +08:00
|
|
|
// CHECK-source: usrs.m:38:10: IntegerLiteral= Extent=[38:10 - 38:11]
|
2012-03-23 11:33:19 +08:00
|
|
|
// CHECK-source: usrs.m:40:8: ObjCClassMethodDecl=kingkong:40:8 (Definition) Extent=[40:1 - 43:2]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:40:4: TypeRef=id:0:0 Extent=[40:4 - 40:6]
|
2011-10-06 03:00:14 +08:00
|
|
|
// CHECK-source: usrs.m:40:17: CompoundStmt= Extent=[40:17 - 43:2]
|
|
|
|
// CHECK-source: usrs.m:41:3: DeclStmt= Extent=[41:3 - 41:17]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:41:7: VarDecl=local_var:41:7 (Definition) Extent=[41:3 - 41:16]
|
2011-10-06 03:00:14 +08:00
|
|
|
// CHECK-source: usrs.m:42:3: ReturnStmt= Extent=[42:3 - 42:11]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:42:10: UnexposedExpr= Extent=[42:10 - 42:11]
|
2011-10-06 03:00:14 +08:00
|
|
|
// CHECK-source: usrs.m:42:10: IntegerLiteral= Extent=[42:10 - 42:11]
|
2011-06-04 07:08:58 +08:00
|
|
|
// CHECK-source: usrs.m:44:13: ObjCSynthesizeDecl=d1:31:15 (Definition) Extent=[44:1 - 44:15]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:47:5: VarDecl=z:47:5 Extent=[47:1 - 47:6]
|
2011-03-08 16:55:46 +08:00
|
|
|
// CHECK-source: usrs.m:49:12: FunctionDecl=local_func:49:12 (Definition) Extent=[49:1 - 49:43]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:49:27: ParmDecl=x:49:27 (Definition) Extent=[49:23 - 49:28]
|
2011-10-06 03:00:14 +08:00
|
|
|
// CHECK-source: usrs.m:49:30: CompoundStmt= Extent=[49:30 - 49:43]
|
|
|
|
// CHECK-source: usrs.m:49:32: ReturnStmt= Extent=[49:32 - 49:40]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:49:39: DeclRefExpr=x:49:27 Extent=[49:39 - 49:40]
|
|
|
|
// CHECK-source: usrs.m:51:12: ObjCInterfaceDecl=CWithExt:51:12 Extent=[51:1 - 53:5]
|
2012-03-23 11:33:19 +08:00
|
|
|
// CHECK-source: usrs.m:52:8: ObjCInstanceMethodDecl=meth1:52:8 Extent=[52:1 - 52:14]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:52:4: TypeRef=id:0:0 Extent=[52:4 - 52:6]
|
|
|
|
// CHECK-source: usrs.m:54:12: ObjCCategoryDecl=:54:12 Extent=[54:1 - 56:5]
|
|
|
|
// CHECK-source: usrs.m:54:12: ObjCClassRef=CWithExt:51:12 Extent=[54:12 - 54:20]
|
2012-03-23 11:33:19 +08:00
|
|
|
// CHECK-source: usrs.m:55:8: ObjCInstanceMethodDecl=meth2:55:8 Extent=[55:1 - 55:14]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:55:4: TypeRef=id:0:0 Extent=[55:4 - 55:6]
|
|
|
|
// CHECK-source: usrs.m:57:12: ObjCCategoryDecl=:57:12 Extent=[57:1 - 59:5]
|
|
|
|
// CHECK-source: usrs.m:57:12: ObjCClassRef=CWithExt:51:12 Extent=[57:12 - 57:20]
|
2012-03-23 11:33:19 +08:00
|
|
|
// CHECK-source: usrs.m:58:8: ObjCInstanceMethodDecl=meth3:58:8 Extent=[58:1 - 58:14]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:58:4: TypeRef=id:0:0 Extent=[58:4 - 58:6]
|
|
|
|
// CHECK-source: usrs.m:60:12: ObjCCategoryDecl=Bar:60:12 Extent=[60:1 - 62:5]
|
|
|
|
// CHECK-source: usrs.m:60:12: ObjCClassRef=CWithExt:51:12 Extent=[60:12 - 60:20]
|
2012-03-23 11:33:19 +08:00
|
|
|
// CHECK-source: usrs.m:61:8: ObjCInstanceMethodDecl=meth4:61:8 Extent=[61:1 - 61:14]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:61:4: TypeRef=id:0:0 Extent=[61:4 - 61:6]
|
2011-10-04 12:48:02 +08:00
|
|
|
// CHECK-source: usrs.m:63:17: ObjCImplementationDecl=CWithExt:63:17 (Definition) Extent=[63:1 - 67:2]
|
2012-03-23 11:33:19 +08:00
|
|
|
// CHECK-source: usrs.m:64:8: ObjCInstanceMethodDecl=meth1:64:8 (Definition) Extent=[64:1 - 64:27]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:64:4: TypeRef=id:0:0 Extent=[64:4 - 64:6]
|
2011-10-06 03:00:14 +08:00
|
|
|
// CHECK-source: usrs.m:64:14: CompoundStmt= Extent=[64:14 - 64:27]
|
|
|
|
// CHECK-source: usrs.m:64:16: ReturnStmt= Extent=[64:16 - 64:24]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:64:23: UnexposedExpr= Extent=[64:23 - 64:24]
|
2011-10-06 03:00:14 +08:00
|
|
|
// CHECK-source: usrs.m:64:23: IntegerLiteral= Extent=[64:23 - 64:24]
|
2012-03-23 11:33:19 +08:00
|
|
|
// CHECK-source: usrs.m:65:8: ObjCInstanceMethodDecl=meth2:65:8 (Definition) Extent=[65:1 - 65:27]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:65:4: TypeRef=id:0:0 Extent=[65:4 - 65:6]
|
2011-10-06 03:00:14 +08:00
|
|
|
// CHECK-source: usrs.m:65:14: CompoundStmt= Extent=[65:14 - 65:27]
|
|
|
|
// CHECK-source: usrs.m:65:16: ReturnStmt= Extent=[65:16 - 65:24]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:65:23: UnexposedExpr= Extent=[65:23 - 65:24]
|
2011-10-06 03:00:14 +08:00
|
|
|
// CHECK-source: usrs.m:65:23: IntegerLiteral= Extent=[65:23 - 65:24]
|
2012-03-23 11:33:19 +08:00
|
|
|
// CHECK-source: usrs.m:66:8: ObjCInstanceMethodDecl=meth3:66:8 (Definition) Extent=[66:1 - 66:27]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:66:4: TypeRef=id:0:0 Extent=[66:4 - 66:6]
|
2011-10-06 03:00:14 +08:00
|
|
|
// CHECK-source: usrs.m:66:14: CompoundStmt= Extent=[66:14 - 66:27]
|
|
|
|
// CHECK-source: usrs.m:66:16: ReturnStmt= Extent=[66:16 - 66:24]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:66:23: UnexposedExpr= Extent=[66:23 - 66:24]
|
2011-10-06 03:00:14 +08:00
|
|
|
// CHECK-source: usrs.m:66:23: IntegerLiteral= Extent=[66:23 - 66:24]
|
2011-10-04 12:48:02 +08:00
|
|
|
// CHECK-source: usrs.m:68:17: ObjCCategoryImplDecl=Bar:68:17 (Definition) Extent=[68:1 - 70:2]
|
|
|
|
// CHECK-source: usrs.m:68:17: ObjCClassRef=CWithExt:51:12 Extent=[68:17 - 68:25]
|
2012-03-23 11:33:19 +08:00
|
|
|
// CHECK-source: usrs.m:69:8: ObjCInstanceMethodDecl=meth4:69:8 (Definition) Extent=[69:1 - 69:27]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:69:4: TypeRef=id:0:0 Extent=[69:4 - 69:6]
|
2011-10-06 03:00:14 +08:00
|
|
|
// CHECK-source: usrs.m:69:14: CompoundStmt= Extent=[69:14 - 69:27]
|
|
|
|
// CHECK-source: usrs.m:69:16: ReturnStmt= Extent=[69:16 - 69:24]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:69:23: UnexposedExpr= Extent=[69:23 - 69:24]
|
2011-10-06 03:00:14 +08:00
|
|
|
// CHECK-source: usrs.m:69:23: IntegerLiteral= Extent=[69:23 - 69:24]
|
2011-03-08 16:55:46 +08:00
|
|
|
// CHECK-source: usrs.m:72:6: FunctionDecl=aux_1:72:6 Extent=[72:1 - 72:26]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:72:15: ParmDecl=:72:15 (Definition) Extent=[72:12 - 72:16]
|
|
|
|
// CHECK-source: usrs.m:72:20: ParmDecl=:72:20 (Definition) Extent=[72:17 - 72:21]
|
|
|
|
// CHECK-source: usrs.m:72:25: ParmDecl=:72:25 (Definition) Extent=[72:22 - 72:26]
|
2011-03-08 16:55:46 +08:00
|
|
|
// CHECK-source: usrs.m:73:5: FunctionDecl=test_multi_declaration:73:5 (Definition) Extent=[73:1 - 77:2]
|
2011-10-06 03:00:14 +08:00
|
|
|
// CHECK-source: usrs.m:73:34: CompoundStmt= Extent=[73:34 - 77:2]
|
|
|
|
// CHECK-source: usrs.m:74:3: DeclStmt= Extent=[74:3 - 74:33]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:74:7: VarDecl=foo:74:7 (Definition) Extent=[74:3 - 74:14]
|
2011-10-06 03:00:14 +08:00
|
|
|
// CHECK-source: usrs.m:74:13: IntegerLiteral= Extent=[74:13 - 74:14]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:74:16: VarDecl=bar:74:16 Extent=[74:16 - 74:23]
|
2011-10-06 03:00:14 +08:00
|
|
|
// CHECK-source: usrs.m:74:22: IntegerLiteral= Extent=[74:22 - 74:23]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:74:25: VarDecl=baz:74:25 Extent=[74:25 - 74:32]
|
2011-10-06 03:00:14 +08:00
|
|
|
// CHECK-source: usrs.m:74:31: IntegerLiteral= Extent=[74:31 - 74:32]
|
2010-11-02 07:26:51 +08:00
|
|
|
// CHECK-source: usrs.m:75:3: CallExpr=aux_1:72:6 Extent=[75:3 - 75:23]
|
|
|
|
// CHECK-source: usrs.m:75:3: UnexposedExpr=aux_1:72:6 Extent=[75:3 - 75:8]
|
|
|
|
// CHECK-source: usrs.m:75:3: DeclRefExpr=aux_1:72:6 Extent=[75:3 - 75:8]
|
|
|
|
// CHECK-source: usrs.m:75:9: DeclRefExpr=foo:74:7 Extent=[75:9 - 75:12]
|
|
|
|
// CHECK-source: usrs.m:75:14: DeclRefExpr=bar:74:16 Extent=[75:14 - 75:17]
|
|
|
|
// CHECK-source: usrs.m:75:19: DeclRefExpr=baz:74:25 Extent=[75:19 - 75:22]
|
2011-10-06 03:00:14 +08:00
|
|
|
// CHECK-source: usrs.m:76:3: ReturnStmt= Extent=[76:3 - 76:11]
|
|
|
|
// CHECK-source: usrs.m:76:10: IntegerLiteral= Extent=[76:10 - 76:11]
|
2011-10-04 12:48:02 +08:00
|
|
|
// CHECK-source: usrs.m:79:11: ObjCProtocolDecl=P1:79:11 (Definition) Extent=[79:1 - 81:5]
|
2012-03-23 11:33:19 +08:00
|
|
|
// CHECK-source: usrs.m:80:9: ObjCInstanceMethodDecl=method:80:9 Extent=[80:1 - 80:16]
|
2013-04-17 09:56:48 +08:00
|
|
|
// CHECK-source: usrs.m:89:7: ObjCInstanceMethodDecl=methodWithFn::89:7 Extent=[89:1 - 89:41]
|
|
|
|
// CHECK-source: usrs.m:89:38: ParmDecl=fn:89:38 (Definition) Extent=[89:21 - 89:40]
|
|
|
|
// CHECK-source: usrs.m:89:35: ParmDecl=p:89:35 (Definition) Extent=[89:30 - 89:36]
|