2018-03-31 03:16:33 +00:00
|
|
|
enum A {};
|
|
|
|
enum B {};
|
|
|
|
|
|
|
|
template<typename T>
|
|
|
|
struct Foo {
|
|
|
|
struct Inner {};
|
|
|
|
};
|
|
|
|
|
|
|
|
Foo<A>::Inner a;
|
|
|
|
Foo<B> b;
|
|
|
|
/*
|
|
|
|
OUTPUT:
|
|
|
|
{
|
|
|
|
"includes": [],
|
2018-07-07 23:56:47 +00:00
|
|
|
"skipped_ranges": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2func": [],
|
|
|
|
"usr2type": [{
|
2018-03-31 03:16:33 +00:00
|
|
|
"usr": 6697181287623958829,
|
2018-08-30 04:20:27 +00:00
|
|
|
"detailed_name": "enum A {}",
|
2018-07-07 23:56:47 +00:00
|
|
|
"qual_name_offset": 5,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "A",
|
|
|
|
"kind": 10,
|
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "1:6-1:7|0|1|2",
|
|
|
|
"extent": "1:1-1:10|0|1|0",
|
|
|
|
"alias_of": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
|
|
|
"instances": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"uses": ["9:5-9:6|0|1|4"]
|
2018-07-08 19:49:27 +00:00
|
|
|
}, {
|
|
|
|
"usr": 7074603899792463171,
|
|
|
|
"detailed_name": "Inner",
|
|
|
|
"qual_name_offset": 0,
|
|
|
|
"short_name": "Inner",
|
|
|
|
"kind": 26,
|
|
|
|
"declarations": [],
|
2018-07-10 06:40:26 +00:00
|
|
|
"spell": "6:10-6:15|0|1|2",
|
2018-07-08 19:49:27 +00:00
|
|
|
"extent": "6:3-6:18|0|1|0",
|
|
|
|
"alias_of": 0,
|
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
|
|
|
"instances": [16721564935990383768],
|
|
|
|
"uses": []
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr": 10528472276654770367,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "struct Foo {}",
|
|
|
|
"qual_name_offset": 7,
|
2018-04-30 04:49:03 +00:00
|
|
|
"short_name": "Foo",
|
2018-07-07 23:56:47 +00:00
|
|
|
"kind": 23,
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "5:8-5:11|0|1|2",
|
|
|
|
"extent": "5:1-7:2|0|1|0",
|
|
|
|
"alias_of": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
2018-07-07 23:56:47 +00:00
|
|
|
"types": [13938528237873543349],
|
2018-03-31 03:16:33 +00:00
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
2018-07-08 19:49:27 +00:00
|
|
|
"instances": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"uses": ["9:1-9:4|0|1|4", "10:1-10:4|0|1|4"]
|
2018-07-08 19:49:27 +00:00
|
|
|
}, {
|
|
|
|
"usr": 11976530632376795217,
|
|
|
|
"detailed_name": "Foo",
|
|
|
|
"qual_name_offset": 0,
|
|
|
|
"short_name": "Foo",
|
|
|
|
"kind": 26,
|
|
|
|
"declarations": [],
|
2018-07-10 06:40:26 +00:00
|
|
|
"spell": "5:8-5:11|0|1|2",
|
2018-07-08 19:49:27 +00:00
|
|
|
"extent": "4:1-7:2|0|1|0",
|
|
|
|
"alias_of": 0,
|
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
|
|
|
"instances": [12028309045033782423],
|
|
|
|
"uses": []
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr": 13892793056005362145,
|
2018-08-30 04:20:27 +00:00
|
|
|
"detailed_name": "enum B {}",
|
2018-07-07 23:56:47 +00:00
|
|
|
"qual_name_offset": 5,
|
2018-04-30 04:49:03 +00:00
|
|
|
"short_name": "B",
|
|
|
|
"kind": 10,
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "2:6-2:7|0|1|2",
|
|
|
|
"extent": "2:1-2:10|0|1|0",
|
|
|
|
"alias_of": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"instances": [],
|
|
|
|
"uses": ["10:5-10:6|0|1|4"]
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
|
|
|
"usr": 13938528237873543349,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "struct Foo::Inner {}",
|
|
|
|
"qual_name_offset": 7,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "Inner",
|
|
|
|
"kind": 23,
|
|
|
|
"declarations": [],
|
2018-07-10 06:40:26 +00:00
|
|
|
"spell": "6:10-6:15|10528472276654770367|2|1026",
|
2018-04-30 04:49:03 +00:00
|
|
|
"extent": "6:3-6:18|10528472276654770367|2|0",
|
|
|
|
"alias_of": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
2018-07-08 19:49:27 +00:00
|
|
|
"instances": [],
|
2018-07-21 06:27:47 +00:00
|
|
|
"uses": ["9:9-9:14|0|1|4"]
|
2018-03-31 03:16:33 +00:00
|
|
|
}],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2var": [{
|
|
|
|
"usr": 12028309045033782423,
|
|
|
|
"detailed_name": "Foo<B> b",
|
|
|
|
"qual_name_offset": 7,
|
|
|
|
"short_name": "b",
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "10:8-10:9|0|1|2",
|
|
|
|
"extent": "10:1-10:9|0|1|0",
|
2018-07-08 19:49:27 +00:00
|
|
|
"type": 11976530632376795217,
|
2018-03-31 03:16:33 +00:00
|
|
|
"uses": [],
|
|
|
|
"kind": 13,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr": 16721564935990383768,
|
|
|
|
"detailed_name": "Foo<A>::Inner a",
|
|
|
|
"qual_name_offset": 14,
|
|
|
|
"short_name": "a",
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "9:15-9:16|0|1|2",
|
|
|
|
"extent": "9:1-9:16|0|1|0",
|
2018-07-08 19:49:27 +00:00
|
|
|
"type": 7074603899792463171,
|
2018-03-31 03:16:33 +00:00
|
|
|
"uses": [],
|
|
|
|
"kind": 13,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0
|
2018-03-31 03:16:33 +00:00
|
|
|
}]
|
|
|
|
}
|
|
|
|
*/
|