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": [], "skipped_ranges": [], "usr2func": [], "usr2type": [{ "usr": 16985894625255407295, "detailed_name": "", "qual_name_offset": 0, "short_name": "", "kind": 0, "declarations": [], "alias_of": 0, "bases": [], "derived": [], "types": [], "funcs": [], "vars": [], "instances": [], "uses": [] }], "usr2var": [{ "usr": 439339022761937396, "detailed_name": "A", "qual_name_offset": 0, "short_name": "A", "hover": "A = 0", "comments": "This file cannot be built directory. It is included in an enum definition of\nanother file.", "declarations": [], "spell": "4:1-4:2|16985894625255407295|2|1026|-1", "extent": "4:1-4:2|16985894625255407295|2|0|-1", "type": 0, "uses": [], "kind": 22, "storage": 0 }, { "usr": 8524995777615948802, "detailed_name": "C", "qual_name_offset": 0, "short_name": "C", "hover": "C = 2", "comments": "This file cannot be built directory. It is included in an enum definition of\nanother file.", "declarations": [], "spell": "6:1-6:2|16985894625255407295|2|1026|-1", "extent": "6:1-6:2|16985894625255407295|2|0|-1", "type": 0, "uses": [], "kind": 22, "storage": 0 }, { "usr": 15962370213938840720, "detailed_name": "B", "qual_name_offset": 0, "short_name": "B", "hover": "B = 1", "comments": "This file cannot be built directory. It is included in an enum definition of\nanother file.", "declarations": [], "spell": "5:1-5:2|16985894625255407295|2|1026|-1", "extent": "5:1-5:2|16985894625255407295|2|0|-1", "type": 0, "uses": [], "kind": 22, "storage": 0 }] } OUTPUT: funky_enum.cc { "includes": [{ "line": 1, "resolved_path": "&funky_enum.h" }], "skipped_ranges": [], "usr2func": [], "usr2type": [{ "usr": 16985894625255407295, "detailed_name": "enum Foo {}", "qual_name_offset": 5, "short_name": "Foo", "kind": 10, "declarations": [], "spell": "1:6-1:9|0|1|2|-1", "extent": "1:1-3:2|0|1|0|-1", "alias_of": 0, "bases": [], "derived": [], "types": [], "funcs": [], "vars": [], "instances": [], "uses": [] }], "usr2var": [] } */