Skip to content

Commit 954f69f

Browse files
committed
chore: update tests
1 parent d1c44c4 commit 954f69f

25 files changed

+625
-174
lines changed

test-files/old-tests/alias-template.xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
<tparam name="T" class="type"/>
2020
<alias name="C" id="f75RIL8qKOwbyH6ffvrv59F0nCA=">
2121
<file path="alias-template.cpp" line="8" class="def"/>
22-
<type name="A&lt;T&gt;"/>
22+
<type class="specialization" id="5tUSuMtQqtYE49jBjSYSWp0DJAM=" name="A">
23+
<targ value="T"/>
24+
</type>
2325
</alias>
2426
</template>
2527
<template>
@@ -30,7 +32,10 @@
3032
<tparam name="U" class="type"/>
3133
<alias name="E" id="STM3CgeaOEakPrQJdlRWWM4MMFo=">
3234
<file path="alias-template.cpp" line="14" class="def"/>
33-
<type name="B&lt;T, U&gt;"/>
35+
<type class="specialization" id="swBEqeWAJoaWVKty+1lCoYUK04A=" name="B">
36+
<targ value="T"/>
37+
<targ value="U"/>
38+
</type>
3439
</alias>
3540
</template>
3641
</struct>

test-files/old-tests/attributes_1.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
<function name="f" id="s6nsa+zVhpzzrN+yUVPP5rvdXqs=">
66
<file path="attributes_1.cpp" line="2"/>
77
<attr id="nodiscard"/>
8-
<return type="bool"/>
8+
<return>
9+
<type name="bool"/>
10+
</return>
911
</function>
1012
</namespace>
1113
</mrdox>

test-files/old-tests/class-template.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</field>
1616
<field name="x" id="81imwKxfuTfd7lfVGnF+fKx46lY=">
1717
<file path="class-template.cpp" line="7" class="def"/>
18-
<type name="S"/>
18+
<type class="tag" id="pOYGF6pLJlICuiGO0Xj0daDb/to=" name="S"/>
1919
</field>
2020
<field name="y" id="UKBRhwzQ0PeL6ZwfxmreRBoDQSY=">
2121
<file path="class-template.cpp" line="8" class="def"/>
@@ -42,7 +42,7 @@
4242
<file path="class-template.cpp" line="21" class="def"/>
4343
<field name="x" id="bQCgblScrSKOxQMVJxT7vFw9W4I=">
4444
<file path="class-template.cpp" line="23" class="def"/>
45-
<type name="S"/>
45+
<type class="tag" id="pOYGF6pLJlICuiGO0Xj0daDb/to=" name="S"/>
4646
</field>
4747
<field name="y" id="phg6+zMhjV0SJ7vav871OGqoPPQ=">
4848
<file path="class-template.cpp" line="24" class="def"/>
@@ -69,7 +69,7 @@
6969
<file path="class-template.cpp" line="35" class="def"/>
7070
<field name="w" id="bLX5mthqXMHAtLNEc87RKLQSUyU=">
7171
<file path="class-template.cpp" line="37" class="def"/>
72-
<type name="S"/>
72+
<type class="tag" id="pOYGF6pLJlICuiGO0Xj0daDb/to=" name="S"/>
7373
</field>
7474
<field name="x" id="qSNOAAxaet7aBxvD7WvFqJOpm3A=">
7575
<file path="class-template.cpp" line="38" class="def"/>

test-files/old-tests/duplicate-jdoc.xml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
<namespace name="">
55
<function name="f0" id="e1UQQek5v3C9OClW5cGf57XvwQo=">
66
<file path="duplicate-jdoc.cpp" line="5" class="def"/>
7-
<return type="int"/>
7+
<return>
8+
<type name="int"/>
9+
</return>
810
<doc>
911
<brief>
1012
<text> f0 brief</text>
@@ -21,7 +23,9 @@
2123
</function>
2224
<function name="f1" id="CnO51rIKTzfiVKHkR3TdPa0eo+8=">
2325
<file path="duplicate-jdoc.cpp" line="11" class="def"/>
24-
<return type="int"/>
26+
<return>
27+
<type name="int"/>
28+
</return>
2529
<doc>
2630
<brief>
2731
<text> f1 brief</text>
@@ -38,7 +42,9 @@
3842
</function>
3943
<function name="g0" id="Vn88rrW6JgrUc7j/24MUTRnpkRg=">
4044
<file path="duplicate-jdoc.cpp" line="17" class="def"/>
41-
<param name="a" type="int"/>
45+
<param name="a">
46+
<type name="int"/>
47+
</param>
4248
<doc>
4349
<brief>
4450
<text> g0 brief</text>
@@ -55,7 +61,9 @@
5561
</function>
5662
<function name="g1" id="99zzvQbBwXKh7ewapNRMnAKND3I=">
5763
<file path="duplicate-jdoc.cpp" line="23" class="def"/>
58-
<param name="a" type="int"/>
64+
<param name="a">
65+
<type name="int"/>
66+
</param>
5967
<doc>
6068
<brief>
6169
<text> g1 brief</text>

test-files/old-tests/explicit-conv-operator.xml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,29 @@
77
<function name="operator bool" id="64zY8rVu+TzEUayzMrnV65i9nFc=">
88
<file path="explicit-conv-operator.cpp" line="4"/>
99
<attr id="explicit-spec" name="explicit" value="1"/>
10-
<return type="bool"/>
10+
<return>
11+
<type name="bool"/>
12+
</return>
1113
</function>
1214
</struct>
1315
<struct name="ExplicitFalse" id="Lt5u3k14Z7EBxY7Ike3h9qkJ0fo=">
1416
<file path="explicit-conv-operator.cpp" line="7" class="def"/>
1517
<function name="operator bool" id="hJXOxv26Y9uxUYMMVZRsp3Wps4A=">
1618
<file path="explicit-conv-operator.cpp" line="8"/>
1719
<attr id="explicit-spec" name="explicit(false)" value="2"/>
18-
<return type="bool"/>
20+
<return>
21+
<type name="bool"/>
22+
</return>
1923
</function>
2024
</struct>
2125
<struct name="ExplicitTrue" id="htdCGapMsdazR1XkXoanrOCkvDE=">
2226
<file path="explicit-conv-operator.cpp" line="11" class="def"/>
2327
<function name="operator bool" id="9tpZWv9eJGfWj37jmTdNTg+gp14=">
2428
<file path="explicit-conv-operator.cpp" line="12"/>
2529
<attr id="explicit-spec" name="explicit(true)" value="3"/>
26-
<return type="bool"/>
30+
<return>
31+
<type name="bool"/>
32+
</return>
2733
</function>
2834
</struct>
2935
<template>
@@ -33,7 +39,9 @@
3339
<function name="operator bool" id="q6N8XkMK9WWWGKNQnlx/o2E1EYc=">
3440
<file path="explicit-conv-operator.cpp" line="17"/>
3541
<attr id="explicit-spec" name="explicit(expr)" value="4"/>
36-
<return type="bool"/>
42+
<return>
43+
<type name="bool"/>
44+
</return>
3745
</function>
3846
</struct>
3947
</template>

test-files/old-tests/explicit-ctor.xml

Lines changed: 64 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,31 @@
1111
<function name="Explicit" id="CuzDbFSxtCdVcGerq2UySnHF7po=">
1212
<file path="explicit-ctor.cpp" line="5"/>
1313
<attr id="explicit-spec" name="explicit" value="1"/>
14-
<param type="const Explicit&amp;"/>
14+
<param>
15+
<type class="lvalue-reference">
16+
<pointee-type class="tag" id="bonobNKGOblPVcRjxpiPan4nYnc=" name="Explicit" cv-qualifiers="const"/>
17+
</type>
18+
</param>
1519
</function>
1620
<function name="Explicit" id="saOH3agrCzNHcRhbXHOM0FYFxGc=">
1721
<file path="explicit-ctor.cpp" line="6"/>
1822
<attr id="exception-spec" name="noexcept" value="5"/>
1923
<attr id="explicit-spec" name="explicit" value="1"/>
20-
<param type="Explicit&amp;&amp;"/>
24+
<param>
25+
<type class="rvalue-reference">
26+
<pointee-type class="tag" id="bonobNKGOblPVcRjxpiPan4nYnc=" name="Explicit"/>
27+
</type>
28+
</param>
2129
</function>
2230
<function name="Explicit" id="Oj6cGCOaarVfZXkgsr/pOPOOiFY=">
2331
<file path="explicit-ctor.cpp" line="7"/>
2432
<attr id="explicit-spec" name="explicit" value="1"/>
25-
<param type="int"/>
26-
<param type="int"/>
33+
<param>
34+
<type name="int"/>
35+
</param>
36+
<param>
37+
<type name="int"/>
38+
</param>
2739
</function>
2840
</struct>
2941
<struct name="ExplicitTrue" id="htdCGapMsdazR1XkXoanrOCkvDE=">
@@ -35,19 +47,31 @@
3547
<function name="ExplicitTrue" id="Tj9uY+jY7QBYQC8IsjplHuoDgQo=">
3648
<file path="explicit-ctor.cpp" line="12"/>
3749
<attr id="explicit-spec" name="explicit(true)" value="3"/>
38-
<param type="const ExplicitTrue&amp;"/>
50+
<param>
51+
<type class="lvalue-reference">
52+
<pointee-type class="tag" id="htdCGapMsdazR1XkXoanrOCkvDE=" name="ExplicitTrue" cv-qualifiers="const"/>
53+
</type>
54+
</param>
3955
</function>
4056
<function name="ExplicitTrue" id="iQOO8pEh0iNSnpupVwR9tCVIf8U=">
4157
<file path="explicit-ctor.cpp" line="13"/>
4258
<attr id="exception-spec" name="noexcept" value="5"/>
4359
<attr id="explicit-spec" name="explicit(true)" value="3"/>
44-
<param type="ExplicitTrue&amp;&amp;"/>
60+
<param>
61+
<type class="rvalue-reference">
62+
<pointee-type class="tag" id="htdCGapMsdazR1XkXoanrOCkvDE=" name="ExplicitTrue"/>
63+
</type>
64+
</param>
4565
</function>
4666
<function name="ExplicitTrue" id="XCoHYDLlYJYpV6Ut7Ms0GjcQKjM=">
4767
<file path="explicit-ctor.cpp" line="14"/>
4868
<attr id="explicit-spec" name="explicit(true)" value="3"/>
49-
<param type="int"/>
50-
<param type="int"/>
69+
<param>
70+
<type name="int"/>
71+
</param>
72+
<param>
73+
<type name="int"/>
74+
</param>
5175
</function>
5276
</struct>
5377
<struct name="ExplicitFalse" id="Lt5u3k14Z7EBxY7Ike3h9qkJ0fo=">
@@ -59,19 +83,31 @@
5983
<function name="ExplicitFalse" id="gsl+2i8v8v4Lifq3SZ5sFhSfseQ=">
6084
<file path="explicit-ctor.cpp" line="19"/>
6185
<attr id="explicit-spec" name="explicit(false)" value="2"/>
62-
<param type="const ExplicitFalse&amp;"/>
86+
<param>
87+
<type class="lvalue-reference">
88+
<pointee-type class="tag" id="Lt5u3k14Z7EBxY7Ike3h9qkJ0fo=" name="ExplicitFalse" cv-qualifiers="const"/>
89+
</type>
90+
</param>
6391
</function>
6492
<function name="ExplicitFalse" id="qXjKOO0FQ3p2vTehkEQl2kIKpFs=">
6593
<file path="explicit-ctor.cpp" line="20"/>
6694
<attr id="exception-spec" name="noexcept" value="5"/>
6795
<attr id="explicit-spec" name="explicit(false)" value="2"/>
68-
<param type="ExplicitFalse&amp;&amp;"/>
96+
<param>
97+
<type class="rvalue-reference">
98+
<pointee-type class="tag" id="Lt5u3k14Z7EBxY7Ike3h9qkJ0fo=" name="ExplicitFalse"/>
99+
</type>
100+
</param>
69101
</function>
70102
<function name="ExplicitFalse" id="T0aRgSzz7xtFbPWKv3q57ueIYlI=">
71103
<file path="explicit-ctor.cpp" line="21"/>
72104
<attr id="explicit-spec" name="explicit(false)" value="2"/>
73-
<param type="int"/>
74-
<param type="int"/>
105+
<param>
106+
<type name="int"/>
107+
</param>
108+
<param>
109+
<type name="int"/>
110+
</param>
75111
</function>
76112
</struct>
77113
<template>
@@ -85,19 +121,31 @@
85121
<function name="ExplicitExpression&lt;B&gt;" id="Ty1Sv+L6at7TykYdCITSQKmXwVs=">
86122
<file path="explicit-ctor.cpp" line="27"/>
87123
<attr id="explicit-spec" name="explicit(expr)" value="4"/>
88-
<param type="const ExplicitExpression&amp;"/>
124+
<param>
125+
<type class="lvalue-reference">
126+
<pointee-type class="tag" id="ztb0u1Q4SVBUQ0roTOM7MFlUt/o=" name="ExplicitExpression" cv-qualifiers="const"/>
127+
</type>
128+
</param>
89129
</function>
90130
<function name="ExplicitExpression&lt;B&gt;" id="gDoLCstIvgYYJng1jhLOLe/yz+Q=">
91131
<file path="explicit-ctor.cpp" line="28"/>
92132
<attr id="exception-spec" name="noexcept" value="5"/>
93133
<attr id="explicit-spec" name="explicit(expr)" value="4"/>
94-
<param type="ExplicitExpression&amp;&amp;"/>
134+
<param>
135+
<type class="rvalue-reference">
136+
<pointee-type class="tag" id="ztb0u1Q4SVBUQ0roTOM7MFlUt/o=" name="ExplicitExpression"/>
137+
</type>
138+
</param>
95139
</function>
96140
<function name="ExplicitExpression&lt;B&gt;" id="J31K1hQq31LWiQhVy5ro0V+1pD0=">
97141
<file path="explicit-ctor.cpp" line="29"/>
98142
<attr id="explicit-spec" name="explicit(expr)" value="4"/>
99-
<param type="int"/>
100-
<param type="int"/>
143+
<param>
144+
<type name="int"/>
145+
</param>
146+
<param>
147+
<type name="int"/>
148+
</param>
101149
</function>
102150
</struct>
103151
</template>

test-files/old-tests/explicit-deduct-guide.xml

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,55 @@
1212
<file path="explicit-deduct-guide.cpp" line="6"/>
1313
<attr id="has-trailing-return"/>
1414
<attr id="explicit-spec" name="explicit" value="1"/>
15-
<return type="X&lt;0&gt;"/>
16-
<param type="bool"/>
15+
<return>
16+
<type class="specialization" id="7wllQWhGGsbbeoZVa3gh4d7bcq8=" name="X">
17+
<targ value="0"/>
18+
</type>
19+
</return>
20+
<param>
21+
<type name="bool"/>
22+
</param>
1723
</function>
1824
<function name="&lt;deduction guide for X&gt;" id="AtQyLakD3CjcM24GabAbHMNgVU4=">
1925
<file path="explicit-deduct-guide.cpp" line="8"/>
2026
<attr id="has-trailing-return"/>
2127
<attr id="explicit-spec" name="explicit(true)" value="3"/>
22-
<return type="X&lt;0&gt;"/>
23-
<param type="char"/>
28+
<return>
29+
<type class="specialization" id="7wllQWhGGsbbeoZVa3gh4d7bcq8=" name="X">
30+
<targ value="0"/>
31+
</type>
32+
</return>
33+
<param>
34+
<type name="char"/>
35+
</param>
2436
</function>
2537
<function name="&lt;deduction guide for X&gt;" id="tkYkUU6H8cbFpCU7yBuvBLkT6dg=">
2638
<file path="explicit-deduct-guide.cpp" line="10"/>
2739
<attr id="has-trailing-return"/>
2840
<attr id="explicit-spec" name="explicit(false)" value="2"/>
29-
<return type="X&lt;0&gt;"/>
30-
<param type="int"/>
41+
<return>
42+
<type class="specialization" id="7wllQWhGGsbbeoZVa3gh4d7bcq8=" name="X">
43+
<targ value="0"/>
44+
</type>
45+
</return>
46+
<param>
47+
<type name="int"/>
48+
</param>
3149
</function>
3250
<template>
3351
<tparam name="B" class="non-type" type="bool" default="true"/>
3452
<function name="&lt;deduction guide for X&gt;" id="YS/v8XQ/9ShQ2spNAh5EY33PN7s=">
3553
<file path="explicit-deduct-guide.cpp" line="13"/>
3654
<attr id="has-trailing-return"/>
3755
<attr id="explicit-spec" name="explicit(expr)" value="4"/>
38-
<return type="X&lt;0&gt;"/>
39-
<param type="long"/>
56+
<return>
57+
<type class="specialization" id="7wllQWhGGsbbeoZVa3gh4d7bcq8=" name="X">
58+
<targ value="0"/>
59+
</type>
60+
</return>
61+
<param>
62+
<type name="long"/>
63+
</param>
4064
</function>
4165
</template>
4266
</namespace>

0 commit comments

Comments
 (0)