Debian Codegraph @

index_tests/multi_file/funky_enum.cc

raw
1 enum Foo {
2 #include "funky_enum.h"
3 };
4
5 /*
6 // TODO: In the future try to have better support for types defined across
7 // multiple files.
8
9 OUTPUT: funky_enum.h
10 {
11 "includes": [],
12 "skipped_ranges": [],
13 "usr2func": [],
14 "usr2type": [],
15 "usr2var": [{
16 "usr": 439339022761937396,
17 "detailed_name": "A",
18 "qual_name_offset": 0,
19 "short_name": "A",
20 "hover": "A = 0",
21 "comments": "This file cannot be built directory. It is included in an enum definition of\nanother file.",
22 "spell": "4:1-4:2|4:1-4:2|1026|-1",
23 "type": 16985894625255407295,
24 "kind": 22,
25 "parent_kind": 1,
26 "storage": 0,
27 "declarations": [],
28 "uses": []
29 }, {
30 "usr": 8524995777615948802,
31 "detailed_name": "C",
32 "qual_name_offset": 0,
33 "short_name": "C",
34 "hover": "C = 2",
35 "comments": "This file cannot be built directory. It is included in an enum definition of\nanother file.",
36 "spell": "6:1-6:2|6:1-6:2|1026|-1",
37 "type": 16985894625255407295,
38 "kind": 22,
39 "parent_kind": 1,
40 "storage": 0,
41 "declarations": [],
42 "uses": []
43 }, {
44 "usr": 15962370213938840720,
45 "detailed_name": "B",
46 "qual_name_offset": 0,
47 "short_name": "B",
48 "hover": "B = 1",
49 "comments": "This file cannot be built directory. It is included in an enum definition of\nanother file.",
50 "spell": "5:1-5:2|5:1-5:2|1026|-1",
51 "type": 16985894625255407295,
52 "kind": 22,
53 "parent_kind": 1,
54 "storage": 0,
55 "declarations": [],
56 "uses": []
57 }]
58 }
59 OUTPUT: funky_enum.cc
60 {
61 "includes": [{
62 "line": 1,
63 "resolved_path": "&funky_enum.h"
64 }],
65 "skipped_ranges": [],
66 "usr2func": [],
67 "usr2type": [{
68 "usr": 16985894625255407295,
69 "detailed_name": "enum Foo {}",
70 "qual_name_offset": 5,
71 "short_name": "Foo",
72 "spell": "1:6-1:9|1:1-3:2|2|-1",
73 "bases": [],
74 "funcs": [],
75 "types": [],
76 "vars": [],
77 "alias_of": 0,
78 "kind": 10,
79 "parent_kind": 1,
80 "declarations": [],
81 "derived": [],
82 "instances": [],
83 "uses": []
84 }],
85 "usr2var": []
86 }
87 */