Skip to content

Commit 590b317

Browse files
committed
feat: annotate constructors and destructors in adoc member lists
1 parent 5fee793 commit 590b317

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

share/mrdocs/addons/generator/asciidoc/partials/info-member.adoc.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
¦xref:{{ref}}[`{{>declarator-id . nolink=true}}`] ¦
1+
¦xref:{{ref}}[`{{>declarator-id . nolink=true}}`] {{>special-name-suffix .}} ¦
22
{{#if (ne kind "overload")~}}
33
{{~doc.brief}}
44
{{else~}}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{{#if (eq kind "overload")}}{{>special-name-suffix (front members)~}}
2+
{{else if (eq kind "function")~}}
3+
{{#if (eq class "constructor")}}[.small]#[constructor]#
4+
{{~else if (eq class "destructor")~}}[.small]#[destructor]#
5+
{{~/if~}}
6+
{{/if}}

0 commit comments

Comments
 (0)