2018-03-31 03:16:33 +00:00
|
|
|
namespace ns {
|
|
|
|
enum VarType {};
|
|
|
|
|
|
|
|
template<typename _>
|
|
|
|
struct Holder {
|
|
|
|
static constexpr VarType static_var = (VarType)0x0;
|
|
|
|
};
|
|
|
|
|
|
|
|
template<typename _>
|
|
|
|
const typename VarType Holder<_>::static_var;
|
|
|
|
|
|
|
|
|
|
|
|
int Foo = Holder<int>::static_var;
|
|
|
|
int Foo2 = Holder<int>::static_var;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
OUTPUT:
|
|
|
|
{
|
|
|
|
"includes": [],
|
2018-07-07 23:56:47 +00:00
|
|
|
"skipped_ranges": [],
|
2018-07-08 19:49:27 +00:00
|
|
|
"usr2func": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2type": [{
|
2018-07-07 23:56:47 +00:00
|
|
|
"usr": 53,
|
2018-04-30 04:49:03 +00:00
|
|
|
"detailed_name": "",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "",
|
|
|
|
"bases": [],
|
|
|
|
"funcs": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"types": [],
|
2018-03-31 03:16:33 +00:00
|
|
|
"vars": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"alias_of": 0,
|
|
|
|
"kind": 0,
|
|
|
|
"parent_kind": 0,
|
|
|
|
"declarations": [],
|
|
|
|
"derived": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"instances": [12898699035586282159, 9008550860229740818],
|
2018-03-31 03:16:33 +00:00
|
|
|
"uses": []
|
|
|
|
}, {
|
|
|
|
"usr": 1532099849728741556,
|
2018-08-30 04:20:27 +00:00
|
|
|
"detailed_name": "enum ns::VarType {}",
|
2018-07-07 23:56:47 +00:00
|
|
|
"qual_name_offset": 5,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "VarType",
|
2018-10-05 06:31:59 +00:00
|
|
|
"spell": "2:8-2:15|2:3-2:18|1026|-1",
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"funcs": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"types": [],
|
2018-03-31 03:16:33 +00:00
|
|
|
"vars": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"alias_of": 0,
|
|
|
|
"kind": 10,
|
|
|
|
"parent_kind": 3,
|
|
|
|
"declarations": [],
|
|
|
|
"derived": [],
|
2018-07-07 23:56:47 +00:00
|
|
|
"instances": [4731849186641714451, 4731849186641714451],
|
2018-10-05 06:31:59 +00:00
|
|
|
"uses": ["6:22-6:29|4|-1", "6:44-6:51|4|-1", "10:18-10:25|4|-1"]
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr": 11072669167287398027,
|
2018-08-30 04:20:27 +00:00
|
|
|
"detailed_name": "namespace ns {}",
|
2018-07-07 23:56:47 +00:00
|
|
|
"qual_name_offset": 10,
|
2018-04-30 04:49:03 +00:00
|
|
|
"short_name": "ns",
|
2018-07-07 23:56:47 +00:00
|
|
|
"bases": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"funcs": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"types": [1532099849728741556, 12688716854043726585],
|
2018-07-08 19:49:27 +00:00
|
|
|
"vars": [{
|
|
|
|
"L": 12898699035586282159,
|
|
|
|
"R": -1
|
|
|
|
}, {
|
|
|
|
"L": 9008550860229740818,
|
|
|
|
"R": -1
|
|
|
|
}],
|
2018-10-05 06:31:59 +00:00
|
|
|
"alias_of": 0,
|
|
|
|
"kind": 3,
|
|
|
|
"parent_kind": 0,
|
|
|
|
"declarations": ["1:11-1:13|1:1-15:2|1|-1"],
|
|
|
|
"derived": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"instances": [],
|
2018-07-07 23:56:47 +00:00
|
|
|
"uses": []
|
2018-04-30 04:49:03 +00:00
|
|
|
}, {
|
|
|
|
"usr": 12688716854043726585,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "struct ns::Holder {}",
|
|
|
|
"qual_name_offset": 7,
|
2018-04-30 04:49:03 +00:00
|
|
|
"short_name": "Holder",
|
2018-10-05 06:31:59 +00:00
|
|
|
"spell": "5:10-5:16|5:3-7:4|1026|-1",
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"funcs": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"types": [],
|
2018-03-31 03:16:33 +00:00
|
|
|
"vars": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"alias_of": 0,
|
|
|
|
"kind": 23,
|
|
|
|
"parent_kind": 3,
|
|
|
|
"declarations": [],
|
|
|
|
"derived": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"instances": [],
|
2018-10-05 06:31:59 +00:00
|
|
|
"uses": ["10:26-10:32|4|-1", "13:13-13:19|4|-1", "14:14-14:20|4|-1"]
|
2018-03-31 03:16:33 +00:00
|
|
|
}],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2var": [{
|
2018-03-31 03:16:33 +00:00
|
|
|
"usr": 4731849186641714451,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "static constexpr ns::VarType ns::Holder::static_var",
|
|
|
|
"qual_name_offset": 29,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "static_var",
|
2018-07-08 19:49:27 +00:00
|
|
|
"hover": "static constexpr ns::VarType ns::Holder::static_var = (VarType)0x0",
|
2018-10-05 06:31:59 +00:00
|
|
|
"spell": "10:37-10:47|9:3-10:47|1026|-1",
|
2018-04-30 04:49:03 +00:00
|
|
|
"type": 1532099849728741556,
|
2018-07-07 23:56:47 +00:00
|
|
|
"kind": 13,
|
2018-10-05 06:31:59 +00:00
|
|
|
"parent_kind": 23,
|
|
|
|
"storage": 2,
|
|
|
|
"declarations": ["6:30-6:40|6:5-6:55|1025|-1"],
|
|
|
|
"uses": ["13:26-13:36|12|-1", "14:27-14:37|12|-1"]
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr": 9008550860229740818,
|
|
|
|
"detailed_name": "int ns::Foo2",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 4,
|
2018-04-30 04:49:03 +00:00
|
|
|
"short_name": "Foo2",
|
|
|
|
"hover": "int ns::Foo2 = Holder<int>::static_var",
|
2018-10-05 06:31:59 +00:00
|
|
|
"spell": "14:7-14:11|14:3-14:37|1026|-1",
|
2018-07-07 23:56:47 +00:00
|
|
|
"type": 53,
|
2018-03-31 03:16:33 +00:00
|
|
|
"kind": 13,
|
2018-10-05 06:31:59 +00:00
|
|
|
"parent_kind": 3,
|
|
|
|
"storage": 0,
|
|
|
|
"declarations": [],
|
|
|
|
"uses": []
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr": 12898699035586282159,
|
|
|
|
"detailed_name": "int ns::Foo",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 4,
|
2018-04-30 04:49:03 +00:00
|
|
|
"short_name": "Foo",
|
|
|
|
"hover": "int ns::Foo = Holder<int>::static_var",
|
2018-10-05 06:31:59 +00:00
|
|
|
"spell": "13:7-13:10|13:3-13:36|1026|-1",
|
2018-07-07 23:56:47 +00:00
|
|
|
"type": 53,
|
2018-03-31 03:16:33 +00:00
|
|
|
"kind": 13,
|
2018-10-05 06:31:59 +00:00
|
|
|
"parent_kind": 3,
|
|
|
|
"storage": 0,
|
|
|
|
"declarations": [],
|
|
|
|
"uses": []
|
2018-03-31 03:16:33 +00:00
|
|
|
}]
|
|
|
|
}
|
|
|
|
*/
|