Skip to content

Commit 395be0f

Browse files
committed
chore: Dom work
1 parent 6c436c2 commit 395be0f

File tree

19 files changed

+931
-413
lines changed

19 files changed

+931
-413
lines changed

addons/generator/asciidoc/layouts/function.adoc.hbs

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,13 @@
1+
[#{{page.id}}]
12
== {{page.name}}
23

3-
{{#if page.doc}}
44
{{page.doc.brief}}
5-
{{/if}}
65

76
=== Synopsis
87

9-
{{#if page.decl}}
10-
[,cpp]
11-
----
12-
{{page.decl}}
13-
----
14-
{{/if}}
15-
16-
{{#if page.loc}}
17-
Declared in file <{{page.loc}}>
18-
{{/if}}
8+
{{>function-sig page}}
199

20-
{{page.synopsis}}
10+
Declared in file <{{page.loc.file}}>
2111

2212
{{#if page.doc.description}}
2313
=== Description
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1+
[#{{page.id}}]
12
== Namespace {{page.name}}
23

4+
[,cols=2]
5+
|===
6+
|Name |Description
37
{{#each page.members}}
4-
5-
=== {{name}}
6-
7-
{{doc.brief}}
8-
9-
==== Description
10-
11-
{{doc.description }}
12-
8+
|xref:{{id}}[`{{name}}`] |{{doc.brief}}
139
{{/each}}
10+
|===
Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,25 @@
1-
{{>record-detail}}
1+
[#{{page.id}}]
2+
== {{page.name}}
23

4+
{{page.doc.brief}}
5+
6+
=== Synopsis
7+
8+
[,cpp]
9+
----
10+
{{page.tag}} {{page.name}}
11+
{
12+
{{#each members}}
13+
{{name}}
14+
{{/each}}
15+
};
16+
----
17+
18+
Declared in file <{{page.loc.file}}>
19+
20+
{{#if page.doc.description}}
21+
=== Description
22+
23+
{{page.doc.description}}
24+
25+
{{/if}}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{{!-- Declare the signature of a function --}}
2+
[source,cpp,subs=+macros]
3+
----
4+
{{>type-name return}}
5+
6+
{{#if params}}
7+
{{name}}(
8+
{{#each params}}
9+
{{>type-name type~}}
10+
{{#if name}} {{name}}{{/if}}
11+
{{~#if @last}});{{else}},{{/if}}
12+
{{/each}}
13+
{{else}}
14+
{{name}}();
15+
{{/if}}
16+
----

addons/generator/asciidoc/partials/namespace-detail.adoc.hbs

Lines changed: 0 additions & 1 deletion
This file was deleted.

addons/generator/asciidoc/partials/record-detail.adoc.hbs

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{{!-- render TypeInfo --}}
2+
{{#if symbol}}
3+
xref:{{id}}[{{name}}]{{else~}}
4+
{{name~}}
5+
{{/if~}}

include/mrdox/Metadata/Info.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ struct MRDOX_VISIBLE
5656
*/
5757
SymbolID id = SymbolID::zero;
5858

59+
/** The unqualified name.
60+
*/
61+
std::string Name;
62+
5963
/** Kind of declaration.
6064
*/
6165
InfoKind Kind;
@@ -71,10 +75,6 @@ struct MRDOX_VISIBLE
7175
*/
7276
AccessKind Access = AccessKind::None;
7377

74-
/** The unqualified name.
75-
*/
76-
std::string Name;
77-
7878
/** In-order List of parent namespaces.
7979
*/
8080
std::vector<SymbolID> Namespace;
@@ -92,7 +92,7 @@ struct MRDOX_VISIBLE
9292
explicit
9393
Info(
9494
InfoKind kind,
95-
SymbolID ID = SymbolID::zero)
95+
SymbolID ID = SymbolID::zero) noexcept
9696
: id(ID)
9797
, Kind(kind)
9898
{

0 commit comments

Comments
 (0)