Skip to content

Commit

Permalink
[FOLD]
Browse files Browse the repository at this point in the history
  • Loading branch information
sdkrystian committed Nov 22, 2023
1 parent ee13f7d commit 3031d62
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 82 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{{#if relfileprefix}}:relfileprefix: {{relfileprefix}}{{/if}}
{{#with symbol}}
[#{{#if (is_multipage)}}{{id}}{{else}}{{ref}}{{/if}}]
[#{{#if (is_multipage)}}{{symbol.id}}{{else}}{{symbol.ref}}{{/if}}]

== {{#if name}}Overload set {{name}}{{else}}Unnamed overload set{{/if}}
== {{#if symbol.name}}Overload set {{>nested-name-specifier symbol=symbol.parent}}{{symbol.name}}{{else}}Unnamed overload set{{/if}}

[,cols=2]
|===
|Name |Description
{{#each members}}
|xref:{{ref}}[`pass:v[{{name}}]`] |{{doc.brief}}
{{/each}}
|===
{{#each symbol.members as | member |}}

{{/with}}
{{member.doc.brief}}

[source,cpp,subs="verbatim,macros,-callouts"]
----
{{> (concat 'signature' '/' (lookup member 'kind')) symbol=member}};
xref:{{ref}}[pass:c,q,m[*_» more..._*]]
----
{{/each}}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{#if relfileprefix}}:relfileprefix: {{relfileprefix}}{{/if}}
[#{{#if (is_multipage)}}{{symbol.id}}{{else}}{{symbol.ref}}{{/if}}]

{{> (concat 'symbols' '/' (lookup . 'symbol.kind')) symbol=symbol}}
{{> (concat 'symbols' '/' (lookup symbol 'kind')) symbol=symbol}}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{{#if (and symbol (or includeNamespace (ne symbol.kind "namespace")))~}}
{{#if symbol.parent~}}
{{>nested-name-specifier symbol=symbol.parent~}}
{{else~}}
{{/if~}}
{{!-- {{#if symbol.name}}xref:{{symbol.ref}}[{{symbol.name}}]::{{/if~}} --}}
{{#if symbol.name}}{{symbol.name}}::{{/if~}}
{{/if}}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
{{!--
{{#if symbol.type~}}
friend {{>declarator symbol.type}}
{{else if (and symbol.symbol (eq symbol.symbol.kind "record"))~}}
{{>signature/record symbol.symbol isFriend=true~}}
{{else if (and symbol.symbol (eq symbol.symbol.kind "function"))~}}
{{>signature/function symbol.symbol isFriend=true~}}
{{/if}}
--}}
{{#if symbol.type~}}
friend {{>declarator symbol.type~}}
{{else if symbol.symbol~}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{!-- enum --}}
= {{#if symbol.name}}Enum {{symbol.name}}{{else}}Unnamed enum{{/if}}
= {{#if symbol.name}}Enum {{>nested-name-specifier symbol=symbol.parent}}{{symbol.name}}{{else}}Unnamed enum{{/if}}

{{symbol.doc.brief}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{!-- enumerator --}}
= {{symbol.name}}
= {{>nested-name-specifier symbol=symbol.parent}}{{symbol.name}}

{{symbol.doc.brief}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{!-- field --}}
= {{symbol.name}}
= {{>nested-name-specifier symbol=symbol.parent}}{{symbol.name}}

{{symbol.doc.brief}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{!-- function --}}
= {{symbol.name}}
= {{>nested-name-specifier symbol=symbol.parent}}{{symbol.name}}

{{symbol.doc.brief}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{!-- namespace --}}
= {{#if symbol.name}}Namespace {{symbol.name}}{{else if symbol.parent}}Unnamed namespace{{else}}Global namespace{{/if}}
= {{#if symbol.name}}Namespace {{>nested-name-specifier symbol=symbol.parent}}{{symbol.name}}{{else if symbol.parent}}Unnamed namespace{{else}}Global namespace{{/if}}

{{#each (group_by symbol.members "kind")}}
== {{#if (eq @key "record")}}Types{{else if (eq @key "variable")}}Constants{{else}}{{capitalize @key}}s{{/if}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{!-- record --}}
= {{#if symbol.name}}Class {{symbol.name}}{{else}}Unnamed class{{/if}}
= {{#if symbol.name}}Class {{>nested-name-specifier symbol=symbol.parent}}{{symbol.name}}{{else}}Unnamed class{{/if}}

{{symbol.doc.brief}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{!-- typedef --}}
= {{symbol.name}}
= {{>nested-name-specifier symbol=symbol.parent}}{{symbol.name}}

{{symbol.doc.brief}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{!-- variable --}}
= {{symbol.name}}
= {{>nested-name-specifier symbol=symbol.parent}}{{symbol.name}}

{{symbol.doc.brief}}

Expand Down
3 changes: 2 additions & 1 deletion src/lib/Metadata/DomMetadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ domCreate(
{ "kind", "overload"},
{ "name", overloads.Name },
{ "members", dom::newArray<DomSymbolArray>(
overloads.Members, domCorpus) }
overloads.Members, domCorpus) },
{ "parent", domCorpus.get(overloads.Parent) }
});
}

Expand Down

0 comments on commit 3031d62

Please sign in to comment.