2018-03-31 03:16:33 +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
|
|
|
|
{
|
|
|
|
"includes": [],
|
2018-07-07 23:56:47 +00:00
|
|
|
"skipped_ranges": [],
|
|
|
|
"usr2func": [{
|
|
|
|
"usr": 16985894625255407295,
|
|
|
|
"detailed_name": "",
|
|
|
|
"qual_name_offset": 0,
|
|
|
|
"short_name": "",
|
|
|
|
"kind": 0,
|
|
|
|
"storage": 0,
|
|
|
|
"declarations": [],
|
|
|
|
"declaring_type": 0,
|
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"vars": [439339022761937396, 15962370213938840720, 8524995777615948802],
|
|
|
|
"uses": [],
|
|
|
|
"callees": []
|
|
|
|
}],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2type": [{
|
2018-03-31 03:16:33 +00:00
|
|
|
"usr": 16985894625255407295,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 0,
|
2018-07-07 23:56:47 +00:00
|
|
|
"short_name": "",
|
2018-03-31 03:16:33 +00:00
|
|
|
"kind": 0,
|
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"alias_of": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
|
|
|
"instances": [],
|
|
|
|
"uses": []
|
|
|
|
}],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2var": [{
|
2018-03-31 03:16:33 +00:00
|
|
|
"usr": 439339022761937396,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "A",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "A",
|
2018-07-07 23:56:47 +00:00
|
|
|
"hover": "A = 0",
|
|
|
|
"comments": "This file cannot be built directory. It is included in an enum definition of\nanother file.",
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
2018-07-07 23:56:47 +00:00
|
|
|
"spell": "4:1-4:2|16985894625255407295|2|514",
|
2018-04-30 04:49:03 +00:00
|
|
|
"extent": "4:1-4:2|16985894625255407295|2|0",
|
2018-07-07 23:56:47 +00:00
|
|
|
"type": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"uses": [],
|
|
|
|
"kind": 22,
|
|
|
|
"storage": 0
|
|
|
|
}, {
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr": 8524995777615948802,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "C",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 0,
|
2018-04-30 04:49:03 +00:00
|
|
|
"short_name": "C",
|
2018-07-07 23:56:47 +00:00
|
|
|
"hover": "C = 2",
|
|
|
|
"comments": "This file cannot be built directory. It is included in an enum definition of\nanother file.",
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
2018-07-07 23:56:47 +00:00
|
|
|
"spell": "6:1-6:2|16985894625255407295|2|514",
|
2018-04-30 04:49:03 +00:00
|
|
|
"extent": "6:1-6:2|16985894625255407295|2|0",
|
2018-07-07 23:56:47 +00:00
|
|
|
"type": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"uses": [],
|
|
|
|
"kind": 22,
|
|
|
|
"storage": 0
|
|
|
|
}, {
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr": 15962370213938840720,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "B",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 0,
|
2018-04-30 04:49:03 +00:00
|
|
|
"short_name": "B",
|
2018-07-07 23:56:47 +00:00
|
|
|
"hover": "B = 1",
|
|
|
|
"comments": "This file cannot be built directory. It is included in an enum definition of\nanother file.",
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
2018-07-07 23:56:47 +00:00
|
|
|
"spell": "5:1-5:2|16985894625255407295|2|514",
|
2018-04-30 04:49:03 +00:00
|
|
|
"extent": "5:1-5:2|16985894625255407295|2|0",
|
2018-07-07 23:56:47 +00:00
|
|
|
"type": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"uses": [],
|
|
|
|
"kind": 22,
|
|
|
|
"storage": 0
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
OUTPUT: funky_enum.cc
|
|
|
|
{
|
2018-07-08 07:46:53 +00:00
|
|
|
"includes": [{
|
|
|
|
"line": 1,
|
|
|
|
"resolved_path": "&funky_enum.h"
|
|
|
|
}],
|
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": 16985894625255407295,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "enum Foo {\n}",
|
|
|
|
"qual_name_offset": 5,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "Foo",
|
|
|
|
"kind": 10,
|
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "1:6-1:9|0|1|2",
|
|
|
|
"extent": "1:1-3:2|0|1|0",
|
|
|
|
"alias_of": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
|
|
|
"instances": [],
|
|
|
|
"uses": []
|
|
|
|
}],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2var": []
|
2018-03-31 03:16:33 +00:00
|
|
|
}
|
|
|
|
*/
|