forked from cppalliance/mrdocs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add TParamKeyKind, use TArg to store default template arguments
closes cppalliance#196
- Loading branch information
1 parent
8286388
commit 31a6466
Showing
13 changed files
with
227 additions
and
181 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{{#if (eq kind "type")~}} | ||
{{~>declarator type decl-name=""~}} | ||
{{else if (eq kind "non-type")~}} | ||
{{~value~}} | ||
{{else if (eq kind "template")~}} | ||
{{#if template}}xref:{{template}}[{{name~}}]{{else~}}{{name~}}{{/if~}} | ||
{{/if~}} | ||
{{~#if is-pack}}...{{/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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<{{~#each args~}} | ||
{{value}} | ||
{{~#if (not @last)}}, {{/if}} | ||
{{~>template-arg .~}} | ||
{{~#if (not @last)}}, {{/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,4 +1,4 @@ | ||
{{>declarator type decl-name=""}} | ||
{{~#if is-pack}}...{{/if}} | ||
{{~#if name}} {{name}}{{/if}} | ||
{{~#if default}} = {{default}}{{/if~}} | ||
{{~#if default}} = {{>template-arg default~}}{{/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
typename | ||
{{key}} | ||
{{~#if is-pack}}...{{/if}} | ||
{{~#if name}} {{name}}{{/if}} | ||
{{~#if default}} = {{>declarator default decl-name=""}}{{~/if~}} | ||
{{~#if default}} = {{>template-arg default~}}{{~/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
Oops, something went wrong.