2022-02-25 04:30:30 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -Wno-strict-prototypes -ast-dump=json -ast-dump-filter Test %s | FileCheck %s
|
2019-06-19 00:36:49 +08:00
|
|
|
|
2019-10-16 01:30:19 +08:00
|
|
|
#include "Inputs/json-dump-include.h"
|
|
|
|
|
2019-06-19 00:36:49 +08:00
|
|
|
int TestLocation;
|
2019-10-16 01:30:19 +08:00
|
|
|
TestTypedefFromInclude TestLocationFromInclude;
|
2019-06-19 00:36:49 +08:00
|
|
|
|
|
|
|
struct TestIndent {
|
|
|
|
int x;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct TestChildren {
|
|
|
|
int x;
|
|
|
|
struct y {
|
|
|
|
int z;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-02-25 04:30:30 +08:00
|
|
|
void testLabelDecl(void) {
|
2019-06-19 00:36:49 +08:00
|
|
|
__label__ TestLabelDecl;
|
|
|
|
TestLabelDecl: goto TestLabelDecl;
|
|
|
|
}
|
|
|
|
|
|
|
|
typedef int TestTypedefDecl;
|
|
|
|
|
|
|
|
enum TestEnumDecl {
|
|
|
|
testEnumDecl
|
|
|
|
};
|
|
|
|
|
|
|
|
struct TestEnumDeclAnon {
|
|
|
|
enum {
|
|
|
|
testEnumDeclAnon
|
|
|
|
} e;
|
|
|
|
};
|
|
|
|
|
|
|
|
enum TestEnumDeclForward;
|
|
|
|
|
|
|
|
struct TestRecordDecl {
|
|
|
|
int i;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct TestRecordDeclEmpty {
|
|
|
|
};
|
|
|
|
|
|
|
|
struct TestRecordDeclAnon1 {
|
|
|
|
struct {
|
|
|
|
} testRecordDeclAnon1;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct TestRecordDeclAnon2 {
|
|
|
|
struct {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
struct TestRecordDeclForward;
|
|
|
|
|
|
|
|
enum testEnumConstantDecl {
|
|
|
|
TestEnumConstantDecl,
|
|
|
|
TestEnumConstantDeclInit = 1
|
|
|
|
};
|
|
|
|
|
|
|
|
struct TestIndirectFieldDecl {
|
|
|
|
struct {
|
|
|
|
int Field;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
// FIXME: It would be nice to dump the enum and its enumerators.
|
|
|
|
int TestFunctionDecl(int x, enum { e } y) {
|
|
|
|
return x;
|
|
|
|
}
|
|
|
|
|
|
|
|
// FIXME: It would be nice to dump 'Enum' and 'e'.
|
|
|
|
int TestFunctionDecl2(enum Enum { e } x) { return x; }
|
|
|
|
int TestFunctionDeclProto(int x);
|
|
|
|
void TestFunctionDeclNoProto();
|
2022-02-25 04:30:30 +08:00
|
|
|
extern int TestFunctionDeclSC(void);
|
|
|
|
inline int TestFunctionDeclInline(void);
|
2019-06-19 00:36:49 +08:00
|
|
|
|
|
|
|
struct testFieldDecl {
|
|
|
|
int TestFieldDecl;
|
|
|
|
int TestFieldDeclWidth : 1;
|
|
|
|
};
|
|
|
|
|
|
|
|
int TestVarDecl;
|
|
|
|
extern int TestVarDeclSC;
|
|
|
|
__thread int TestVarDeclThread;
|
|
|
|
int TestVarDeclInit = 0;
|
|
|
|
|
|
|
|
void testParmVarDecl(int TestParmVarDecl);
|
|
|
|
|
2019-06-21 22:37:39 +08:00
|
|
|
// NOTE: CHECK lines have been autogenerated by gen_ast_dump_json_test.py
|
2019-06-19 00:36:49 +08:00
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK: "kind": "TypedefDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
|
|
|
// CHECK-NEXT: "line": 1,
|
|
|
|
// CHECK-NEXT: "col": 13,
|
|
|
|
// CHECK-NEXT: "tokLen": 22,
|
|
|
|
// CHECK-NEXT: "includedFrom": {
|
|
|
|
// CHECK-NEXT: "file": "{{.*}}"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
|
|
|
// CHECK-NEXT: "tokLen": 7,
|
|
|
|
// CHECK-NEXT: "includedFrom": {
|
|
|
|
// CHECK-NEXT: "file": "{{.*}}"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 13,
|
|
|
|
// CHECK-NEXT: "tokLen": 22,
|
|
|
|
// CHECK-NEXT: "includedFrom": {
|
|
|
|
// CHECK-NEXT: "file": "{{.*}}"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isReferenced": true,
|
|
|
|
// CHECK-NEXT: "name": "TestTypedefFromInclude",
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "BuiltinType",
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "VarDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 5,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 5,
|
|
|
|
// CHECK-NEXT: "tokLen": 12
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 5,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 12
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestLocation",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "TestLocation",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK: "kind": "VarDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
|
|
|
// CHECK-NEXT: "line": 6,
|
|
|
|
// CHECK-NEXT: "col": 24,
|
|
|
|
// CHECK-NEXT: "tokLen": 23
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
|
|
|
// CHECK-NEXT: "tokLen": 22
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "col": 24,
|
|
|
|
// CHECK-NEXT: "tokLen": 23
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestLocationFromInclude",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "TestLocationFromInclude",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "desugaredQualType": "int",
|
|
|
|
// CHECK-NEXT: "qualType": "TestTypedefFromInclude",
|
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "RecordDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 8,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 8,
|
|
|
|
// CHECK-NEXT: "tokLen": 10
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 10,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestIndent",
|
|
|
|
// CHECK-NEXT: "tagUsed": "struct",
|
|
|
|
// CHECK-NEXT: "completeDefinition": true,
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "FieldDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 9,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 7,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 7,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "x",
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "RecordDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 12,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 8,
|
|
|
|
// CHECK-NEXT: "tokLen": 12
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 17,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestChildren",
|
|
|
|
// CHECK-NEXT: "tagUsed": "struct",
|
|
|
|
// CHECK-NEXT: "completeDefinition": true,
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "FieldDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 13,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 7,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 7,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "x",
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "RecordDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 14,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 16,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
2019-09-05 04:30:00 +08:00
|
|
|
// CHECK-NEXT: "parentDeclContextId": "0x{{.*}}",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "name": "y",
|
|
|
|
// CHECK-NEXT: "tagUsed": "struct",
|
|
|
|
// CHECK-NEXT: "completeDefinition": true,
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "FieldDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 15,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 9,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 5,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 9,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "z",
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "LabelDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 20,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 13,
|
|
|
|
// CHECK-NEXT: "tokLen": 13
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 9
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 13,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 13
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isUsed": true,
|
|
|
|
// CHECK-NEXT: "name": "TestLabelDecl"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "TypedefDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 24,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 13,
|
|
|
|
// CHECK-NEXT: "tokLen": 15
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 7
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 13,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 15
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestTypedefDecl",
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "BuiltinType",
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "EnumDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 26,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 6,
|
|
|
|
// CHECK-NEXT: "tokLen": 12
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 4
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 28,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestEnumDecl",
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "EnumConstantDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 27,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 12
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 12
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 12
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "testEnumDecl",
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "RecordDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 30,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 8,
|
|
|
|
// CHECK-NEXT: "tokLen": 16
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 34,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestEnumDeclAnon",
|
|
|
|
// CHECK-NEXT: "tagUsed": "struct",
|
|
|
|
// CHECK-NEXT: "completeDefinition": true,
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "EnumDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 31,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 4
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 4
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 33,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "EnumConstantDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 32,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 5,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 16
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 5,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 16
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 5,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 16
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "testEnumDeclAnon",
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "FieldDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 33,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 5,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 31,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 4
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 33,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 5,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "e",
|
|
|
|
// CHECK-NEXT: "type": {
|
2021-02-23 01:58:26 +08:00
|
|
|
// CHECK-NEXT: "desugaredQualType": "enum TestEnumDeclAnon::(unnamed at {{.*}}:31:3)",
|
|
|
|
// CHECK-NEXT: "qualType": "enum (unnamed enum at {{.*}}:31:3)"
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "EnumDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 36,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 6,
|
|
|
|
// CHECK-NEXT: "tokLen": 19
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 4
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 6,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 19
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestEnumDeclForward"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "RecordDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 38,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 8,
|
|
|
|
// CHECK-NEXT: "tokLen": 14
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 40,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestRecordDecl",
|
|
|
|
// CHECK-NEXT: "tagUsed": "struct",
|
|
|
|
// CHECK-NEXT: "completeDefinition": true,
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "FieldDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 39,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 7,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 7,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "i",
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "RecordDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 42,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 8,
|
|
|
|
// CHECK-NEXT: "tokLen": 19
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 43,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestRecordDeclEmpty",
|
|
|
|
// CHECK-NEXT: "tagUsed": "struct",
|
|
|
|
// CHECK-NEXT: "completeDefinition": true
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "RecordDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 45,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 8,
|
|
|
|
// CHECK-NEXT: "tokLen": 19
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 48,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestRecordDeclAnon1",
|
|
|
|
// CHECK-NEXT: "tagUsed": "struct",
|
|
|
|
// CHECK-NEXT: "completeDefinition": true,
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "RecordDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 46,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 47,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "tagUsed": "struct",
|
|
|
|
// CHECK-NEXT: "completeDefinition": true
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "FieldDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 5,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 19
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 46,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 47,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 5,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 19
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "testRecordDeclAnon1",
|
|
|
|
// CHECK-NEXT: "type": {
|
2021-02-23 01:58:26 +08:00
|
|
|
// CHECK-NEXT: "desugaredQualType": "struct TestRecordDeclAnon1::(unnamed at {{.*}}:46:3)",
|
|
|
|
// CHECK-NEXT: "qualType": "struct (unnamed struct at {{.*}}:46:3)"
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "RecordDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 50,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 8,
|
|
|
|
// CHECK-NEXT: "tokLen": 19
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 53,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestRecordDeclAnon2",
|
|
|
|
// CHECK-NEXT: "tagUsed": "struct",
|
|
|
|
// CHECK-NEXT: "completeDefinition": true,
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "RecordDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 51,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 52,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "tagUsed": "struct",
|
|
|
|
// CHECK-NEXT: "completeDefinition": true
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "FieldDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 51,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isImplicit": true,
|
|
|
|
// CHECK-NEXT: "type": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "qualType": "struct TestRecordDeclAnon2::(anonymous at {{.*}}:51:3)"
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "RecordDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 55,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 8,
|
|
|
|
// CHECK-NEXT: "tokLen": 21
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 8,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 21
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestRecordDeclForward",
|
|
|
|
// CHECK-NEXT: "tagUsed": "struct"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "EnumConstantDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 58,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
|
|
|
// CHECK-NEXT: "tokLen": 20
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 20
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 20
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestEnumConstantDecl",
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "EnumConstantDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 59,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
|
|
|
// CHECK-NEXT: "tokLen": 24
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 24
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 30,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestEnumConstantDeclInit",
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ConstantExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 30,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 30,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: },
|
2021-06-05 05:15:23 +08:00
|
|
|
// CHECK-NEXT: "valueCategory": "prvalue",
|
2021-02-11 23:12:38 +08:00
|
|
|
// CHECK-NEXT: "value": "1",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "IntegerLiteral",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 30,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 30,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: },
|
2021-06-05 05:15:23 +08:00
|
|
|
// CHECK-NEXT: "valueCategory": "prvalue",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "value": "1"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "RecordDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 62,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 8,
|
|
|
|
// CHECK-NEXT: "tokLen": 21
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 66,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestIndirectFieldDecl",
|
|
|
|
// CHECK-NEXT: "tagUsed": "struct",
|
|
|
|
// CHECK-NEXT: "completeDefinition": true,
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "RecordDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 63,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 65,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "tagUsed": "struct",
|
|
|
|
// CHECK-NEXT: "completeDefinition": true,
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "FieldDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 64,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 9,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 5
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 5,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 9,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 5
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "Field",
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "FieldDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 63,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isImplicit": true,
|
|
|
|
// CHECK-NEXT: "type": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "qualType": "struct TestIndirectFieldDecl::(anonymous at {{.*}}:63:3)"
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "IndirectFieldDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 64,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 9,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 5
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 9,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 5
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 9,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 5
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isImplicit": true,
|
|
|
|
// CHECK-NEXT: "name": "Field"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "FunctionDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 69,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 5,
|
|
|
|
// CHECK-NEXT: "tokLen": 16
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 71,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestFunctionDecl",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "TestFunctionDecl",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
2021-02-23 01:58:26 +08:00
|
|
|
// CHECK-NEXT: "qualType": "int (int, enum (unnamed enum at {{.*}}:69:29))"
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ParmVarDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 69,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 26,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 22,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 26,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isUsed": true,
|
|
|
|
// CHECK-NEXT: "name": "x",
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ParmVarDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 40,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 29,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 4
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 40,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "y",
|
|
|
|
// CHECK-NEXT: "type": {
|
2021-02-23 01:58:26 +08:00
|
|
|
// CHECK-NEXT: "desugaredQualType": "enum (unnamed at {{.*}}:69:29)",
|
|
|
|
// CHECK-NEXT: "qualType": "enum (unnamed enum at {{.*}}:69:29)"
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "CompoundStmt",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 43,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 71,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ReturnStmt",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 70,
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ImplicitCastExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: },
|
2021-06-05 05:15:23 +08:00
|
|
|
// CHECK-NEXT: "valueCategory": "prvalue",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "castKind": "LValueToRValue",
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "DeclRefExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "lvalue",
|
|
|
|
// CHECK-NEXT: "referencedDecl": {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ParmVarDecl",
|
|
|
|
// CHECK-NEXT: "name": "x",
|
|
|
|
// 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: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "FunctionDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 74,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 5,
|
|
|
|
// CHECK-NEXT: "tokLen": 17
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 54,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestFunctionDecl2",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "TestFunctionDecl2",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int (enum Enum)"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ParmVarDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 39,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 4
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 39,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isUsed": true,
|
|
|
|
// CHECK-NEXT: "name": "x",
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "desugaredQualType": "enum Enum",
|
|
|
|
// CHECK-NEXT: "qualType": "enum Enum"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "CompoundStmt",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 42,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 54,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ReturnStmt",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 44,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 51,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ImplicitCastExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 51,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 51,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: },
|
2021-06-05 05:15:23 +08:00
|
|
|
// CHECK-NEXT: "valueCategory": "prvalue",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "castKind": "IntegralCast",
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ImplicitCastExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 51,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 51,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "desugaredQualType": "enum Enum",
|
|
|
|
// CHECK-NEXT: "qualType": "enum Enum"
|
|
|
|
// CHECK-NEXT: },
|
2021-06-05 05:15:23 +08:00
|
|
|
// CHECK-NEXT: "valueCategory": "prvalue",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "castKind": "LValueToRValue",
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "DeclRefExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 51,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 51,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "desugaredQualType": "enum Enum",
|
|
|
|
// CHECK-NEXT: "qualType": "enum Enum"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "lvalue",
|
|
|
|
// CHECK-NEXT: "referencedDecl": {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ParmVarDecl",
|
|
|
|
// CHECK-NEXT: "name": "x",
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "desugaredQualType": "enum Enum",
|
|
|
|
// CHECK-NEXT: "qualType": "enum Enum"
|
|
|
|
// 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: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "FunctionDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 75,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 5,
|
|
|
|
// CHECK-NEXT: "tokLen": 21
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 32,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestFunctionDeclProto",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "TestFunctionDeclProto",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int (int)"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ParmVarDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 31,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 27,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 31,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "x",
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "FunctionDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 76,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 6,
|
|
|
|
// CHECK-NEXT: "tokLen": 23
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 4
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 30,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestFunctionDeclNoProto",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "TestFunctionDeclNoProto",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "void ()"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "FunctionDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 77,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 12,
|
|
|
|
// CHECK-NEXT: "tokLen": 18
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2022-02-25 04:30:30 +08:00
|
|
|
// CHECK-NEXT: "col": 35,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestFunctionDeclSC",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "TestFunctionDeclSC",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
2022-02-25 04:30:30 +08:00
|
|
|
// CHECK-NEXT: "qualType": "int (void)"
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "storageClass": "extern"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "FunctionDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 78,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 12,
|
|
|
|
// CHECK-NEXT: "tokLen": 22
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2022-02-25 04:30:30 +08:00
|
|
|
// CHECK-NEXT: "col": 39,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestFunctionDeclInline",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "TestFunctionDeclInline",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
2022-02-25 04:30:30 +08:00
|
|
|
// CHECK-NEXT: "qualType": "int (void)"
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "inline": true
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "FieldDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 81,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 7,
|
|
|
|
// CHECK-NEXT: "tokLen": 13
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 7,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 13
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestFieldDecl",
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "FieldDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 82,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 7,
|
|
|
|
// CHECK-NEXT: "tokLen": 18
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 3,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 28,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestFieldDeclWidth",
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "isBitfield": true,
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ConstantExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 28,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 28,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: },
|
2021-06-05 05:15:23 +08:00
|
|
|
// CHECK-NEXT: "valueCategory": "prvalue",
|
2021-02-11 23:12:38 +08:00
|
|
|
// CHECK-NEXT: "value": "1",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "IntegerLiteral",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 28,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 28,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: },
|
2021-06-05 05:15:23 +08:00
|
|
|
// CHECK-NEXT: "valueCategory": "prvalue",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "value": "1"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "VarDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 85,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 5,
|
|
|
|
// CHECK-NEXT: "tokLen": 11
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 5,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 11
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestVarDecl",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "TestVarDecl",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "VarDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 86,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 12,
|
|
|
|
// CHECK-NEXT: "tokLen": 13
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 6
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 12,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 13
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestVarDeclSC",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "TestVarDeclSC",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "storageClass": "extern"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "VarDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 87,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 14,
|
|
|
|
// CHECK-NEXT: "tokLen": 17
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 8
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 14,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 17
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestVarDeclThread",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "TestVarDeclThread",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "tls": "static"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "VarDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 88,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 5,
|
|
|
|
// CHECK-NEXT: "tokLen": 15
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 1,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestVarDeclInit",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "TestVarDeclInit",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "init": "c",
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "IntegerLiteral",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: },
|
2021-06-05 05:15:23 +08:00
|
|
|
// CHECK-NEXT: "valueCategory": "prvalue",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "value": "0"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
2021-12-22 23:55:56 +08:00
|
|
|
|
2021-10-10 08:44:08 +08:00
|
|
|
// CHECK-NOT: {{^}}Dumping
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "ParmVarDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "line": 90,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "col": 26,
|
|
|
|
// CHECK-NEXT: "tokLen": 15
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 22,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 3
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2022-01-20 07:55:20 +08:00
|
|
|
// CHECK-NEXT: "offset": {{[0-9]+}},
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "col": 26,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 15
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "name": "TestParmVarDecl",
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|