Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
= Reference
:mrdocs:

[#index]
== Global namespace

=== Types

[cols="1,4"]
|===
| Name| Description
| link:#A-000[`A`]
| Issue #1172.
| link:#A-004[`A<T[N], void, void>`]
|
|===

[#A-000]
== A

Issue #1172.

=== Synopsis

Declared in `<class‐template‐array‐spec.cpp>`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template<
typename T,
typename U = void,
typename V = void>
struct A;
----

[#A-004]
== link:#A-000[A]<T[N], void, void>

=== Synopsis

Declared in `<class‐template‐array‐spec.cpp>`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template<
typename T,
unsigned long N>
struct link:#A-000[A]<T[N], void, void>;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/// Issue #1172.
template<typename T, typename U = void, typename V = void>
struct A;

template<typename T, typename U, typename V>
struct A
{};

template<typename T, unsigned long N>
struct A<T[N], void, void>
{};
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<html lang="en">
<head>
<title>Reference</title>
<meta charset="utf-8">
</head>
<body>
<div>
<h1>Reference</h1>
<div>
<div>
<h2 id="index">
Global Namespace</h2>
</div>
<h2>
Types</h2>
<table style="table-layout: fixed; width: 100%;">
<thead>
<tr>
<th>Name</th><th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="#A-000"><code>A</code></a> </td><td>Issue #1172.</td></tr><tr>
<td><a href="#A-004"><code>A&lt;T[N], void, void&gt;</code></a> </td><td></td></tr>
</tbody>
</table>

</div>
<div>
<div>
<h2 id="A-000">
A</h2>
<div>
<p>Issue #1172.</p>
</div>
</div>
<div>
<h3>
Synopsis</h3>
<div>
Declared in <code>&lt;class-template-array-spec.cpp&gt;</code></div>
<pre><code class="source-code cpp">template&lt;
typename T,
typename U = void,
typename V = void&gt;
struct A;</code></pre>
</div>


</div>
<div>
<div>
<h2 id="A-004">
A&lt;T[N], void, void&gt;</h2>
</div>
<div>
<h3>
Synopsis</h3>
<div>
Declared in <code>&lt;class-template-array-spec.cpp&gt;</code></div>
<pre><code class="source-code cpp">template&lt;
typename T,
unsigned long N&gt;
struct <a href="#A-000">A</a>&lt;T[N], void, void&gt;;</code></pre>
</div>


</div>

</div>
<footer class="mrdocs-footer">
<span>Created with <a href="https://www.mrdocs.com">MrDocs</a></span>
</footer>
</body>
</html>
162 changes: 162 additions & 0 deletions test-files/golden-tests/symbols/record/class-template-array-spec.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
<?xml version="1.0" encoding="UTF-8"?>
<mrdocs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://github.com/cppalliance/mrdocs/raw/develop/mrdocs.rnc">
<namespace>
<source>
</source>
<kind>namespace</kind>
<id>//////////////////////////8=</id>
<extraction>regular</extraction>
<namespace-tranche>
<records>ABmZytgXstnC9bI1eeAkIEeexCM=</records>
<records>BImCLyzY3azoxv/pd8PtoMYhX4k=</records>
</namespace-tranche>
</namespace>
<record>
<name>A</name>
<source>
<location>
<short-path>class-template-array-spec.cpp</short-path>
<source-path>class-template-array-spec.cpp</source-path>
<line-number>5</line-number>
<column-number>1</column-number>
</location>
<location>
<short-path>class-template-array-spec.cpp</short-path>
<source-path>class-template-array-spec.cpp</source-path>
<line-number>2</line-number>
<column-number>1</column-number>
<documented>1</documented>
</location>
</source>
<kind>record</kind>
<id>ABmZytgXstnC9bI1eeAkIEeexCM=</id>
<extraction>regular</extraction>
<parent>//////////////////////////8=</parent>
<doc-comment>
<brief>
<kind>brief</kind>
<text>
<kind>text</kind>
<literal>Issue #1172.</literal>
</text>
</brief>
</doc-comment>
<key-kind>struct</key-kind>
<template>
<type-tparam>
<kind>type</kind>
<name>T</name>
<key-kind>typename</key-kind>
</type-tparam>
<type-tparam>
<kind>type</kind>
<name>U</name>
<type-targ>
<kind>type</kind>
<named>
<name>
<kind>identifier</kind>
<identifier>void</identifier>
</name>
</named>
</type-targ>
<key-kind>typename</key-kind>
</type-tparam>
<type-tparam>
<kind>type</kind>
<name>V</name>
<type-targ>
<kind>type</kind>
<named>
<name>
<kind>identifier</kind>
<identifier>void</identifier>
</name>
</named>
</type-targ>
<key-kind>typename</key-kind>
</type-tparam>
</template>
<record-interface>
<record-tranche>
</record-tranche>
<record-tranche>
</record-tranche>
<record-tranche>
</record-tranche>
</record-interface>
</record>
<record>
<name>A</name>
<source>
<location>
<short-path>class-template-array-spec.cpp</short-path>
<source-path>class-template-array-spec.cpp</source-path>
<line-number>10</line-number>
<column-number>1</column-number>
</location>
</source>
<kind>record</kind>
<id>BImCLyzY3azoxv/pd8PtoMYhX4k=</id>
<extraction>regular</extraction>
<parent>//////////////////////////8=</parent>
<key-kind>struct</key-kind>
<template>
<type-tparam>
<kind>type</kind>
<name>T</name>
<key-kind>typename</key-kind>
</type-tparam>
<constant-tparam>
<kind>constant</kind>
<name>N</name>
<named>
<name>
<kind>identifier</kind>
<identifier>unsigned long</identifier>
</name>
</named>
</constant-tparam>
<type-targ>
<kind>type</kind>
<array>
<named>
<name>
<kind>identifier</kind>
<identifier>T</identifier>
</name>
</named>
<bounds>N</bounds>
</array>
</type-targ>
<type-targ>
<kind>type</kind>
<named>
<name>
<kind>identifier</kind>
<identifier>void</identifier>
</name>
</named>
</type-targ>
<type-targ>
<kind>type</kind>
<named>
<name>
<kind>identifier</kind>
<identifier>void</identifier>
</name>
</named>
</type-targ>
<primary>ABmZytgXstnC9bI1eeAkIEeexCM=</primary>
</template>
<record-interface>
<record-tranche>
</record-tranche>
<record-tranche>
</record-tranche>
<record-tranche>
</record-tranche>
</record-interface>
</record>
</mrdocs>
Loading