2019-06-19 00:36:49 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -ast-dump=json -ast-dump-filter Test %s | FileCheck %s
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
void testLabelDecl() {
|
|
|
|
__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();
|
|
|
|
extern int TestFunctionDeclSC();
|
|
|
|
inline int TestFunctionDeclInline();
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK: "kind": "TypedefDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
|
|
|
// CHECK-NEXT: "offset": 12,
|
|
|
|
// 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": {
|
|
|
|
// CHECK-NEXT: "offset": 0,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
|
|
|
// CHECK-NEXT: "tokLen": 7,
|
|
|
|
// CHECK-NEXT: "includedFrom": {
|
|
|
|
// CHECK-NEXT: "file": "{{.*}}"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
|
|
|
// CHECK-NEXT: "offset": 12,
|
|
|
|
// 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: }
|
|
|
|
|
|
|
|
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "VarDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 149,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 145,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 149,
|
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: }
|
|
|
|
|
|
|
|
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK: "kind": "VarDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
|
|
|
// CHECK-NEXT: "offset": 186,
|
|
|
|
// CHECK-NEXT: "file": "{{.*}}",
|
|
|
|
// CHECK-NEXT: "line": 6,
|
|
|
|
// CHECK-NEXT: "col": 24,
|
|
|
|
// CHECK-NEXT: "tokLen": 23
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
|
|
|
// CHECK-NEXT: "offset": 163,
|
|
|
|
// CHECK-NEXT: "col": 1,
|
|
|
|
// CHECK-NEXT: "tokLen": 22
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
|
|
|
// CHECK-NEXT: "offset": 186,
|
|
|
|
// 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: }
|
|
|
|
|
|
|
|
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK: "kind": "RecordDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 219,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 212,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 241,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 238,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 234,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 238,
|
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: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "RecordDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 252,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 245,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 305,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 273,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 269,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 273,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 285,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 278,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 302,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 297,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 293,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 297,
|
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: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "LabelDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 344,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 334,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 344,
|
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: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "TypedefDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 411,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 399,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 411,
|
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: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "EnumDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 434,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 429,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 464,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 451,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 451,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 451,
|
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: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "RecordDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 475,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 468,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 531,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 496,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 496,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 526,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 507,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 507,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 507,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 528,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 496,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 528,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "desugaredQualType": "enum TestEnumDeclAnon::(anonymous at {{.*}}:31:3)",
|
|
|
|
// CHECK-NEXT: "qualType": "enum (anonymous enum at {{.*}}:31:3)"
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "EnumDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 540,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 535,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 540,
|
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: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "RecordDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 569,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 562,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 595,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 592,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 588,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 592,
|
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: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "RecordDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 606,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 599,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 628,
|
|
|
|
// 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: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "RecordDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 639,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 632,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 697,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 663,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 663,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 674,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 676,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 663,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 676,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "desugaredQualType": "struct TestRecordDeclAnon1::(anonymous at {{.*}}:46:3)",
|
|
|
|
// CHECK-NEXT: "qualType": "struct (anonymous struct at {{.*}}:46:3)"
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "RecordDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 708,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 701,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 746,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 732,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 732,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 743,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 732,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 732,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 732,
|
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: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "RecordDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 757,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 750,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 757,
|
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: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "EnumConstantDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 811,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 811,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 811,
|
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: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "EnumConstantDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 835,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 835,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 862,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 862,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 862,
|
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: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "IntegerLiteral",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 862,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 862,
|
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: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "value": "1"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "RecordDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 875,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 868,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 930,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 901,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 901,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 927,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 918,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 914,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 918,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 901,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 901,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 901,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 918,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 918,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 918,
|
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: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "FunctionDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1003,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 999,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1055,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "qualType": "int (int, enum (anonymous 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1024,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1020,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1024,
|
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",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "x",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ParmVarDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1038,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1027,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1038,
|
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",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "y",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "desugaredQualType": "enum (anonymous at {{.*}}:69:29)",
|
|
|
|
// CHECK-NEXT: "qualType": "enum (anonymous 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1041,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1055,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1045,
|
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1052,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1052,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1052,
|
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": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "LValueToRValue",
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "DeclRefExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1052,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1052,
|
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: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "FunctionDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1113,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1109,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1162,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1147,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1131,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1147,
|
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",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "x",
|
2019-06-19 00:36:49 +08:00
|
|
|
// 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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1150,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1162,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1152,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1159,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1159,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1159,
|
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: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "IntegralCast",
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "ImplicitCastExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1159,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1159,
|
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": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "LValueToRValue",
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "DeclRefExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1159,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1159,
|
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: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "FunctionDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1168,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1164,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1195,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1194,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1190,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1194,
|
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",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "x",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "FunctionDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1203,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1198,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1227,
|
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: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "FunctionDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1241,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1230,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1260,
|
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": "TestFunctionDeclSC",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "TestFunctionDeclSC",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int ()"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "storageClass": "extern"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "FunctionDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1274,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1263,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1297,
|
2019-06-19 00:36:49 +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": "TestFunctionDeclInline",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "TestFunctionDeclInline",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int ()"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "inline": true
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "FieldDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1330,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1326,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1330,
|
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: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "FieldDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1351,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1347,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1372,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1372,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1372,
|
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: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "inner": [
|
|
|
|
// CHECK-NEXT: {
|
|
|
|
// CHECK-NEXT: "id": "0x{{.*}}",
|
|
|
|
// CHECK-NEXT: "kind": "IntegerLiteral",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1372,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1372,
|
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: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "value": "1"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "VarDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1383,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1379,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1383,
|
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: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "VarDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1407,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1396,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1407,
|
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: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "VarDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1435,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1422,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1435,
|
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: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "VarDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1458,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1454,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1476,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1476,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1476,
|
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: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "value": "0"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "ParmVarDecl",
|
|
|
|
// CHECK-NEXT: "loc": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1505,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1501,
|
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": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1505,
|
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",
|
2019-11-15 20:33:16 +08:00
|
|
|
// CHECK-NEXT: "mangledName": "TestParmVarDecl",
|
2019-06-19 00:36:49 +08:00
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|