2019-05-25 03:19:00 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-pc-win32 -Wno-unused -fblocks -fobjc-exceptions -ast-dump=json -ast-dump-filter Test %s | FileCheck %s
|
2019-05-25 02:58:29 +08:00
|
|
|
|
|
|
|
void TestBlockExpr(int x) {
|
|
|
|
^{ x; };
|
|
|
|
}
|
|
|
|
|
|
|
|
void TestExprWithCleanup(int x) {
|
|
|
|
^{ x; };
|
|
|
|
}
|
|
|
|
|
|
|
|
@interface A
|
|
|
|
@end
|
|
|
|
|
|
|
|
void TestObjCAtCatchStmt() {
|
|
|
|
@try {
|
|
|
|
} @catch(A *a) {
|
|
|
|
} @catch(...) {
|
|
|
|
} @finally {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-21 22:37:39 +08:00
|
|
|
// NOTE: CHECK lines have been autogenerated by gen_ast_dump_json_test.py
|
|
|
|
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK: "kind": "FunctionDecl",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 143,
|
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
|
|
|
// CHECK-NEXT: "line": 3,
|
|
|
|
// 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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 138,
|
|
|
|
// 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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 177,
|
|
|
|
// CHECK-NEXT: "line": 5,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestBlockExpr",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "TestBlockExpr",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "void (int)"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 161,
|
|
|
|
// CHECK-NEXT: "line": 3,
|
|
|
|
// 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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 157,
|
|
|
|
// 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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 161,
|
|
|
|
// CHECK-NEXT: "col": 24,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isUsed": true,
|
|
|
|
// CHECK-NEXT: "name": "x",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "x",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "CompoundStmt",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 164,
|
|
|
|
// 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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 177,
|
|
|
|
// CHECK-NEXT: "line": 5,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 168,
|
|
|
|
// CHECK-NEXT: "line": 4,
|
|
|
|
// 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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 174,
|
|
|
|
// CHECK-NEXT: "col": 9,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "void (^)(void)"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2021-06-05 05:15:23 +08:00
|
|
|
// CHECK-NEXT: "valueCategory": "prvalue",
|
2019-10-16 01:30:19 +08:00
|
|
|
// 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 02:58:29 +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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 168,
|
|
|
|
// 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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 174,
|
|
|
|
// CHECK-NEXT: "col": 9,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "void (^)(void)"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2021-06-05 05:15:23 +08:00
|
|
|
// CHECK-NEXT: "valueCategory": "prvalue",
|
2019-05-25 02:58:29 +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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 168,
|
|
|
|
// 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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 168,
|
|
|
|
// 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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 174,
|
|
|
|
// CHECK-NEXT: "col": 9,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "kind": "Capture",
|
2019-05-25 02:58:29 +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 02:58:29 +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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "CompoundStmt",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 169,
|
|
|
|
// CHECK-NEXT: "col": 4,
|
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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 174,
|
|
|
|
// CHECK-NEXT: "col": 9,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 171,
|
|
|
|
// CHECK-NEXT: "col": 6,
|
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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 171,
|
|
|
|
// CHECK-NEXT: "col": 6,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2021-06-05 05:15:23 +08:00
|
|
|
// CHECK-NEXT: "valueCategory": "prvalue",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "castKind": "LValueToRValue",
|
2019-05-25 02:58:29 +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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 171,
|
|
|
|
// CHECK-NEXT: "col": 6,
|
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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 171,
|
|
|
|
// CHECK-NEXT: "col": 6,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +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 02:58:29 +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 02:58:29 +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: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK: "kind": "FunctionDecl",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 185,
|
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
|
|
|
// CHECK-NEXT: "line": 7,
|
|
|
|
// CHECK-NEXT: "col": 6,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 19
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 180,
|
|
|
|
// 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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 225,
|
|
|
|
// CHECK-NEXT: "line": 9,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestExprWithCleanup",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "TestExprWithCleanup",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "void (int)"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 209,
|
|
|
|
// CHECK-NEXT: "line": 7,
|
|
|
|
// CHECK-NEXT: "col": 30,
|
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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 205,
|
|
|
|
// CHECK-NEXT: "col": 26,
|
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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 209,
|
|
|
|
// CHECK-NEXT: "col": 30,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isUsed": true,
|
|
|
|
// CHECK-NEXT: "name": "x",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "x",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "CompoundStmt",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 212,
|
|
|
|
// 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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 225,
|
|
|
|
// CHECK-NEXT: "line": 9,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 216,
|
|
|
|
// CHECK-NEXT: "line": 8,
|
|
|
|
// 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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 222,
|
|
|
|
// CHECK-NEXT: "col": 9,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "void (^)(void)"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2021-06-05 05:15:23 +08:00
|
|
|
// CHECK-NEXT: "valueCategory": "prvalue",
|
2019-10-16 01:30:19 +08:00
|
|
|
// 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 02:58:29 +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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 216,
|
|
|
|
// 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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 222,
|
|
|
|
// CHECK-NEXT: "col": 9,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "void (^)(void)"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2021-06-05 05:15:23 +08:00
|
|
|
// CHECK-NEXT: "valueCategory": "prvalue",
|
2019-05-25 02:58:29 +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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 216,
|
|
|
|
// 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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 216,
|
|
|
|
// 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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 222,
|
|
|
|
// CHECK-NEXT: "col": 9,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "kind": "Capture",
|
2019-05-25 02:58:29 +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 02:58:29 +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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "CompoundStmt",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 217,
|
|
|
|
// CHECK-NEXT: "col": 4,
|
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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 222,
|
|
|
|
// CHECK-NEXT: "col": 9,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 219,
|
|
|
|
// CHECK-NEXT: "col": 6,
|
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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 219,
|
|
|
|
// CHECK-NEXT: "col": 6,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2021-06-05 05:15:23 +08:00
|
|
|
// CHECK-NEXT: "valueCategory": "prvalue",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "castKind": "LValueToRValue",
|
2019-05-25 02:58:29 +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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 219,
|
|
|
|
// CHECK-NEXT: "col": 6,
|
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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 219,
|
|
|
|
// CHECK-NEXT: "col": 6,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +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 02:58:29 +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 02:58:29 +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: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK: "kind": "FunctionDecl",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 252,
|
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
|
|
|
// CHECK-NEXT: "line": 14,
|
|
|
|
// CHECK-NEXT: "col": 6,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 19
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 247,
|
|
|
|
// 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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 341,
|
|
|
|
// CHECK-NEXT: "line": 20,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestObjCAtCatchStmt",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "TestObjCAtCatchStmt",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "void ()"
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "CompoundStmt",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 274,
|
|
|
|
// CHECK-NEXT: "line": 14,
|
|
|
|
// CHECK-NEXT: "col": 28,
|
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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 341,
|
|
|
|
// CHECK-NEXT: "line": 20,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCAtTryStmt",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 278,
|
|
|
|
// CHECK-NEXT: "line": 15,
|
|
|
|
// 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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 339,
|
|
|
|
// CHECK-NEXT: "line": 19,
|
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "CompoundStmt",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 283,
|
|
|
|
// CHECK-NEXT: "line": 15,
|
|
|
|
// CHECK-NEXT: "col": 8,
|
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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 287,
|
|
|
|
// CHECK-NEXT: "line": 16,
|
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCAtCatchStmt",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 289,
|
|
|
|
// CHECK-NEXT: "col": 5,
|
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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 306,
|
|
|
|
// CHECK-NEXT: "line": 17,
|
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "VarDecl",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 299,
|
|
|
|
// CHECK-NEXT: "line": 16,
|
|
|
|
// CHECK-NEXT: "col": 15,
|
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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 296,
|
|
|
|
// CHECK-NEXT: "col": 12,
|
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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 299,
|
|
|
|
// CHECK-NEXT: "col": 15,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "a",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "a",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "A *"
|
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "CompoundStmt",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 302,
|
|
|
|
// 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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 306,
|
|
|
|
// CHECK-NEXT: "line": 17,
|
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCAtCatchStmt",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 308,
|
|
|
|
// CHECK-NEXT: "col": 5,
|
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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 324,
|
|
|
|
// CHECK-NEXT: "line": 18,
|
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isCatchAll": true,
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "CompoundStmt",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 320,
|
|
|
|
// CHECK-NEXT: "line": 17,
|
|
|
|
// CHECK-NEXT: "col": 17,
|
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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 324,
|
|
|
|
// CHECK-NEXT: "line": 18,
|
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ObjCAtFinallyStmt",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 326,
|
|
|
|
// CHECK-NEXT: "col": 5,
|
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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 339,
|
|
|
|
// CHECK-NEXT: "line": 19,
|
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "CapturedStmt",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 335,
|
|
|
|
// CHECK-NEXT: "line": 18,
|
|
|
|
// 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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 339,
|
|
|
|
// CHECK-NEXT: "line": 19,
|
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "CapturedDecl",
|
|
|
|
// CHECK-NEXT: "loc": {},
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "begin": {},
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {}
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "CompoundStmt",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 335,
|
|
|
|
// CHECK-NEXT: "line": 18,
|
|
|
|
// 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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 339,
|
|
|
|
// CHECK-NEXT: "line": 19,
|
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ImplicitParamDecl",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 335,
|
|
|
|
// CHECK-NEXT: "line": 18,
|
|
|
|
// 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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 335,
|
|
|
|
// 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 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 335,
|
|
|
|
// CHECK-NEXT: "col": 14,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isImplicit": true,
|
|
|
|
// CHECK-NEXT: "name": "__context",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "__context",
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
2021-02-23 01:58:26 +08:00
|
|
|
// CHECK-NEXT: "qualType": "struct (unnamed at {{.*}}:18:14) *"
|
2019-05-25 02:58:29 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|