Debian Codegraph @

index_tests/declaration_vs_definition/func.cc

raw
1 void foo();
2 void foo();
3 void foo() {}
4 void foo();
5
6 /*
7 // Note: we always use the latest seen ("most local") definition/declaration.
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-3:14|2|-1",
18 "bases": [],
19 "vars": [],
20 "callees": [],
21 "kind": 12,
22 "parent_kind": 1,
23 "storage": 0,
24 "declarations": ["1:6-1:9|1:1-1:11|1|-1", "2:6-2:9|2:1-2:11|1|-1", "4:6-4:9|4:1-4:11|1|-1"],
25 "derived": [],
26 "uses": []
27 }],
28 "usr2type": [],
29 "usr2var": []
30 }
31 */