Skip to content

Commit

Permalink
attributes template use double brackets
Browse files Browse the repository at this point in the history
#fix
  • Loading branch information
alandefreitas committed Jan 15, 2025
1 parent f648817 commit a7a1719
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{#if attributes}}[{{join ", " attributes}}]
{{#if attributes}}[[{{join ", " attributes}}]]
{{/if}}
{{#if isMutable}}mutable
{{/if~}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{/if~}}
{{#if isFriend}}friend
{{/if~}}
{{#if attributes}}{{#unless isFriend}}[{{join ", " attributes}}]
{{#if attributes}}{{#unless isFriend}}[[{{join ", " attributes}}]]
{{/unless}}{{/if~}}
{{#if constexprKind}}{{constexprKind}}
{{/if~}}
Expand Down
2 changes: 1 addition & 1 deletion test-files/golden-tests/metadata/attributes_1.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Declared in `<attributes_1.cpp>`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
[nodiscard]
[[nodiscard]]
bool
f();
----
Expand Down
2 changes: 1 addition & 1 deletion test-files/golden-tests/metadata/attributes_1.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h3>Synopsis</h3>
Declared in <code>&lt;attributes_1.cpp&gt;</code></div>
<pre>
<code class="source-code cpp">
[nodiscard]
[[nodiscard]]
bool
f();
</code>
Expand Down
2 changes: 1 addition & 1 deletion test-files/golden-tests/metadata/no_unique_address.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Declared in `&lt;no&lowbar;unique&lowbar;address&period;cpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
[deprecated, maybe&lowbar;unused]
[[deprecated, maybe&lowbar;unused]]
<<Empty,Empty>> e = Empty&lcub;&rcub;;
----

Expand Down
2 changes: 1 addition & 1 deletion test-files/golden-tests/metadata/no_unique_address.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ <h3>Synopsis</h3>
Declared in <code>&lt;no_unique_address.cpp&gt;</code></div>
<pre>
<code class="source-code cpp">
[deprecated, maybe_unused]
[[deprecated, maybe_unused]]
<a href="#Empty">Empty</a> e = Empty{};
</code>
</pre>
Expand Down
6 changes: 3 additions & 3 deletions test-files/golden-tests/metadata/noreturn.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Declared in `&lt;noreturn&period;cpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
[noreturn]
[[noreturn]]
static
void
f2();
Expand All @@ -91,7 +91,7 @@ Declared in `&lt;noreturn&period;cpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
[noreturn]
[[noreturn]]
void
f3();
----
Expand Down Expand Up @@ -123,7 +123,7 @@ Declared in `&lt;noreturn&period;cpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
[noreturn]
[[noreturn]]
void
f1();
----
Expand Down
6 changes: 3 additions & 3 deletions test-files/golden-tests/metadata/noreturn.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ <h3>Synopsis</h3>
Declared in <code>&lt;noreturn.cpp&gt;</code></div>
<pre>
<code class="source-code cpp">
[noreturn]
[[noreturn]]
static
void
f2();
Expand All @@ -115,7 +115,7 @@ <h3>Synopsis</h3>
Declared in <code>&lt;noreturn.cpp&gt;</code></div>
<pre>
<code class="source-code cpp">
[noreturn]
[[noreturn]]
void
f3();
</code>
Expand Down Expand Up @@ -149,7 +149,7 @@ <h3>Synopsis</h3>
Declared in <code>&lt;noreturn.cpp&gt;</code></div>
<pre>
<code class="source-code cpp">
[noreturn]
[[noreturn]]
void
f1();
</code>
Expand Down
2 changes: 1 addition & 1 deletion test-files/golden-tests/snippets/terminate.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Declared in `&lt;terminate&period;cpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
[noreturn]
[[noreturn]]
void
terminate() noexcept;
----
Expand Down
2 changes: 1 addition & 1 deletion test-files/golden-tests/snippets/terminate.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h3>Synopsis</h3>
Declared in <code>&lt;terminate.cpp&gt;</code></div>
<pre>
<code class="source-code cpp">
[noreturn]
[[noreturn]]
void
terminate() noexcept;
</code>
Expand Down

0 comments on commit a7a1719

Please sign in to comment.