2017-04-19 06:56:37 +00:00
|
|
|
enum Foo {
|
|
|
|
#include "funky_enum.h"
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
// TODO: In the future try to have better support for types defined across
|
|
|
|
// multiple files.
|
|
|
|
|
|
|
|
OUTPUT: funky_enum.h
|
|
|
|
{
|
2017-12-12 05:15:37 +00:00
|
|
|
"includes": [],
|
|
|
|
"skipped_by_preprocessor": [],
|
2017-04-19 06:56:37 +00:00
|
|
|
"types": [{
|
|
|
|
"id": 0,
|
|
|
|
"usr": "c:@E@Foo",
|
2017-12-12 05:06:27 +00:00
|
|
|
"short_name": "",
|
|
|
|
"detailed_name": "",
|
2017-12-19 05:20:00 +00:00
|
|
|
"hover": "",
|
2017-12-12 05:15:37 +00:00
|
|
|
"parents": [],
|
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [0, 1, 2],
|
|
|
|
"instances": [],
|
|
|
|
"uses": []
|
2017-04-19 06:56:37 +00:00
|
|
|
}],
|
2017-12-12 05:15:37 +00:00
|
|
|
"funcs": [],
|
2017-04-19 06:56:37 +00:00
|
|
|
"vars": [{
|
|
|
|
"id": 0,
|
|
|
|
"usr": "c:@E@Foo@A",
|
|
|
|
"short_name": "A",
|
|
|
|
"detailed_name": "Foo Foo::A",
|
2017-12-19 05:20:00 +00:00
|
|
|
"hover": "Foo",
|
2017-04-19 06:56:37 +00:00
|
|
|
"definition_spelling": "4:1-4:2",
|
|
|
|
"definition_extent": "4:1-4:2",
|
|
|
|
"variable_type": 0,
|
|
|
|
"declaring_type": 0,
|
2017-05-21 01:26:50 +00:00
|
|
|
"is_local": false,
|
2017-06-29 06:25:19 +00:00
|
|
|
"is_macro": false,
|
2017-04-19 06:56:37 +00:00
|
|
|
"uses": ["4:1-4:2"]
|
|
|
|
}, {
|
|
|
|
"id": 1,
|
|
|
|
"usr": "c:@E@Foo@B",
|
|
|
|
"short_name": "B",
|
|
|
|
"detailed_name": "Foo Foo::B",
|
2017-12-19 05:20:00 +00:00
|
|
|
"hover": "Foo",
|
2017-04-19 06:56:37 +00:00
|
|
|
"definition_spelling": "5:1-5:2",
|
|
|
|
"definition_extent": "5:1-5:2",
|
|
|
|
"variable_type": 0,
|
|
|
|
"declaring_type": 0,
|
2017-05-21 01:26:50 +00:00
|
|
|
"is_local": false,
|
2017-06-29 06:25:19 +00:00
|
|
|
"is_macro": false,
|
2017-04-19 06:56:37 +00:00
|
|
|
"uses": ["5:1-5:2"]
|
|
|
|
}, {
|
|
|
|
"id": 2,
|
|
|
|
"usr": "c:@E@Foo@C",
|
|
|
|
"short_name": "C",
|
|
|
|
"detailed_name": "Foo Foo::C",
|
2017-12-19 05:20:00 +00:00
|
|
|
"hover": "Foo",
|
2017-04-19 06:56:37 +00:00
|
|
|
"definition_spelling": "6:1-6:2",
|
|
|
|
"definition_extent": "6:1-6:2",
|
|
|
|
"variable_type": 0,
|
|
|
|
"declaring_type": 0,
|
2017-05-21 01:26:50 +00:00
|
|
|
"is_local": false,
|
2017-06-29 06:25:19 +00:00
|
|
|
"is_macro": false,
|
2017-04-19 06:56:37 +00:00
|
|
|
"uses": ["6:1-6:2"]
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
OUTPUT: funky_enum.cc
|
|
|
|
{
|
2017-05-21 03:46:15 +00:00
|
|
|
"includes": [{
|
|
|
|
"line": 2,
|
2017-11-30 03:21:23 +00:00
|
|
|
"resolved_path": "&funky_enum.h"
|
2017-05-21 03:46:15 +00:00
|
|
|
}],
|
2017-12-12 05:15:37 +00:00
|
|
|
"skipped_by_preprocessor": [],
|
2017-04-19 06:56:37 +00:00
|
|
|
"types": [{
|
|
|
|
"id": 0,
|
|
|
|
"usr": "c:@E@Foo",
|
|
|
|
"short_name": "Foo",
|
|
|
|
"detailed_name": "Foo",
|
2017-12-19 05:20:00 +00:00
|
|
|
"hover": "Foo",
|
2017-04-19 06:56:37 +00:00
|
|
|
"definition_spelling": "1:6-1:9",
|
|
|
|
"definition_extent": "1:1-3:2",
|
2017-12-12 05:15:37 +00:00
|
|
|
"parents": [],
|
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
|
|
|
"instances": [],
|
2017-04-19 06:56:37 +00:00
|
|
|
"uses": ["1:6-1:9"]
|
2017-12-12 05:15:37 +00:00
|
|
|
}],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": []
|
2017-04-19 06:56:37 +00:00
|
|
|
}
|
|
|
|
*/
|