Debian Codegraph @

index_tests/constructors/implicit_constructor.cc

raw
1 struct Type {
2 Type() {}
3 };
4
5 void Make() {
6 Type foo0;
7 auto foo1 = Type();
8 }
9
10 /*
11 OUTPUT:
12 {
13 "includes": [],
14 "skipped_ranges": [],
15 "usr2func": [{
16 "usr": 3957104924306079513,
17 "detailed_name": "void Make()",
18 "qual_name_offset": 5,
19 "short_name": "Make",
20 "spell": "5:6-5:10|5:1-8:2|2|-1",
21 "bases": [],
22 "vars": [449111627548814328, 17097499197730163115],
23 "callees": ["6:8-6:12|10530961286677896857|3|16676", "6:8-6:12|10530961286677896857|3|16676",
24 "7:15-7:19|10530961286677896857|3|16676", "7:15-7:19|10530961286677896857|3|16676"], "kind": 12, "parent_kind": 1,
25 "storage": 0,
26 "declarations": [],
27 "derived": [],
28 "uses": []
29 }, {
30 "usr": 10530961286677896857,
31 "detailed_name": "Type::Type()",
32 "qual_name_offset": 0,
33 "short_name": "Type",
34 "spell": "2:3-2:7|2:3-2:12|1026|-1",
35 "bases": [],
36 "vars": [],
37 "callees": [],
38 "kind": 9,
39 "parent_kind": 23,
40 "storage": 0,
41 "declarations": [],
42 "derived": [],
43 "uses": ["6:8-6:12|16676|-1", "7:15-7:19|16676|-1"]
44 }],
45 "usr2type": [{
46 "usr": 13487927231218873822,
47 "detailed_name": "struct Type {}",
48 "qual_name_offset": 7,
49 "short_name": "Type",
50 "spell": "1:8-1:12|1:1-3:2|2|-1",
51 "bases": [],
52 "funcs": [10530961286677896857],
53 "types": [],
54 "vars": [],
55 "alias_of": 0,
56 "kind": 23,
57 "parent_kind": 1,
58 "declarations": [],
59 "derived": [],
60 "instances": [449111627548814328, 17097499197730163115],
61 "uses": ["2:3-2:7|4|-1", "6:3-6:7|4|-1", "7:15-7:19|4|-1"]
62 }],
63 "usr2var": [{
64 "usr": 449111627548814328,
65 "detailed_name": "Type foo0",
66 "qual_name_offset": 5,
67 "short_name": "foo0",
68 "spell": "6:8-6:12|6:3-6:12|2|-1",
69 "type": 13487927231218873822,
70 "kind": 13,
71 "parent_kind": 12,
72 "storage": 0,
73 "declarations": [],
74 "uses": []
75 }, {
76 "usr": 17097499197730163115,
77 "detailed_name": "Type foo1",
78 "qual_name_offset": 5,
79 "short_name": "foo1",
80 "hover": "Type foo1 = Type()",
81 "spell": "7:8-7:12|7:3-7:21|2|-1",
82 "type": 13487927231218873822,
83 "kind": 13,
84 "parent_kind": 12,
85 "storage": 0,
86 "declarations": [],
87 "uses": []
88 }]
89 }
90 */