2017-03-05 22:49:23 +00:00
|
|
|
enum A {};
|
|
|
|
enum B {};
|
2017-02-20 00:56:56 +00:00
|
|
|
|
2017-03-05 22:49:23 +00:00
|
|
|
template<typename T>
|
|
|
|
struct Foo {
|
|
|
|
struct Inner {};
|
|
|
|
};
|
|
|
|
|
|
|
|
Foo<A>::Inner a;
|
|
|
|
Foo<B> b;
|
2017-02-20 00:56:56 +00:00
|
|
|
/*
|
|
|
|
OUTPUT:
|
|
|
|
{
|
2017-12-12 05:15:37 +00:00
|
|
|
"includes": [],
|
|
|
|
"skipped_by_preprocessor": [],
|
2017-03-05 22:49:23 +00:00
|
|
|
"types": [{
|
2017-02-20 00:56:56 +00:00
|
|
|
"id": 0,
|
2017-03-05 22:49:23 +00:00
|
|
|
"usr": "c:@E@A",
|
|
|
|
"short_name": "A",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "A",
|
2017-04-05 08:29:15 +00:00
|
|
|
"definition_spelling": "1:6-1:7",
|
|
|
|
"definition_extent": "1:1-1:10",
|
2017-12-12 05:15:37 +00:00
|
|
|
"parents": [],
|
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
|
|
|
"instances": [],
|
2017-04-19 04:58:39 +00:00
|
|
|
"uses": ["1:6-1:7", "9:5-9:6"]
|
2017-02-20 02:00:58 +00:00
|
|
|
}, {
|
|
|
|
"id": 1,
|
2017-03-05 22:49:23 +00:00
|
|
|
"usr": "c:@E@B",
|
|
|
|
"short_name": "B",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "B",
|
2017-04-05 08:29:15 +00:00
|
|
|
"definition_spelling": "2:6-2:7",
|
|
|
|
"definition_extent": "2:1-2:10",
|
2017-12-12 05:15:37 +00:00
|
|
|
"parents": [],
|
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
|
|
|
"instances": [],
|
2017-04-19 04:58:39 +00:00
|
|
|
"uses": ["2:6-2:7", "10:5-10:6"]
|
2017-02-20 06:24:05 +00:00
|
|
|
}, {
|
|
|
|
"id": 2,
|
2017-03-05 22:49:23 +00:00
|
|
|
"usr": "c:@ST>1#T@Foo",
|
|
|
|
"short_name": "Foo",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "Foo",
|
2017-04-05 08:29:15 +00:00
|
|
|
"definition_spelling": "5:8-5:11",
|
|
|
|
"definition_extent": "5:1-7:2",
|
2017-12-12 05:15:37 +00:00
|
|
|
"parents": [],
|
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
2017-04-21 07:04:56 +00:00
|
|
|
"instances": [1],
|
2017-04-19 04:58:39 +00:00
|
|
|
"uses": ["5:8-5:11", "9:1-9:4", "10:1-10:4"]
|
2017-03-05 22:49:23 +00:00
|
|
|
}, {
|
|
|
|
"id": 3,
|
|
|
|
"usr": "c:@ST>1#T@Foo@S@Inner",
|
|
|
|
"short_name": "Inner",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "Foo::Inner",
|
2017-04-05 08:29:15 +00:00
|
|
|
"definition_spelling": "6:10-6:15",
|
|
|
|
"definition_extent": "6:3-6:18",
|
2017-12-12 05:15:37 +00:00
|
|
|
"parents": [],
|
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
2017-04-21 07:04:56 +00:00
|
|
|
"instances": [0],
|
2017-04-19 04:58:39 +00:00
|
|
|
"uses": ["6:10-6:15", "9:9-9:14"]
|
2017-02-20 00:56:56 +00:00
|
|
|
}],
|
2017-12-12 05:15:37 +00:00
|
|
|
"funcs": [],
|
2017-03-07 18:17:49 +00:00
|
|
|
"vars": [{
|
2017-03-05 22:49:23 +00:00
|
|
|
"id": 0,
|
|
|
|
"usr": "c:@a",
|
|
|
|
"short_name": "a",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "Foo<A>::Inner a",
|
2017-04-05 08:29:15 +00:00
|
|
|
"definition_spelling": "9:15-9:16",
|
|
|
|
"definition_extent": "9:1-9:16",
|
2017-03-05 22:49:23 +00:00
|
|
|
"variable_type": 3,
|
2017-05-21 01:26:50 +00:00
|
|
|
"is_local": false,
|
2017-06-29 06:25:19 +00:00
|
|
|
"is_macro": false,
|
2017-12-23 02:10:23 +00:00
|
|
|
"is_global": true,
|
|
|
|
"is_member": false,
|
2017-04-05 08:29:15 +00:00
|
|
|
"uses": ["9:15-9:16"]
|
2017-03-05 22:49:23 +00:00
|
|
|
}, {
|
|
|
|
"id": 1,
|
|
|
|
"usr": "c:@b",
|
|
|
|
"short_name": "b",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "Foo<B> b",
|
2017-04-05 08:29:15 +00:00
|
|
|
"definition_spelling": "10:8-10:9",
|
|
|
|
"definition_extent": "10:1-10:9",
|
2017-03-05 22:49:23 +00:00
|
|
|
"variable_type": 2,
|
2017-05-21 01:26:50 +00:00
|
|
|
"is_local": false,
|
2017-06-29 06:25:19 +00:00
|
|
|
"is_macro": false,
|
2017-12-23 02:10:23 +00:00
|
|
|
"is_global": true,
|
|
|
|
"is_member": false,
|
2017-04-05 08:29:15 +00:00
|
|
|
"uses": ["10:8-10:9"]
|
2017-03-05 22:49:23 +00:00
|
|
|
}]
|
|
|
|
}
|
2017-03-07 18:17:49 +00:00
|
|
|
*/
|