You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

978 lines
18 KiB

<"TranslationUnitDecl" : (
{
"pointer" : 1,
"source_range" : (
{
},
{
}
)
},
[
<"TypedefDecl" : (
{
"pointer" : 2,
"source_range" : (
{
},
{
}
),
"is_implicit" : true
},
{
"name" : "__int128_t",
"qual_name" : [
"__int128_t"
]
},
0,
{
}
)>,
<"TypedefDecl" : (
{
"pointer" : 3,
"source_range" : (
{
},
{
}
),
"is_implicit" : true
},
{
"name" : "__uint128_t",
"qual_name" : [
"__uint128_t"
]
},
0,
{
}
)>,
<"TypedefDecl" : (
{
"pointer" : 4,
"source_range" : (
{
},
{
}
),
"is_implicit" : true
},
{
"name" : "__NSConstantString",
"qual_name" : [
"__NSConstantString"
]
},
0,
{
}
)>,
<"TypedefDecl" : (
{
"pointer" : 5,
"source_range" : (
{
},
{
}
),
"is_implicit" : true
},
{
"name" : "__builtin_ms_va_list",
"qual_name" : [
"__builtin_ms_va_list"
]
},
0,
{
}
)>,
<"TypedefDecl" : (
{
"pointer" : 6,
"source_range" : (
{
},
{
}
),
"is_implicit" : true
},
{
"name" : "__builtin_va_list",
"qual_name" : [
"__builtin_va_list"
]
},
0,
{
}
)>,
<"VarDecl" : (
{
"pointer" : 7,
"source_range" : (
{
"file" : "tests/c_cast.cpp",
"line" : 7,
"column" : 1
},
{
"column" : 9
}
),
"is_used" : true,
"is_this_declaration_referenced" : true
},
{
"name" : "i",
"qual_name" : [
"i"
]
},
{
"type_ptr" : 8
},
{
"is_global" : true,
"init_expr" : <"IntegerLiteral" : (
{
"pointer" : 9,
"source_range" : (
{
"column" : 9
},
{
"column" : 9
}
)
},
[
],
{
"qual_type" : {
"type_ptr" : 8
}
},
{
"is_signed" : true,
"bitwidth" : 32,
"value" : "10"
}
)>
}
)>,
<"VarDecl" : (
{
"pointer" : 10,
"source_range" : (
{
"line" : 8,
"column" : 1
},
{
"column" : 16
}
)
},
{
"name" : "l",
"qual_name" : [
"l"
]
},
{
"type_ptr" : 11
},
{
"is_global" : true,
"init_expr" : <"CStyleCastExpr" : (
{
"pointer" : 12,
"source_range" : (
{
"column" : 10
},
{
"column" : 16
}
)
},
[
<"ImplicitCastExpr" : (
{
"pointer" : 13,
"source_range" : (
{
"column" : 16
},
{
"column" : 16
}
)
},
[
<"ImplicitCastExpr" : (
{
"pointer" : 14,
"source_range" : (
{
"column" : 16
},
{
"column" : 16
}
)
},
[
<"DeclRefExpr" : (
{
"pointer" : 15,
"source_range" : (
{
"column" : 16
},
{
"column" : 16
}
)
},
[
],
{
"qual_type" : {
"type_ptr" : 8
},
"value_kind" : <"LValue">
},
{
"decl_ref" : {
"kind" : <"Var">,
"decl_pointer" : 7,
"name" : {
"name" : "i",
"qual_name" : [
"i"
]
},
"qual_type" : {
"type_ptr" : 8
}
}
}
)>
],
{
"qual_type" : {
"type_ptr" : 8
}
},
{
"cast_kind" : <"LValueToRValue">,
"base_path" : [
]
}
)>
],
{
"qual_type" : {
"type_ptr" : 11
}
},
{
"cast_kind" : <"IntegralCast">,
"base_path" : [
]
}
)>
],
{
"qual_type" : {
"type_ptr" : 11
}
},
{
"cast_kind" : <"NoOp">,
"base_path" : [
]
},
{
"type_ptr" : 11
}
)>
}
)>,
<"VarDecl" : (
{
"pointer" : 16,
"source_range" : (
{
"line" : 9,
"column" : 1
},
{
"column" : 16
}
)
},
{
"name" : "m",
"qual_name" : [
"m"
]
},
{
"type_ptr" : 11
},
{
"is_global" : true,
"init_expr" : <"CXXFunctionalCastExpr" : (
{
"pointer" : 17,
"source_range" : (
{
"column" : 10
},
{
"column" : 16
}
)
},
[
<"ImplicitCastExpr" : (
{
"pointer" : 18,
"source_range" : (
{
"column" : 15
},
{
"column" : 15
}
)
},
[
<"ImplicitCastExpr" : (
{
"pointer" : 19,
"source_range" : (
{
"column" : 15
},
{
"column" : 15
}
)
},
[
<"DeclRefExpr" : (
{
"pointer" : 20,
"source_range" : (
{
"column" : 15
},
{
"column" : 15
}
)
},
[
],
{
"qual_type" : {
"type_ptr" : 8
},
"value_kind" : <"LValue">
},
{
"decl_ref" : {
"kind" : <"Var">,
"decl_pointer" : 7,
"name" : {
"name" : "i",
"qual_name" : [
"i"
]
},
"qual_type" : {
"type_ptr" : 8
}
}
}
)>
],
{
"qual_type" : {
"type_ptr" : 8
}
},
{
"cast_kind" : <"LValueToRValue">,
"base_path" : [
]
}
)>
],
{
"qual_type" : {
"type_ptr" : 11
}
},
{
"cast_kind" : <"IntegralCast">,
"base_path" : [
]
}
)>
],
{
"qual_type" : {
"type_ptr" : 11
}
},
{
"cast_kind" : <"NoOp">,
"base_path" : [
]
},
{
"type_ptr" : 11
}
)>
}
)>,
<"TypedefDecl" : (
{
"pointer" : 21,
"source_range" : (
{
},
{
}
),
"is_implicit" : true
},
{
"name" : "instancetype",
"qual_name" : [
"instancetype"
]
},
22,
{
}
)>
],
{
},
{
"input_path" : "tests/c_cast.cpp",
"input_kind" : <"IK_CXX">,
"integer_type_widths" : {
"char_type" : 8,
"short_type" : 16,
"int_type" : 32,
"long_type" : 64,
"longlong_type" : 64
},
"types" : [
<"BuiltinType" : (
{
"pointer" : 23
},
<"Void">
)>,
<"BuiltinType" : (
{
"pointer" : 24
},
<"Bool">
)>,
<"BuiltinType" : (
{
"pointer" : 25
},
<"Char_S">
)>,
<"BuiltinType" : (
{
"pointer" : 26
},
<"SChar">
)>,
<"BuiltinType" : (
{
"pointer" : 27
},
<"Short">
)>,
<"BuiltinType" : (
{
"pointer" : 8
},
<"Int">
)>,
<"BuiltinType" : (
{
"pointer" : 11
},
<"Long">
)>,
<"BuiltinType" : (
{
"pointer" : 28
},
<"LongLong">
)>,
<"BuiltinType" : (
{
"pointer" : 29
},
<"UChar">
)>,
<"BuiltinType" : (
{
"pointer" : 30
},
<"UShort">
)>,
<"BuiltinType" : (
{
"pointer" : 31
},
<"UInt">
)>,
<"BuiltinType" : (
{
"pointer" : 32
},
<"ULong">
)>,
<"BuiltinType" : (
{
"pointer" : 33
},
<"ULongLong">
)>,
<"BuiltinType" : (
{
"pointer" : 34
},
<"Float">
)>,
<"BuiltinType" : (
{
"pointer" : 35
},
<"Double">
)>,
<"BuiltinType" : (
{
"pointer" : 36
},
<"LongDouble">
)>,
<"BuiltinType" : (
{
"pointer" : 37
},
<"Float128">
)>,
<"BuiltinType" : (
{
"pointer" : 38
},
<"Float16">
)>,
<"BuiltinType" : (
{
"pointer" : 39
},
<"ShortAccum">
)>,
<"BuiltinType" : (
{
"pointer" : 40
},
<"Accum">
)>,
<"BuiltinType" : (
{
"pointer" : 41
},
<"LongAccum">
)>,
<"BuiltinType" : (
{
"pointer" : 42
},
<"UShortAccum">
)>,
<"BuiltinType" : (
{
"pointer" : 43
},
<"UAccum">
)>,
<"BuiltinType" : (
{
"pointer" : 44
},
<"ULongAccum">
)>,
<"BuiltinType" : (
{
"pointer" : 45
},
<"ShortFract">
)>,
<"BuiltinType" : (
{
"pointer" : 46
},
<"Fract">
)>,
<"BuiltinType" : (
{
"pointer" : 47
},
<"LongFract">
)>,
<"BuiltinType" : (
{
"pointer" : 48
},
<"UShortFract">
)>,
<"BuiltinType" : (
{
"pointer" : 49
},
<"UFract">
)>,
<"BuiltinType" : (
{
"pointer" : 50
},
<"ULongFract">
)>,
<"BuiltinType" : (
{
"pointer" : 51
},
<"SatShortAccum">
)>,
<"BuiltinType" : (
{
"pointer" : 52
},
<"SatAccum">
)>,
<"BuiltinType" : (
{
"pointer" : 53
},
<"SatLongAccum">
)>,
<"BuiltinType" : (
{
"pointer" : 54
},
<"SatUShortAccum">
)>,
<"BuiltinType" : (
{
"pointer" : 55
},
<"SatUAccum">
)>,
<"BuiltinType" : (
{
"pointer" : 56
},
<"SatULongAccum">
)>,
<"BuiltinType" : (
{
"pointer" : 57
},
<"SatShortFract">
)>,
<"BuiltinType" : (
{
"pointer" : 58
},
<"SatFract">
)>,
<"BuiltinType" : (
{
"pointer" : 59
},
<"SatLongFract">
)>,
<"BuiltinType" : (
{
"pointer" : 60
},
<"SatUShortFract">
)>,
<"BuiltinType" : (
{
"pointer" : 61
},
<"SatUFract">
)>,
<"BuiltinType" : (
{
"pointer" : 62
},
<"SatULongFract">
)>,
<"BuiltinType" : (
{
"pointer" : 63
},
<"Int128">
)>,
<"BuiltinType" : (
{
"pointer" : 64
},
<"UInt128">
)>,
<"BuiltinType" : (
{
"pointer" : 65
},
<"WChar_S">
)>,
<"BuiltinType" : (
{
"pointer" : 66
},
<"Char8">
)>,
<"BuiltinType" : (
{
"pointer" : 67
},
<"Char16">
)>,
<"BuiltinType" : (
{
"pointer" : 68
},
<"Char32">
)>,
<"BuiltinType" : (
{
"pointer" : 69
},
<"Dependent">
)>,
<"BuiltinType" : (
{
"pointer" : 70
},
<"Overload">
)>,
<"BuiltinType" : (
{
"pointer" : 71
},
<"BoundMember">
)>,
<"BuiltinType" : (
{
"pointer" : 72
},
<"PseudoObject">
)>,
<"BuiltinType" : (
{
"pointer" : 73
},
<"UnknownAny">
)>,
<"BuiltinType" : (
{
"pointer" : 74
},
<"ARCUnbridgedCast">
)>,
<"BuiltinType" : (
{
"pointer" : 75
},
<"BuiltinFn">
)>,
<"ComplexType" : (
{
"pointer" : 76
}
)>,
<"ComplexType" : (
{
"pointer" : 77
}
)>,
<"ComplexType" : (
{
"pointer" : 78
}
)>,
<"ComplexType" : (
{
"pointer" : 79
}
)>,
<"BuiltinType" : (
{
"pointer" : 80
},
<"ObjCId">
)>,
<"BuiltinType" : (
{
"pointer" : 81
},
<"ObjCClass">
)>,
<"BuiltinType" : (
{
"pointer" : 82
},
<"ObjCSel">
)>,
<"PointerType" : (
{
"pointer" : 83
},
{
"type_ptr" : 23
}
)>,
<"BuiltinType" : (
{
"pointer" : 84
},
<"NullPtr">
)>,
<"BuiltinType" : (
{
"pointer" : 85
},
<"Half">
)>,
<"BuiltinType" : (
{
"pointer" : 86
},
<"BFloat16">
)>,
<"RecordType" : (
{
"pointer" : 87
},
88
)>,
<"PointerType" : (
{
"pointer" : 89
},
{
"type_ptr" : 8,
"is_const" : true
}
)>,
<"PointerType" : (
{
"pointer" : 90
},
{
"type_ptr" : 25,
"is_const" : true
}
)>,
<"PointerType" : (
{
"pointer" : 91
},
{
"type_ptr" : 25
}
)>,
<"RecordType" : (
{
"pointer" : 92
},
93
)>,
<"ConstantArrayType" : (
{
"pointer" : 94
},
{
"element_type" : {
"type_ptr" : 92
},
"stride" : 24
},
1
)>,
<"ObjCObjectType" : (
{
"pointer" : 95
},
{
"base_type" : 80
}
)>,
<"ObjCObjectPointerType" : (
{
"pointer" : 96
},
{
"type_ptr" : 95
}
)>,
<"TypedefType" : (
{
"pointer" : 97,
"desugared_type" : 96
},
{
"child_type" : {
"type_ptr" : 96
},
"decl_ptr" : 98
}
)>,
<"TypedefType" : (
{
"pointer" : 22,
"desugared_type" : 96
},
{
"child_type" : {
"type_ptr" : 97
},
"decl_ptr" : 21
}
)>,
<"NoneType" : (
{
"pointer" : 0
}
)>
]
}
)>