Skip to content

Commit 7ad5f0b

Browse files
committed
test for #1025 (w/private)
1 parent 65767e2 commit 7ad5f0b

File tree

5 files changed

+468
-0
lines changed

5 files changed

+468
-0
lines changed
Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
= Reference
2+
:mrdocs:
3+
4+
[#index]
5+
== Global namespace
6+
7+
=== Types
8+
9+
[cols=1]
10+
|===
11+
| Name
12+
| link:#Base[`Base`]
13+
| link:#Derived[`Derived`]
14+
|===
15+
16+
[#Base]
17+
== Base
18+
19+
=== Synopsis
20+
21+
Declared in `<shadowing.cpp>`
22+
23+
[source,cpp,subs="verbatim,replacements,macros,-callouts"]
24+
----
25+
struct Base;
26+
----
27+
28+
=== Member Functions
29+
30+
[cols=1]
31+
|===
32+
| Name
33+
| link:#Base-bar[`bar`]
34+
| link:#Base-baz[`baz`]
35+
| link:#Base-foo[`foo`]
36+
|===
37+
38+
=== Derived Classes
39+
40+
[cols=2]
41+
|===
42+
| Name
43+
| Description
44+
| link:#Derived[`Derived`]
45+
|
46+
|===
47+
48+
[#Base-bar]
49+
== link:#Base[Base]::bar
50+
51+
=== Synopsis
52+
53+
Declared in `<shadowing.cpp>`
54+
55+
[source,cpp,subs="verbatim,replacements,macros,-callouts"]
56+
----
57+
void
58+
bar();
59+
----
60+
61+
[#Base-baz]
62+
== link:#Base[Base]::baz
63+
64+
=== Synopsis
65+
66+
Declared in `<shadowing.cpp>`
67+
68+
[source,cpp,subs="verbatim,replacements,macros,-callouts"]
69+
----
70+
void
71+
baz();
72+
----
73+
74+
[#Base-foo]
75+
== link:#Base[Base]::foo
76+
77+
=== Synopsis
78+
79+
Declared in `<shadowing.cpp>`
80+
81+
[source,cpp,subs="verbatim,replacements,macros,-callouts"]
82+
----
83+
void
84+
foo();
85+
----
86+
87+
[#Derived]
88+
== Derived
89+
90+
=== Synopsis
91+
92+
Declared in `<shadowing.cpp>`
93+
94+
[source,cpp,subs="verbatim,replacements,macros,-callouts"]
95+
----
96+
struct Derived
97+
: link:#Base[Base]
98+
----
99+
100+
=== Base Classes
101+
102+
[cols=2]
103+
|===
104+
| Name
105+
| Description
106+
| `link:#Base[Base]`
107+
|
108+
|===
109+
110+
=== Member Functions
111+
112+
[cols=1]
113+
|===
114+
| Name
115+
| link:#Derived-foo[`foo`]
116+
|===
117+
118+
=== Protected Member Functions
119+
120+
[cols=1]
121+
|===
122+
| Name
123+
| link:#Derived-bar[`bar`]
124+
|===
125+
126+
=== Private Member Functions
127+
128+
[cols=1]
129+
|===
130+
| Name
131+
| link:#Derived-baz[`baz`]
132+
|===
133+
134+
[#Derived-foo]
135+
== link:#Derived[Derived]::foo
136+
137+
=== Synopsis
138+
139+
Declared in `<shadowing.cpp>`
140+
141+
[source,cpp,subs="verbatim,replacements,macros,-callouts"]
142+
----
143+
void
144+
foo();
145+
----
146+
147+
[#Derived-bar]
148+
== link:#Derived[Derived]::bar
149+
150+
=== Synopsis
151+
152+
Declared in `<shadowing.cpp>`
153+
154+
[source,cpp,subs="verbatim,replacements,macros,-callouts"]
155+
----
156+
void
157+
bar();
158+
----
159+
160+
[#Derived-baz]
161+
== link:#Derived[Derived]::baz
162+
163+
=== Synopsis
164+
165+
Declared in `<shadowing.cpp>`
166+
167+
[source,cpp,subs="verbatim,replacements,macros,-callouts"]
168+
----
169+
void
170+
baz();
171+
----
172+
173+
174+
[.small]#Created with https://www.mrdocs.com[MrDocs]#
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
struct Base {
2+
void foo();
3+
void bar();
4+
void baz();
5+
};
6+
7+
struct Derived : Base {
8+
void foo();
9+
protected:
10+
void bar();
11+
private:
12+
void baz();
13+
};

0 commit comments

Comments
 (0)