Debian Codegraph @

index_tests/namespaces/function_definition.cc

raw
1 namespace hello {
2 void foo() {}
3 }
4
5 /*
6 OUTPUT:
7 {
8 "includes": [],
9 "skipped_ranges": [],
10 "usr2func": [{
11 "usr": 243328841292951622,
12 "detailed_name": "void hello::foo()",
13 "qual_name_offset": 5,
14 "short_name": "foo",
15 "spell": "2:6-2:9|2:1-2:14|1026|-1",
16 "bases": [],
17 "vars": [],
18 "callees": [],
19 "kind": 12,
20 "parent_kind": 3,
21 "storage": 0,
22 "declarations": [],
23 "derived": [],
24 "uses": []
25 }],
26 "usr2type": [{
27 "usr": 2029211996748007610,
28 "detailed_name": "namespace hello {}",
29 "qual_name_offset": 10,
30 "short_name": "hello",
31 "bases": [],
32 "funcs": [243328841292951622],
33 "types": [],
34 "vars": [],
35 "alias_of": 0,
36 "kind": 3,
37 "parent_kind": 0,
38 "declarations": ["1:11-1:16|1:1-3:2|1|-1"],
39 "derived": [],
40 "instances": [],
41 "uses": []
42 }],
43 "usr2var": []
44 }
45 */