Skip to content

Commit 0d046cb

Browse files
committedJan 15, 2025·
support private aliases in public context
#test fix #794
1 parent 1e392f7 commit 0d046cb

File tree

4 files changed

+156
-0
lines changed

4 files changed

+156
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
= Reference
2+
:mrdocs:
3+
4+
[#index]
5+
== Global namespace
6+
7+
8+
=== Types
9+
10+
[cols=1]
11+
|===
12+
| Name
13+
14+
| <<S,`S`>>
15+
|===
16+
17+
[#S]
18+
== S
19+
20+
21+
=== Synopsis
22+
23+
24+
Declared in `&lt;class&hyphen;private&hyphen;alias&period;cpp&gt;`
25+
26+
[source,cpp,subs="verbatim,replacements,macros,-callouts"]
27+
----
28+
class S;
29+
----
30+
31+
=== Member Functions
32+
33+
[cols=1]
34+
|===
35+
| Name
36+
37+
| <<S-f,`f`>>
38+
|===
39+
40+
41+
42+
[#S-f]
43+
== <<S,S>>::f
44+
45+
46+
=== Synopsis
47+
48+
49+
Declared in `&lt;class&hyphen;private&hyphen;alias&period;cpp&gt;`
50+
51+
[source,cpp,subs="verbatim,replacements,macros,-callouts"]
52+
----
53+
void
54+
f(type);
55+
----
56+
57+
58+
59+
[.small]#Created with https://www.mrdocs.com[MrDocs]#
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class S
2+
{
3+
using type = int;
4+
public:
5+
void f(type) {}
6+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<html lang="en">
2+
<head>
3+
<title>Reference</title>
4+
</head>
5+
<body>
6+
<div>
7+
<h1>Reference</h1>
8+
<div>
9+
<div>
10+
<h2 id="index">Global namespace</h2>
11+
</div>
12+
<h2>Types</h2>
13+
<table style="table-layout: fixed; width: 100%;">
14+
<thead>
15+
<tr>
16+
<th>Name</th>
17+
</tr>
18+
</thead>
19+
<tbody>
20+
<tr>
21+
<td><a href="#S"><code>S</code></a> </td></tr>
22+
</tbody>
23+
</table>
24+
</div>
25+
<div>
26+
<div>
27+
<h2 id="S">S</h2>
28+
</div>
29+
<div>
30+
<h3>Synopsis</h3>
31+
<div>
32+
Declared in <code>&lt;class-private-alias.cpp&gt;</code></div>
33+
<pre>
34+
<code class="source-code cpp">
35+
class S;
36+
</code>
37+
</pre>
38+
</div>
39+
<h2>Member Functions</h2>
40+
<table style="table-layout: fixed; width: 100%;">
41+
<thead>
42+
<tr>
43+
<th>Name</th>
44+
</tr>
45+
</thead>
46+
<tbody>
47+
<tr>
48+
<td><a href="#S-f"><code>f</code></a> </td></tr>
49+
</tbody>
50+
</table>
51+
52+
53+
</div>
54+
<div>
55+
<div>
56+
<h2 id="S-f"><a href="#S">S</a>::f</h2>
57+
</div>
58+
<div>
59+
<h3>Synopsis</h3>
60+
<div>
61+
Declared in <code>&lt;class-private-alias.cpp&gt;</code></div>
62+
<pre>
63+
<code class="source-code cpp">
64+
void
65+
f(type);
66+
</code>
67+
</pre>
68+
</div>
69+
</div>
70+
71+
</div>
72+
<div>
73+
<h4>Created with <a href="https://www.mrdocs.com">MrDocs</a></h4>
74+
</div>
75+
</body>
76+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<mrdocs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://github.com/cppalliance/mrdocs/raw/develop/mrdocs.rnc">
4+
<namespace id="//////////////////////////8=">
5+
<class name="S" id="pOYGF6pLJlICuiGO0Xj0daDb/to=">
6+
<file path="class-private-alias.cpp" line="1" class="def"/>
7+
<function name="f" id="rEl08eLCQtT5kTV7R87YlkuVPa8=">
8+
<file path="class-private-alias.cpp" line="5" class="def"/>
9+
<param>
10+
<type name="type"/>
11+
</param>
12+
</function>
13+
</class>
14+
</namespace>
15+
</mrdocs>

0 commit comments

Comments
 (0)
Please sign in to comment.