Skip to content

Commit 3ad5066

Browse files
committed
docs: qualified typedefs
1 parent dd3aab4 commit 3ad5066

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

share/mrdocs/addons/generator/asciidoc/partials/declarator-before.adoc.hbs

+5-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
{{#if cv-qualifiers~}}
1313
{{#if pointee-type}} {{cv-qualifiers}}{{else}}{{cv-qualifiers}} {{/if~}}
1414
{{/if~}}
15-
{{#if (and symbol (not parent-type))}}{{>qualified-path symbol=symbol.parent nolink=nolink}}{{/if~}}
16-
{{#if (and symbol (not nolink))~}}
17-
xref:{{symbol.ref}}[{{name}}]
18-
{{~else if name}}{{name~}}
15+
{{#if symbol}}
16+
{{#unless nolink}}xref:{{symbol.ref}}[{{/unless~}}
17+
{{#unless parent-type}}{{>qualified-path symbol=symbol.parent nolink=true}}{{/unless~}}
18+
{{name~}}
19+
{{#unless nolink}}]{{/unless~}}
1920
{{/if~}}
2021
{{#if (eq kind "decltype")}}decltype({{operand}}){{/if~}}
2122
{{#if (eq kind "specialization")}}{{>template-args args=args nolink=nolink}}{{/if~}}
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
{{#unless (or (contains @root.symbol.namespace symbol) (eq @root.symbol symbol))~}}
21
{{#if symbol.parent~}}
3-
{{>qualified-path symbol=symbol.parent nolink=nolink~}}
4-
{{else~}}
2+
{{#unless (or (contains @root.symbol.namespace symbol) (eq @root.symbol symbol))~}}
3+
{{>qualified-path symbol=symbol.parent nolink=nolink~}}
4+
{{/unless~}}
55
{{/if~}}
6-
{{#if symbol.name}}{{#if (not nolink)}}xref:{{symbol.ref}}[{{symbol.name}}]{{else}}{{symbol.name}}{{/if}}::{{/if~}}
7-
{{/unless}}
6+
{{#if symbol.name}}{{#unless nolink}}xref:{{symbol.ref}}[{{symbol.name}}]{{else}}{{symbol.name}}{{/unless}}::{{/if~}}

0 commit comments

Comments
 (0)