2019-11-16 04:14:06 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin -Wno-unused -fblocks -ast-dump=json -ast-dump-filter Test %s | FileCheck %s
|
2019-05-25 01:39:55 +08:00
|
|
|
|
|
|
|
@protocol P
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface A
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface TestObjCIvarDecl : A
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation TestObjCIvarDecl {
|
|
|
|
int varDefault;
|
|
|
|
@private int varPrivate;
|
|
|
|
@protected int varProtected;
|
|
|
|
@public int varPublic;
|
|
|
|
@package int varPackage;
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface testObjCMethodDecl : A {
|
|
|
|
}
|
|
|
|
- (int) TestObjCMethodDecl: (int)i, ...;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation testObjCMethodDecl
|
|
|
|
- (int) TestObjCMethodDecl: (int)i, ... {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@protocol TestObjCProtocolDecl
|
|
|
|
- (void) foo;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface TestObjCClass : A <P>
|
|
|
|
- (void) foo;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation TestObjCClass : A {
|
|
|
|
int i;
|
|
|
|
}
|
|
|
|
- (void) foo {
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface TestObjCClass (TestObjCCategoryDecl) <P>
|
|
|
|
- (void) bar;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface TestGenericInterface<T> : A<P> {
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation TestObjCClass (TestObjCCategoryDecl)
|
|
|
|
- (void) bar {
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@compatibility_alias TestObjCCompatibleAliasDecl A;
|
|
|
|
|
|
|
|
@interface TestObjCProperty: A
|
|
|
|
@property(getter=getterFoo, setter=setterFoo:) int foo;
|
|
|
|
@property int bar;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation TestObjCProperty {
|
|
|
|
int i;
|
|
|
|
}
|
|
|
|
@synthesize foo=i;
|
|
|
|
@synthesize bar;
|
|
|
|
@end
|
|
|
|
|
|
|
|
void TestBlockDecl(int x) {
|
|
|
|
^(int y, ...){ x; };
|
|
|
|
}
|
|
|
|
|
|
|
|
@interface B
|
|
|
|
+ (int) foo;
|
|
|
|
@end
|
|
|
|
|
|
|
|
void f() {
|
|
|
|
__typeof__(B.foo) Test;
|
|
|
|
}
|
|
|
|
|
2019-06-21 22:37:39 +08:00
|
|
|
// NOTE: CHECK lines have been autogenerated by gen_ast_dump_json_test.py
|
|
|
|
|
2019-06-21 00:22:35 +08:00
|
|
|
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK: "kind": "ObjCInterfaceDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 172,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
|
|
|
// CHECK-NEXT: "line": 9,
|
|
|
|
// CHECK-NEXT: "col": 12,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 16
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 161,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 194,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 10,
|
|
|
|
// CHECK-NEXT: "col": 2,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestObjCIvarDecl",
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "_OBJC_CLASS_$_TestObjCIvarDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "super": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCInterfaceDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "name": "A"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "implementation": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCImplementationDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "name": "TestObjCIvarDecl"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK: "kind": "ObjCImplementationDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 215,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
|
|
|
// CHECK-NEXT: "line": 12,
|
|
|
|
// CHECK-NEXT: "col": 17,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 16
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 199,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 364,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 19,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestObjCIvarDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "super": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x0"
|
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "interface": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCInterfaceDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "name": "TestObjCIvarDecl"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCIvarDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 240,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 13,
|
|
|
|
// CHECK-NEXT: "col": 7,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 10
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 236,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 240,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 7,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 10
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "varDefault",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "access": "private"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCIvarDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 267,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 14,
|
|
|
|
// CHECK-NEXT: "col": 16,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 10
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 263,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 12,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 267,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 16,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 10
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "varPrivate",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "access": "private"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCIvarDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 296,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 15,
|
|
|
|
// CHECK-NEXT: "col": 18,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 12
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 292,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 14,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 296,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 18,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 12
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "varProtected",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "access": "protected"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCIvarDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 324,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 16,
|
|
|
|
// CHECK-NEXT: "col": 15,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 9
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 320,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 11,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 324,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 15,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 9
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "varPublic",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "access": "public"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCIvarDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 350,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 17,
|
|
|
|
// CHECK-NEXT: "col": 16,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 10
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 346,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 12,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 350,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 16,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 10
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "varPackage",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "access": "package"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK: "kind": "ObjCMethodDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 408,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
|
|
|
// CHECK-NEXT: "line": 23,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 408,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 447,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 40,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestObjCMethodDecl:",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "-[testObjCMethodDecl TestObjCMethodDecl:]",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "returnType": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "instance": true,
|
|
|
|
// CHECK-NEXT: "variadic": true,
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ParmVarDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 441,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 34,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 437,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 30,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 441,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 34,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "i",
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "_i",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK: "kind": "ObjCMethodDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 490,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
|
|
|
// CHECK-NEXT: "line": 27,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 490,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 544,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 29,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestObjCMethodDecl:",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "-[testObjCMethodDecl TestObjCMethodDecl:]",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "returnType": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "instance": true,
|
|
|
|
// CHECK-NEXT: "variadic": true,
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ImplicitParamDecl",
|
|
|
|
// CHECK-NEXT: "loc": {},
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "begin": {},
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {}
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isImplicit": true,
|
|
|
|
// CHECK-NEXT: "name": "self",
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "_self",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "testObjCMethodDecl *"
|
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ImplicitParamDecl",
|
|
|
|
// CHECK-NEXT: "loc": {},
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "begin": {},
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {}
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isImplicit": true,
|
|
|
|
// CHECK-NEXT: "name": "_cmd",
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "__cmd",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "desugaredQualType": "SEL *",
|
|
|
|
// CHECK-NEXT: "qualType": "SEL",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ParmVarDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 523,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 27,
|
|
|
|
// CHECK-NEXT: "col": 34,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 519,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 30,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 523,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 34,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "i",
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "_i",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "CompoundStmt",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 530,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 41,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 544,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 29,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ReturnStmt",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 534,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 28,
|
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 541,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "IntegerLiteral",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 541,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 541,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "value": "0"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK: "kind": "ObjCProtocolDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 562,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
|
|
|
// CHECK-NEXT: "line": 32,
|
|
|
|
// CHECK-NEXT: "col": 11,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 20
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 552,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 598,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 34,
|
|
|
|
// CHECK-NEXT: "col": 2,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestObjCProtocolDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCMethodDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 583,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 33,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 583,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 595,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 13,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "foo",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "-[TestObjCProtocolDecl foo]",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "returnType": {
|
|
|
|
// CHECK-NEXT: "qualType": "void"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "instance": true
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK: "kind": "ObjCInterfaceDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 614,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
|
|
|
// CHECK-NEXT: "line": 36,
|
|
|
|
// CHECK-NEXT: "col": 12,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 13
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 603,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 651,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 38,
|
|
|
|
// CHECK-NEXT: "col": 2,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestObjCClass",
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "_OBJC_CLASS_$_TestObjCClass",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "super": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCInterfaceDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "name": "A"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "implementation": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCImplementationDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "name": "TestObjCClass"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "protocols": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCProtocolDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "name": "P"
|
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: ],
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCMethodDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 636,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 37,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 636,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 648,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 13,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "foo",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "-[TestObjCClass foo]",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "returnType": {
|
|
|
|
// CHECK-NEXT: "qualType": "void"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "instance": true
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK: "kind": "ObjCImplementationDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 672,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
|
|
|
// CHECK-NEXT: "line": 40,
|
|
|
|
// CHECK-NEXT: "col": 17,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 13
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 656,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 720,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 45,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestObjCClass",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "super": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCInterfaceDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "name": "A"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "interface": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCInterfaceDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "name": "TestObjCClass"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCIvarDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 698,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 41,
|
|
|
|
// CHECK-NEXT: "col": 7,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 694,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 698,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 7,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "i",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "access": "private"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCMethodDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 703,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 43,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 703,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 718,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 44,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "foo",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "-[TestObjCClass foo]",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "returnType": {
|
|
|
|
// CHECK-NEXT: "qualType": "void"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "instance": true,
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ImplicitParamDecl",
|
|
|
|
// CHECK-NEXT: "loc": {},
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "begin": {},
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {}
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isImplicit": true,
|
|
|
|
// CHECK-NEXT: "name": "self",
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "_self",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "TestObjCClass *"
|
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ImplicitParamDecl",
|
|
|
|
// CHECK-NEXT: "loc": {},
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "begin": {},
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {}
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isImplicit": true,
|
|
|
|
// CHECK-NEXT: "name": "_cmd",
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "__cmd",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "desugaredQualType": "SEL *",
|
|
|
|
// CHECK-NEXT: "qualType": "SEL",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "CompoundStmt",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 716,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 43,
|
|
|
|
// CHECK-NEXT: "col": 14,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 718,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 44,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK: "kind": "ObjCCategoryDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 737,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
|
|
|
// CHECK-NEXT: "line": 47,
|
|
|
|
// CHECK-NEXT: "col": 12,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 13
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 726,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 793,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 49,
|
|
|
|
// CHECK-NEXT: "col": 2,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestObjCCategoryDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "interface": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCInterfaceDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "name": "TestObjCClass"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "implementation": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCCategoryImplDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "name": "TestObjCCategoryDecl"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "protocols": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCProtocolDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "name": "P"
|
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: ],
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCMethodDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 778,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 48,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 778,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 790,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 13,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "bar",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "-[TestObjCCategoryDecl bar]",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "returnType": {
|
|
|
|
// CHECK-NEXT: "qualType": "void"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "instance": true
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK: "kind": "ObjCInterfaceDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 809,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
|
|
|
// CHECK-NEXT: "line": 51,
|
|
|
|
// CHECK-NEXT: "col": 12,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 20
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 798,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 845,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 53,
|
|
|
|
// CHECK-NEXT: "col": 2,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestGenericInterface",
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "_OBJC_CLASS_$_TestGenericInterface",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "super": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCInterfaceDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "name": "A"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "implementation": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x0"
|
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "protocols": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCProtocolDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "name": "P"
|
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: ],
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCTypeParamDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 830,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 51,
|
|
|
|
// CHECK-NEXT: "col": 33,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 830,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 33,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 830,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 33,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "T",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "desugaredQualType": "id",
|
|
|
|
// CHECK-NEXT: "qualType": "id",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK: "kind": "ObjCCategoryImplDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 866,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
|
|
|
// CHECK-NEXT: "line": 55,
|
|
|
|
// CHECK-NEXT: "col": 17,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 13
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 850,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 920,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 58,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestObjCCategoryDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "interface": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCInterfaceDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "name": "TestObjCClass"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "categoryDecl": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCCategoryDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "name": "TestObjCCategoryDecl"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCMethodDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 903,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 56,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 903,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 918,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 57,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "bar",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "-[TestObjCClass(TestObjCCategoryDecl) bar]",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "returnType": {
|
|
|
|
// CHECK-NEXT: "qualType": "void"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "instance": true,
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ImplicitParamDecl",
|
|
|
|
// CHECK-NEXT: "loc": {},
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "begin": {},
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {}
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isImplicit": true,
|
|
|
|
// CHECK-NEXT: "name": "self",
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "_self",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "TestObjCClass *"
|
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ImplicitParamDecl",
|
|
|
|
// CHECK-NEXT: "loc": {},
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "begin": {},
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {}
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isImplicit": true,
|
|
|
|
// CHECK-NEXT: "name": "_cmd",
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "__cmd",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "desugaredQualType": "SEL *",
|
|
|
|
// CHECK-NEXT: "qualType": "SEL",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "CompoundStmt",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 916,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 56,
|
|
|
|
// CHECK-NEXT: "col": 14,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 918,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 57,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK: "kind": "ObjCCompatibleAliasDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 926,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
|
|
|
// CHECK-NEXT: "line": 60,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 926,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 926,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestObjCCompatibleAliasDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "interface": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCInterfaceDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "name": "A"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK: "kind": "ObjCInterfaceDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 990,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
|
|
|
// CHECK-NEXT: "line": 62,
|
|
|
|
// CHECK-NEXT: "col": 12,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 16
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 979,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1086,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 65,
|
|
|
|
// CHECK-NEXT: "col": 2,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestObjCProperty",
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "_OBJC_CLASS_$_TestObjCProperty",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "super": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCInterfaceDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "name": "A"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "implementation": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCImplementationDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "name": "TestObjCProperty"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCPropertyDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1061,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 63,
|
|
|
|
// CHECK-NEXT: "col": 52,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1010,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1061,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 52,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "foo",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "getter": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCMethodDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "name": "getterFoo"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "setter": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCMethodDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "name": "setterFoo:"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "assign": true,
|
|
|
|
// CHECK-NEXT: "readwrite": true,
|
|
|
|
// CHECK-NEXT: "atomic": true,
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "unsafe_unretained": true
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCPropertyDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1080,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 64,
|
|
|
|
// CHECK-NEXT: "col": 15,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1066,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1080,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 15,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "bar",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "assign": true,
|
|
|
|
// CHECK-NEXT: "readwrite": true,
|
|
|
|
// CHECK-NEXT: "atomic": true,
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "unsafe_unretained": true
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCMethodDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1061,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 63,
|
|
|
|
// CHECK-NEXT: "col": 52,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1061,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 52,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1061,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 52,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isImplicit": true,
|
|
|
|
// CHECK-NEXT: "name": "getterFoo",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "-[TestObjCProperty getterFoo]",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "returnType": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "instance": true
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCMethodDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1061,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 52,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1061,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 52,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1061,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 52,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isImplicit": true,
|
|
|
|
// CHECK-NEXT: "name": "setterFoo:",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "-[TestObjCProperty setterFoo:]",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "returnType": {
|
|
|
|
// CHECK-NEXT: "qualType": "void"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "instance": true,
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ParmVarDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1061,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 52,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1061,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 52,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1061,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 52,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "foo",
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "_foo",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCMethodDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1080,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 64,
|
|
|
|
// CHECK-NEXT: "col": 15,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1080,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 15,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1080,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 15,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isImplicit": true,
|
|
|
|
// CHECK-NEXT: "name": "bar",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "-[TestObjCProperty bar]",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "returnType": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "instance": true
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCMethodDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1080,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 15,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1080,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 15,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1080,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 15,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isImplicit": true,
|
|
|
|
// CHECK-NEXT: "name": "setBar:",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "-[TestObjCProperty setBar:]",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "returnType": {
|
|
|
|
// CHECK-NEXT: "qualType": "void"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "instance": true,
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ParmVarDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1080,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 15,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1080,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 15,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1080,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 15,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "bar",
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "_bar",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK: "kind": "ObjCImplementationDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1107,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
|
|
|
// CHECK-NEXT: "line": 67,
|
|
|
|
// CHECK-NEXT: "col": 17,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 16
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1091,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1173,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 72,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestObjCProperty",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "super": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x0"
|
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "interface": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCInterfaceDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "name": "TestObjCProperty"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCIvarDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1132,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 68,
|
|
|
|
// CHECK-NEXT: "col": 7,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1128,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1132,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 7,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "i",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "access": "private"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCPropertyImplDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1149,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 70,
|
|
|
|
// CHECK-NEXT: "col": 13,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1137,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1153,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 17,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "foo",
|
|
|
|
// CHECK-NEXT: "implKind": "synthesize",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "propertyDecl": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCPropertyDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "name": "foo"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "ivarDecl": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCIvarDecl",
|
|
|
|
// CHECK-NEXT: "name": "i",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCIvarDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1168,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 71,
|
|
|
|
// CHECK-NEXT: "col": 13,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1168,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 13,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1168,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 13,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "bar",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "synthesized": true,
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "access": "private"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCPropertyImplDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1168,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 13,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1156,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1168,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 13,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "bar",
|
|
|
|
// CHECK-NEXT: "implKind": "synthesize",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "propertyDecl": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCPropertyDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "name": "bar"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "ivarDecl": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCIvarDecl",
|
|
|
|
// CHECK-NEXT: "name": "bar",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
2019-11-05 06:28:14 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: {
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCMethodDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1137,
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "line": 70,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
|
|
|
// CHECK-NEXT: "tokLen": 1
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1137,
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-11-05 06:28:14 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1149,
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "col": 13,
|
|
|
|
// CHECK-NEXT: "tokLen": 3
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isImplicit": true,
|
|
|
|
// CHECK-NEXT: "name": "getterFoo",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "-[TestObjCProperty getterFoo]",
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "returnType": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "instance": true
|
2019-11-05 06:28:14 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: {
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCMethodDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1137,
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
|
|
|
// CHECK-NEXT: "tokLen": 1
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1137,
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-11-05 06:28:14 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1149,
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "col": 13,
|
|
|
|
// CHECK-NEXT: "tokLen": 3
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isImplicit": true,
|
|
|
|
// CHECK-NEXT: "name": "setterFoo:",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "-[TestObjCProperty setterFoo:]",
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "returnType": {
|
|
|
|
// CHECK-NEXT: "qualType": "void"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "instance": true,
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ParmVarDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1061,
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "line": 63,
|
|
|
|
// CHECK-NEXT: "col": 52,
|
|
|
|
// CHECK-NEXT: "tokLen": 3
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
2019-11-05 06:28:14 +08:00
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1061,
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "col": 52,
|
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-11-05 06:28:14 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1061,
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "col": 52,
|
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-11-05 06:28:14 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "foo",
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "_foo",
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCMethodDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1156,
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "line": 71,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
|
|
|
// CHECK-NEXT: "tokLen": 1
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1156,
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-11-05 06:28:14 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1168,
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "col": 13,
|
|
|
|
// CHECK-NEXT: "tokLen": 3
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isImplicit": true,
|
|
|
|
// CHECK-NEXT: "name": "bar",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "-[TestObjCProperty bar]",
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "returnType": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "instance": true
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCMethodDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1156,
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
|
|
|
// CHECK-NEXT: "tokLen": 1
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1156,
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-11-05 06:28:14 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1168,
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "col": 13,
|
|
|
|
// CHECK-NEXT: "tokLen": 3
|
|
|
|
// CHECK-NEXT: }
|
2019-11-05 06:28:14 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "isImplicit": true,
|
|
|
|
// CHECK-NEXT: "name": "setBar:",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "-[TestObjCProperty setBar:]",
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "returnType": {
|
|
|
|
// CHECK-NEXT: "qualType": "void"
|
2019-11-05 06:28:14 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "instance": true,
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-11-05 06:28:14 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "kind": "ParmVarDecl",
|
2019-11-05 06:28:14 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1080,
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "line": 64,
|
|
|
|
// CHECK-NEXT: "col": 15,
|
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-11-05 06:28:14 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1080,
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "col": 15,
|
|
|
|
// CHECK-NEXT: "tokLen": 3
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1080,
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "col": 15,
|
|
|
|
// CHECK-NEXT: "tokLen": 3
|
|
|
|
// CHECK-NEXT: }
|
2019-11-05 06:28:14 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "name": "bar",
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "_bar",
|
2019-11-12 20:02:07 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK: "kind": "FunctionDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1184,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
|
|
|
// CHECK-NEXT: "line": 74,
|
|
|
|
// CHECK-NEXT: "col": 6,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 13
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1179,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 4
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1230,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 76,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestBlockDecl",
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "_TestBlockDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "void (int)"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ParmVarDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1202,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 74,
|
|
|
|
// CHECK-NEXT: "col": 24,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1198,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 20,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1202,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 24,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isUsed": true,
|
|
|
|
// CHECK-NEXT: "name": "x",
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "_x",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "CompoundStmt",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1205,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 27,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1230,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 76,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ExprWithCleanups",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1209,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 75,
|
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1227,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 21,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "void (^)(int, ...)"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "cleanupsHaveSideEffects": true,
|
2019-06-21 00:22:35 +08:00
|
|
|
// CHECK-NEXT: "cleanups": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
2019-06-21 00:22:35 +08:00
|
|
|
// CHECK-NEXT: "kind": "BlockDecl"
|
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: ],
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "BlockExpr",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1209,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1227,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 21,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "void (^)(int, ...)"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "BlockDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1209,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1209,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1227,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 21,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "variadic": true,
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ParmVarDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1215,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 9,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1211,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 5,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1215,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 9,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "y",
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "_y",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "kind": "Capture",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "var": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ParmVarDecl",
|
|
|
|
// CHECK-NEXT: "name": "x",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "CompoundStmt",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1222,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 16,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1227,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 21,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ImplicitCastExpr",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1224,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 18,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1224,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 18,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "LValueToRValue",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "DeclRefExpr",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1224,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 18,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1224,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 18,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "const int"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "lvalue",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "referencedDecl": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ParmVarDecl",
|
|
|
|
// CHECK-NEXT: "name": "x",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ParmVarDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1215,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 9,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1211,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 5,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1215,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 9,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "y",
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "_y",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK: "kind": "VarDecl",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1296,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
|
|
|
// CHECK-NEXT: "line": 83,
|
|
|
|
// CHECK-NEXT: "col": 21,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 4
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1278,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 10
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "offset": 1296,
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 21,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 4
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "Test",
|
2019-11-16 04:14:06 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "_Test",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "desugaredQualType": "int",
|
2019-05-25 01:39:55 +08:00
|
|
|
// CHECK-NEXT: "qualType": "typeof (B.foo)"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|