-
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.
- Loading branch information
1 parent
940033e
commit af254c3
Showing
62 changed files
with
1,735 additions
and
435 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{{#if (eq kind "lvalue-reference")~}} | ||
{{#if (or (eq pointee-type.kind "array") (eq pointee-type.kind "function"))~}}){{~/if~}} | ||
{{~>declarator-after pointee-type~}} | ||
{{~else if (eq kind "rvalue-reference")~}} | ||
{{#if (or (eq pointee-type.kind "array") (eq pointee-type.kind "function"))~}}){{~/if~}} | ||
{{~>declarator-after pointee-type~}} | ||
{{~else if (eq kind "pointer")~}} | ||
{{#if (or (eq pointee-type.kind "array") (eq pointee-type.kind "function"))~}}){{~/if~}} | ||
{{~>declarator-after pointee-type~}} | ||
{{~else if (eq kind "member-pointer")~}} | ||
{{#if (or (eq pointee-type.kind "array") (eq pointee-type.kind "function"))~}}){{~/if~}} | ||
{{~>declarator-after pointee-type~}} | ||
{{~else if (eq kind "pack")~}} | ||
{{~>declarator-after pattern-type~}} | ||
{{~else if (eq kind "array")~}} | ||
[{{bounds-value}}] | ||
{{~>declarator-after element-type~}} | ||
{{~else if (eq kind "function")~}} | ||
({{~#each param-types~}} | ||
{{~>declarator decl-name="" decl-name-targs=""~}}{{~#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~}} | ||
{{/if}} |
34 changes: 34 additions & 0 deletions
34
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{{#if (eq kind "builtin")~}} | ||
{{#if cv-qualifiers}}{{cv-qualifiers}} {{/if~}} | ||
{{name~}} | ||
{{~else if (eq kind "tag")~}} | ||
{{#if cv-qualifiers}}{{cv-qualifiers}} {{/if~}} | ||
{{#if parent-type~}}{{>declarator parent-type decl-name="" decl-name-targs=""}}::{{/if~}} | ||
{{#if id}}xref:{{id}}[{{name~}}]{{else}}{{name~}}{{/if}} | ||
{{~else if (eq kind "specialization")~}} | ||
{{#if cv-qualifiers}}{{cv-qualifiers}} {{/if~}} | ||
{{#if parent-type~}}{{>declarator parent-type decl-name="" decl-name-targs=""}}::{{/if~}} | ||
{{#if id}}xref:{{id}}[{{name~}}]{{else}}{{name~}}{{/if}} | ||
{{~>template-args args=template-args~}} | ||
{{~else if (eq kind "lvalue-reference")~}} | ||
{{~>declarator-before pointee-type~}} | ||
{{#if (or (eq pointee-type.kind "array") (eq pointee-type.kind "function"))~}}({{~/if~}}& | ||
{{~else if (eq kind "rvalue-reference")~}} | ||
{{~>declarator-before pointee-type~}} | ||
{{#if (or (eq pointee-type.kind "array") (eq pointee-type.kind "function"))~}}({{~/if~}}&& | ||
{{~else if (eq kind "pointer")~}} | ||
{{~>declarator-before pointee-type~}} | ||
{{#if (or (eq pointee-type.kind "array") (eq pointee-type.kind "function"))~}}({{~/if~}}* | ||
{{~#if cv-qualifiers}} {{cv-qualifiers}}{{/if~}} | ||
{{~else if (eq kind "member-pointer")~}} | ||
{{~>declarator-before pointee-type~}} | ||
{{#if (or (eq pointee-type.kind "array") (eq pointee-type.kind "function"))~}}({{~/if~}} | ||
{{#if parent-type~}}{{>declarator parent-type decl-name="" decl-name-targs=""}}::*{{/if~}} | ||
{{#if cv-qualifiers}} {{cv-qualifiers}}{{/if~}} | ||
{{~else if (eq kind "pack")~}} | ||
{{~>declarator-before pattern-type~}}... | ||
{{~else if (eq kind "array")~}} | ||
{{~>declarator-before element-type~}} | ||
{{~else if (eq kind "function")~}} | ||
{{~>declarator-before return-type~}} | ||
{{/if}} |
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,5 @@ | ||
{{>declarator-before~}} | ||
{{~#if decl-name}} {{decl-name~}} | ||
{{~#if decl-name-targs~}}{{>template-args args=decl-name-targs}}{{~/if~}} | ||
{{~/if~}} | ||
{{~>declarator-after~}} |
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,27 @@ | ||
[source,cpp,subs=+macros] | ||
---- | ||
{{#if (eq storageClass "static")}} | ||
static | ||
{{/if}} | ||
{{>type-name return}} | ||
{{#if template}}{{>template-head template}}{{/if~}} | ||
{{#if (eq storageClass "static")}}static | ||
{{/if~}} | ||
{{>declarator-before return}} | ||
{{#if params}} | ||
{{name}}( | ||
{{name~}} | ||
{{#if (eq template.kind "explicit")~}} | ||
{{~>template-args args=template.args~}} | ||
{{~/if~}} | ||
{{~#if params}} | ||
( | ||
{{#each params}} | ||
{{>type-name type~}} | ||
{{#if name}} {{name}}{{/if}} | ||
{{>declarator type decl-name=name~}} | ||
{{~#if @last}}){{else}}, | ||
{{/if}} | ||
{{~/each}} | ||
{{~else~}} | ||
{{name}}() | ||
() | ||
{{~/if~}} | ||
{{#if (eq exceptionSpec "noexcept")}} noexcept{{/if~}} | ||
{{~>declarator-after return~}} | ||
{{#if isDeleted}} = delete{{/if~}} | ||
; | ||
---- |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
{{#if (neq kind "primary")~}}< | ||
{{~#each args~}} | ||
<{{~#each args~}} | ||
{{value}} | ||
{{~#if (not @last)}}, {{/if}} | ||
{{~/each~}} | ||
>{{/if}} | ||
{{~/each~}}> |
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,13 +1,17 @@ | ||
{{#if params~}} | ||
template< | ||
{{#each params}} | ||
{{#if (eq kind "type")}} | ||
{{>type-tparam~}} | ||
{{>tparam-type~}} | ||
{{else if (eq kind "non-type")}} | ||
{{>nontype-tparam~}} | ||
{{>tparam-nontype~}} | ||
{{else if (eq kind "template")}} | ||
{{>template-tparam~}} | ||
{{>tparam-template~}} | ||
{{/if}} | ||
{{~#unless @last}}, | ||
{{else}} | ||
{{/unless}} | ||
{{/each}}> | ||
{{else~}} | ||
template<> | ||
{{/if}} |
2 changes: 1 addition & 1 deletion
2
...asciidoc/partials/nontype-tparam.adoc.hbs → ...asciidoc/partials/tparam-nontype.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,4 +1,4 @@ | ||
{{>type-name type}} | ||
{{>declarator type decl-name=""}} | ||
{{~#if is-pack}}...{{/if}} | ||
{{~#if name}} {{name}}{{/if}} | ||
{{~#if default}} = {{default}}{{/if~}} |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...or/asciidoc/partials/type-tparam.adoc.hbs → ...or/asciidoc/partials/tparam-type.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,4 +1,4 @@ | ||
typename | ||
{{~#if is-pack}}...{{/if}} | ||
{{~#if name}} {{name}}{{/if}} | ||
{{~#if default}} = {{>type-name default}}{{~/if~}} | ||
{{~#if default}} = {{>declarator default decl-name=""}}{{~/if~}} |
This file was deleted.
Oops, something went wrong.
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 +1,27 @@ | ||
{{!-- typedef --}} | ||
[#{{symbol.id}}] | ||
== {{symbol.name}} | ||
|
||
{{symbol.doc.brief}} | ||
|
||
=== Synopsis | ||
|
||
[source,cpp,subs=+macros] | ||
---- | ||
{{#if symbol.isUsing~}} | ||
{{~#if symbol.template}}{{>template-head symbol.template}}{{/if~}} | ||
using {{symbol.name}} = {{>declarator symbol.type}} | ||
{{~else~}} | ||
typedef {{>declarator symbol.type decl-name=symbol.name}} | ||
{{~/if}} | ||
; | ||
---- | ||
{{>source symbol.loc}} | ||
{{#if symbol.doc.description}} | ||
=== Description | ||
{{symbol.doc.description}} | ||
{{/if}} |
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
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
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
Oops, something went wrong.