Skip to content

Commit a7a1719

Browse files
committed
attributes template use double brackets
#fix
1 parent f648817 commit a7a1719

File tree

10 files changed

+14
-14
lines changed

10 files changed

+14
-14
lines changed

share/mrdocs/addons/generator/common/partials/symbol/signature/field.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{#if attributes}}[{{join ", " attributes}}]
1+
{{#if attributes}}[[{{join ", " attributes}}]]
22
{{/if}}
33
{{#if isMutable}}mutable
44
{{/if~}}

share/mrdocs/addons/generator/common/partials/symbol/signature/function.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{/if~}}
33
{{#if isFriend}}friend
44
{{/if~}}
5-
{{#if attributes}}{{#unless isFriend}}[{{join ", " attributes}}]
5+
{{#if attributes}}{{#unless isFriend}}[[{{join ", " attributes}}]]
66
{{/unless}}{{/if~}}
77
{{#if constexprKind}}{{constexprKind}}
88
{{/if~}}

test-files/golden-tests/metadata/attributes_1.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Declared in `<attributes_1.cpp>`
2525

2626
[source,cpp,subs="verbatim,replacements,macros,-callouts"]
2727
----
28-
[nodiscard]
28+
[[nodiscard]]
2929
bool
3030
f();
3131
----

test-files/golden-tests/metadata/attributes_1.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h3>Synopsis</h3>
3232
Declared in <code>&lt;attributes_1.cpp&gt;</code></div>
3333
<pre>
3434
<code class="source-code cpp">
35-
[nodiscard]
35+
[[nodiscard]]
3636
bool
3737
f();
3838
</code>

test-files/golden-tests/metadata/no_unique_address.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Declared in `&lt;no&lowbar;unique&lowbar;address&period;cpp&gt;`
6969

7070
[source,cpp,subs="verbatim,replacements,macros,-callouts"]
7171
----
72-
[deprecated, maybe&lowbar;unused]
72+
[[deprecated, maybe&lowbar;unused]]
7373
<<Empty,Empty>> e = Empty&lcub;&rcub;;
7474
----
7575

test-files/golden-tests/metadata/no_unique_address.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ <h3>Synopsis</h3>
8080
Declared in <code>&lt;no_unique_address.cpp&gt;</code></div>
8181
<pre>
8282
<code class="source-code cpp">
83-
[deprecated, maybe_unused]
83+
[[deprecated, maybe_unused]]
8484
<a href="#Empty">Empty</a> e = Empty{};
8585
</code>
8686
</pre>

test-files/golden-tests/metadata/noreturn.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Declared in `&lt;noreturn&period;cpp&gt;`
7474

7575
[source,cpp,subs="verbatim,replacements,macros,-callouts"]
7676
----
77-
[noreturn]
77+
[[noreturn]]
7878
static
7979
void
8080
f2();
@@ -91,7 +91,7 @@ Declared in `&lt;noreturn&period;cpp&gt;`
9191

9292
[source,cpp,subs="verbatim,replacements,macros,-callouts"]
9393
----
94-
[noreturn]
94+
[[noreturn]]
9595
void
9696
f3();
9797
----
@@ -123,7 +123,7 @@ Declared in `&lt;noreturn&period;cpp&gt;`
123123

124124
[source,cpp,subs="verbatim,replacements,macros,-callouts"]
125125
----
126-
[noreturn]
126+
[[noreturn]]
127127
void
128128
f1();
129129
----

test-files/golden-tests/metadata/noreturn.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ <h3>Synopsis</h3>
9797
Declared in <code>&lt;noreturn.cpp&gt;</code></div>
9898
<pre>
9999
<code class="source-code cpp">
100-
[noreturn]
100+
[[noreturn]]
101101
static
102102
void
103103
f2();
@@ -115,7 +115,7 @@ <h3>Synopsis</h3>
115115
Declared in <code>&lt;noreturn.cpp&gt;</code></div>
116116
<pre>
117117
<code class="source-code cpp">
118-
[noreturn]
118+
[[noreturn]]
119119
void
120120
f3();
121121
</code>
@@ -149,7 +149,7 @@ <h3>Synopsis</h3>
149149
Declared in <code>&lt;noreturn.cpp&gt;</code></div>
150150
<pre>
151151
<code class="source-code cpp">
152-
[noreturn]
152+
[[noreturn]]
153153
void
154154
f1();
155155
</code>

test-files/golden-tests/snippets/terminate.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Declared in `&lt;terminate&period;cpp&gt;`
3333

3434
[source,cpp,subs="verbatim,replacements,macros,-callouts"]
3535
----
36-
[noreturn]
36+
[[noreturn]]
3737
void
3838
terminate() noexcept;
3939
----

test-files/golden-tests/snippets/terminate.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h3>Synopsis</h3>
3939
Declared in <code>&lt;terminate.cpp&gt;</code></div>
4040
<pre>
4141
<code class="source-code cpp">
42-
[noreturn]
42+
[[noreturn]]
4343
void
4444
terminate() noexcept;
4545
</code>

0 commit comments

Comments
 (0)