Debian Codegraph @

index_tests/namespaces/method_definition.cc

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