2019-06-20 23:04:24 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-linux-gnu -fsyntax-only -ast-dump=json %s | FileCheck %s
|
|
|
|
|
|
|
|
unsigned char implicitcast_0(unsigned int x) {
|
|
|
|
return x;
|
|
|
|
}
|
|
|
|
|
|
|
|
signed char implicitcast_1(unsigned int x) {
|
|
|
|
return x;
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned char implicitcast_2(signed int x) {
|
|
|
|
return x;
|
|
|
|
}
|
|
|
|
|
|
|
|
signed char implicitcast_3(signed int x) {
|
|
|
|
return x;
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------//
|
|
|
|
|
|
|
|
unsigned char cstylecast_0(unsigned int x) {
|
|
|
|
return (unsigned char)x;
|
|
|
|
}
|
|
|
|
|
|
|
|
signed char cstylecast_1(unsigned int x) {
|
|
|
|
return (signed char)x;
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned char cstylecast_2(signed int x) {
|
|
|
|
return (unsigned char)x;
|
|
|
|
}
|
|
|
|
|
|
|
|
signed char cstylecast_3(signed int x) {
|
|
|
|
return (signed char)x;
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------//
|
|
|
|
|
|
|
|
unsigned char cxxstaticcast_0(unsigned int x) {
|
|
|
|
return static_cast<unsigned char>(x);
|
|
|
|
}
|
|
|
|
|
|
|
|
signed char cxxstaticcast_1(unsigned int x) {
|
|
|
|
return static_cast<signed char>(x);
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned char cxxstaticcast_2(signed int x) {
|
|
|
|
return static_cast<unsigned char>(x);
|
|
|
|
}
|
|
|
|
|
|
|
|
signed char cxxstaticcast_3(signed int x) {
|
|
|
|
return static_cast<signed char>(x);
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------//
|
|
|
|
|
|
|
|
using UnsignedChar = unsigned char;
|
|
|
|
using SignedChar = signed char;
|
|
|
|
using UnsignedInt = unsigned int;
|
|
|
|
using SignedInt = signed int;
|
|
|
|
|
|
|
|
UnsignedChar cxxfunctionalcast_0(UnsignedInt x) {
|
|
|
|
return UnsignedChar(x);
|
|
|
|
}
|
|
|
|
|
|
|
|
SignedChar cxxfunctionalcast_1(UnsignedInt x) {
|
|
|
|
return SignedChar(x);
|
|
|
|
}
|
|
|
|
|
|
|
|
UnsignedChar cxxfunctionalcast_2(SignedInt x) {
|
|
|
|
return UnsignedChar(x);
|
|
|
|
}
|
|
|
|
|
|
|
|
SignedChar cxxfunctionalcast_3(SignedInt x) {
|
|
|
|
return SignedChar(x);
|
|
|
|
}
|
|
|
|
|
2019-06-21 22:37:39 +08:00
|
|
|
// NOTE: CHECK lines have been autogenerated by gen_ast_dump_json_test.py
|
|
|
|
// using --filters=ImplicitCastExpr,CStyleCastExpr,CXXStaticCastExpr,CXXFunctionalCastExpr
|
|
|
|
|
2019-06-20 23:04:24 +08:00
|
|
|
|
|
|
|
// CHECK: "kind": "ImplicitCastExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 148,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 148,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "unsigned char"
|
|
|
|
// 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": 148,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 148,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "unsigned 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": 148,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 148,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "unsigned 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": "unsigned int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "ImplicitCastExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 208,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 208,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "signed char"
|
|
|
|
// 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": 208,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 208,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "unsigned 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": 208,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 208,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "unsigned 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": "unsigned int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "ImplicitCastExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 268,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 268,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "unsigned char"
|
|
|
|
// 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": 268,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 268,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +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": 268,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 268,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +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: "kind": "ImplicitCastExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 326,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 326,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "signed char"
|
|
|
|
// 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": 326,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 326,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +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": 326,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 326,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +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: "kind": "CStyleCastExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 468,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 483,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 25,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "unsigned char"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "NoOp",
|
|
|
|
// 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": 483,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 25,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 483,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 25,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "unsigned char"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "IntegralCast",
|
|
|
|
// CHECK-NEXT: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 483,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 25,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 483,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 25,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "unsigned int"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "LValueToRValue",
|
|
|
|
// CHECK-NEXT: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 483,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 25,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 483,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 25,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "unsigned 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": "unsigned int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "CStyleCastExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 541,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 554,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "signed char"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "NoOp",
|
|
|
|
// 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": 554,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 554,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "signed char"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "IntegralCast",
|
|
|
|
// CHECK-NEXT: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 554,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 554,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "unsigned int"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "LValueToRValue",
|
|
|
|
// CHECK-NEXT: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 554,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 554,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "unsigned 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": "unsigned int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "CStyleCastExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 612,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 627,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 25,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "unsigned char"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "NoOp",
|
|
|
|
// 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": 627,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 25,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 627,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 25,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "unsigned char"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "IntegralCast",
|
|
|
|
// CHECK-NEXT: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 627,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 25,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 627,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 25,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +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: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 627,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 25,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 627,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 25,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +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: "kind": "CStyleCastExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 683,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 696,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "signed char"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "NoOp",
|
|
|
|
// 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": 696,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 696,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "signed char"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "IntegralCast",
|
|
|
|
// CHECK-NEXT: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 696,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 696,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +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: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 696,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 696,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +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: "kind": "CXXStaticCastExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 841,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 11
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 869,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 38,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "unsigned char"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "NoOp",
|
|
|
|
// 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": 868,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 37,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 868,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 37,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "unsigned char"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "IntegralCast",
|
|
|
|
// CHECK-NEXT: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 868,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 37,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 868,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 37,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "unsigned int"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "LValueToRValue",
|
|
|
|
// CHECK-NEXT: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 868,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 37,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 868,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 37,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "unsigned 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": "unsigned int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "CXXStaticCastExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 930,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 11
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 956,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 36,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "signed char"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "NoOp",
|
|
|
|
// 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": 955,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 35,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 955,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 35,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "signed char"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "IntegralCast",
|
|
|
|
// CHECK-NEXT: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 955,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 35,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 955,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 35,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "unsigned int"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "LValueToRValue",
|
|
|
|
// CHECK-NEXT: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 955,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 35,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 955,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 35,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "unsigned 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": "unsigned int"
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "CXXStaticCastExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1017,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 11
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1045,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 38,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "unsigned char"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "NoOp",
|
|
|
|
// 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": 1044,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 37,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1044,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 37,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "unsigned char"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "IntegralCast",
|
|
|
|
// CHECK-NEXT: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 1044,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 37,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1044,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 37,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +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: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 1044,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 37,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1044,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 37,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +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: "kind": "CXXStaticCastExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1104,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 11
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1130,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 36,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "signed char"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "NoOp",
|
|
|
|
// 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": 1129,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 35,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1129,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 35,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "qualType": "signed char"
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "IntegralCast",
|
|
|
|
// CHECK-NEXT: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 1129,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 35,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1129,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 35,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +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: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 1129,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 35,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1129,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 35,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +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: "kind": "CXXFunctionalCastExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1410,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 12
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1424,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 24,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "desugaredQualType": "unsigned char",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "qualType": "UnsignedChar",
|
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "NoOp",
|
|
|
|
// 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": 1423,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1423,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "desugaredQualType": "unsigned char",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "qualType": "UnsignedChar",
|
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "IntegralCast",
|
|
|
|
// CHECK-NEXT: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 1423,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1423,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "desugaredQualType": "unsigned int",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "qualType": "UnsignedInt",
|
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "LValueToRValue",
|
|
|
|
// CHECK-NEXT: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 1423,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1423,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "desugaredQualType": "unsigned int",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "qualType": "UnsignedInt",
|
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-06-20 23:04:24 +08:00
|
|
|
// 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": "unsigned int",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "qualType": "UnsignedInt",
|
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "CXXFunctionalCastExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1487,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 10
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1499,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 22,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "desugaredQualType": "signed char",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "qualType": "SignedChar",
|
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "NoOp",
|
|
|
|
// 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": 1498,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 21,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1498,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 21,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "desugaredQualType": "signed char",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "qualType": "SignedChar",
|
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "IntegralCast",
|
|
|
|
// CHECK-NEXT: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 1498,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 21,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1498,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 21,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "desugaredQualType": "unsigned int",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "qualType": "UnsignedInt",
|
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "LValueToRValue",
|
|
|
|
// CHECK-NEXT: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 1498,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 21,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1498,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 21,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "desugaredQualType": "unsigned int",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "qualType": "UnsignedInt",
|
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-06-20 23:04:24 +08:00
|
|
|
// 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": "unsigned int",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "qualType": "UnsignedInt",
|
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "CXXFunctionalCastExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1562,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 12
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1576,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 24,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "desugaredQualType": "unsigned char",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "qualType": "UnsignedChar",
|
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "NoOp",
|
|
|
|
// 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": 1575,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1575,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "desugaredQualType": "unsigned char",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "qualType": "UnsignedChar",
|
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "IntegralCast",
|
|
|
|
// CHECK-NEXT: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 1575,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1575,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "desugaredQualType": "int",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "qualType": "SignedInt",
|
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "LValueToRValue",
|
|
|
|
// CHECK-NEXT: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 1575,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1575,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 23,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "desugaredQualType": "int",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "qualType": "SignedInt",
|
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-06-20 23:04:24 +08:00
|
|
|
// 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": "int",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "qualType": "SignedInt",
|
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: "kind": "CXXFunctionalCastExpr",
|
|
|
|
// CHECK-NEXT: "range": {
|
|
|
|
// CHECK-NEXT: "begin": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1637,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 10,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 10
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1649,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 22,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "desugaredQualType": "signed char",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "qualType": "SignedChar",
|
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "NoOp",
|
|
|
|
// 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": 1648,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 21,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1648,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 21,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "desugaredQualType": "signed char",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "qualType": "SignedChar",
|
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "IntegralCast",
|
|
|
|
// CHECK-NEXT: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 1648,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 21,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1648,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 21,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "desugaredQualType": "int",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "qualType": "SignedInt",
|
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "valueCategory": "rvalue",
|
|
|
|
// CHECK-NEXT: "castKind": "LValueToRValue",
|
|
|
|
// CHECK-NEXT: "isPartOfExplicitCast": true,
|
|
|
|
// 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": 1648,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 21,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "end": {
|
2019-10-16 01:30:19 +08:00
|
|
|
// CHECK-NEXT: "offset": 1648,
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: "col": 21,
|
2019-06-25 04:07:11 +08:00
|
|
|
// CHECK-NEXT: "tokLen": 1
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: },
|
|
|
|
// CHECK-NEXT: "type": {
|
|
|
|
// CHECK-NEXT: "desugaredQualType": "int",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "qualType": "SignedInt",
|
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-06-20 23:04:24 +08:00
|
|
|
// 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": "int",
|
2019-07-30 21:42:19 +08:00
|
|
|
// CHECK-NEXT: "qualType": "SignedInt",
|
|
|
|
// CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
|
2019-06-20 23:04:24 +08:00
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|
|
|
|
// CHECK-NEXT: }
|