Debian Codegraph @

index_tests/vars/function_local.cc

raw
1 struct Foo;
2
3 void foo() {
4 Foo* a;
5 }
6
7 /*
8 OUTPUT:
9 {
10 "includes": [],
11 "skipped_ranges": [],
12 "usr2func": [{
13 "usr": 4259594751088586730,
14 "detailed_name": "void foo()",
15 "qual_name_offset": 5,
16 "short_name": "foo",
17 "spell": "3:6-3:9|3:1-5:2|2|-1",
18 "bases": [],
19 "vars": [13198746475679542317],
20 "callees": [],
21 "kind": 12,
22 "parent_kind": 1,
23 "storage": 0,
24 "declarations": [],
25 "derived": [],
26 "uses": []
27 }],
28 "usr2type": [{
29 "usr": 15041163540773201510,
30 "detailed_name": "struct Foo",
31 "qual_name_offset": 7,
32 "short_name": "Foo",
33 "bases": [],
34 "funcs": [],
35 "types": [],
36 "vars": [],
37 "alias_of": 0,
38 "kind": 23,
39 "parent_kind": 0,
40 "declarations": ["1:8-1:11|1:1-1:11|1|-1"],
41 "derived": [],
42 "instances": [13198746475679542317],
43 "uses": ["4:3-4:6|4|-1"]
44 }],
45 "usr2var": [{
46 "usr": 13198746475679542317,
47 "detailed_name": "Foo *a",
48 "qual_name_offset": 5,
49 "short_name": "a",
50 "spell": "4:8-4:9|4:3-4:9|2|-1",
51 "type": 15041163540773201510,
52 "kind": 13,
53 "parent_kind": 12,
54 "storage": 0,
55 "declarations": [],
56 "uses": []
57 }]
58 }
59 */