-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: tranches & overload sets for namespaces
- Loading branch information
1 parent
335e9b3
commit 5a202a5
Showing
20 changed files
with
425 additions
and
335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
share/mrdocs/addons/generator/asciidoc/layouts/overload-set.adoc.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
share/mrdocs/addons/generator/asciidoc/partials/declarator-after.adoc.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{{#if pointee-type~}} | ||
{{#if (or (eq pointee-type.kind "array") (eq pointee-type.kind "function"))}}){{/if~}} | ||
{{~>declarator-after pointee-type~}} | ||
{{~>declarator-after pointee-type nolink=nolink~}} | ||
{{else if (eq kind "array")~}} | ||
[{{bounds-value}}] | ||
{{~>declarator-after element-type~}} | ||
{{~>declarator-after element-type nolink=nolink~}} | ||
{{else if (eq kind "function")~}} | ||
({{#each param-types~}} | ||
{{~>declarator~}}{{~#unless @last}}, {{/unless~}} | ||
{{~>declarator nolink=../nolink~}}{{~#unless @last}}, {{/unless~}} | ||
{{/each~}}) | ||
{{~#if cv-qualifiers}} {{cv-qualifiers}}{{/if~}} | ||
{{#if (eq ref-qualifier "lvalue")}} &{{else if (eq ref-qualifier "rvalue")}} &&{{/if~}} | ||
{{#if exception-spec}} {{exception-spec}}{{/if~}} | ||
{{~>declarator-after return-type~}} | ||
{{~>declarator-after return-type nolink=nolink~}} | ||
{{/if}} |
14 changes: 7 additions & 7 deletions
14
share/mrdocs/addons/generator/asciidoc/partials/declarator-before.adoc.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
{{#if pointee-type~}} | ||
{{~>declarator-before pointee-type~}} | ||
{{~>declarator-before pointee-type nolink=nolink~}} | ||
{{#if (or (eq pointee-type.kind "array") (eq pointee-type.kind "function"))}}({{/if~}} | ||
{{~/if~}} | ||
{{#if element-type~}}{{~>declarator-before element-type~}}{{/if~}} | ||
{{#if return-type~}}{{~>declarator-before return-type~}}{{/if~}} | ||
{{#if parent-type~}}{{>declarator parent-type}}::{{/if~}} | ||
{{#if element-type~}}{{~>declarator-before element-type nolink=nolink~}}{{/if~}} | ||
{{#if return-type~}}{{~>declarator-before return-type nolink=nolink~}}{{/if~}} | ||
{{#if parent-type~}}{{>declarator parent-type nolink=nolink}}::{{/if~}} | ||
{{#if (eq kind "lvalue-reference")}}&{{/if~}} | ||
{{#if (eq kind "rvalue-reference")}}&&{{/if~}} | ||
{{#if (eq kind "pointer")}}*{{/if~}} | ||
{{#if (eq kind "member-pointer")}}*{{/if~}} | ||
{{#if cv-qualifiers~}} | ||
{{#if pointee-type}} {{cv-qualifiers}}{{else}}{{cv-qualifiers}} {{/if~}} | ||
{{/if~}} | ||
{{#if symbol~}} | ||
{{#if (not parent-type)}}{{>qualified-path symbol=symbol.parent}}{{/if~}} | ||
{{#if (and symbol (not parent-type))}}{{>qualified-path symbol=symbol.parent nolink=nolink}}{{/if~}} | ||
{{#if (and symbol (not nolink))~}} | ||
xref:{{symbol.ref}}[{{name}}] | ||
{{~else if name}}{{name~}} | ||
{{/if~}} | ||
{{#if (eq kind "decltype")}}decltype({{operand}}){{/if~}} | ||
{{#if (eq kind "specialization")}}{{>template-args args=args}}{{/if~}} | ||
{{#if (eq kind "specialization")}}{{>template-args args=args nolink=nolink}}{{/if~}} | ||
{{#if is-pack~}}...{{/if}} |
6 changes: 3 additions & 3 deletions
6
share/mrdocs/addons/generator/asciidoc/partials/declarator-id.adoc.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{{#if (and (eq kind "function") (eq class "conversion"))~}} | ||
operator {{>declarator return~}} | ||
operator {{>declarator return nolink=nolink~}} | ||
{{else~}} | ||
{{#if link.ref}}xref:{{link.ref}}[{{name}}]{{else}}{{name}}{{/if~}} | ||
{{#if (and link.ref (not nolink))}}xref:{{link.ref}}[{{name}}]{{else}}{{name}}{{/if~}} | ||
{{#if (or (eq template.kind "explicit") (eq template.kind "partial"))~}} | ||
{{>template-args args=template.args~}} | ||
{{>template-args args=template.args nolink=nolink~}} | ||
{{/if~}} | ||
{{/if}} |
6 changes: 3 additions & 3 deletions
6
share/mrdocs/addons/generator/asciidoc/partials/declarator.adoc.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{{>declarator-before~}} | ||
{{>declarator-before nolink=nolink~}} | ||
{{~#if decl-name}} {{decl-name~}} | ||
{{~#if decl-name-targs~}}{{>template-args args=decl-name-targs}}{{~/if~}} | ||
{{~#if decl-name-targs~}}{{>template-args args=decl-name-targs nolink=nolink}}{{~/if~}} | ||
{{~/if~}} | ||
{{~>declarator-after}} | ||
{{~>declarator-after nolink=nolink}} |
8 changes: 5 additions & 3 deletions
8
share/mrdocs/addons/generator/asciidoc/partials/info-list.adoc.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
{{#if members}} | ||
== {{title}} | ||
[,cols=2] | ||
|=== | ||
|Name |Description | ||
{{#each .}} | ||
|xref:{{ref}}[`pass:v[{{name}}]`] | {{#if (ne kind "overload")}}{{doc.brief}}{{else}}{{#each (unique (pluck (pluck members "doc") "brief"))}}{{.}} | ||
{{/each}}{{/if}} | ||
{{#each members}} | ||
{{>info-member .}} | ||
{{/each}} | ||
|=== | ||
{{/if}} |
9 changes: 9 additions & 0 deletions
9
share/mrdocs/addons/generator/asciidoc/partials/info-member.adoc.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{{!-- |xref:{{ref}}[`pass:v[{{name}}]`] | --}} | ||
|xref:{{ref}}[`pass:v[{{>declarator-id . nolink=true}}]`] | | ||
{{#if (ne kind "overload")~}} | ||
{{~doc.brief}} | ||
{{else~}} | ||
{{#each (unique (pluck (pluck members "doc") "brief"))~}} | ||
{{.}} | ||
{{/each~}} | ||
{{/if}} |
4 changes: 2 additions & 2 deletions
4
share/mrdocs/addons/generator/asciidoc/partials/qualified-path.adoc.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{{#unless (contains @root.symbol.namespace symbol)~}} | ||
{{#if symbol.parent~}} | ||
{{>qualified-path symbol=symbol.parent~}} | ||
{{>qualified-path symbol=symbol.parent nolink=nolink~}} | ||
{{else~}} | ||
{{/if~}} | ||
{{#if symbol.name}}xref:{{symbol.ref}}[{{symbol.name}}]::{{/if~}} | ||
{{#if symbol.name}}{{#if (not nolink)}}xref:{{symbol.ref}}[{{symbol.name}}]{{else}}{{symbol.name}}{{/if}}::{{/if~}} | ||
{{/unless}} |
Oops, something went wrong.