Skip to content

Commit

Permalink
render scoped enums
Browse files Browse the repository at this point in the history
#feat
  • Loading branch information
alandefreitas committed Jan 7, 2025
1 parent eb311c6 commit d02a0c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
enum {{>symbol/name .~}}
enum {{#if isScoped}}class {{/if}}{{>symbol/name .~}}
{{#if type}} : {{>type/declarator type}}{{/if}};
4 changes: 2 additions & 2 deletions test-files/golden-tests/metadata/enum.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Declared in `<enum.cpp>`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
enum E2 : int;
enum class E2 : int;
----

=== Members
Expand Down Expand Up @@ -148,7 +148,7 @@ Declared in `<enum.cpp>`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
enum E3 : char;
enum class E3 : char;
----

=== Members
Expand Down
4 changes: 2 additions & 2 deletions test-files/golden-tests/metadata/enum.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ <h3>Synopsis</h3>
Declared in <code>&lt;enum.cpp&gt;</code></div>
<pre>
<code class="source-code cpp">
enum E2 : int;
enum class E2 : int;
</code>
</pre>
</div>
Expand Down Expand Up @@ -175,7 +175,7 @@ <h3>Synopsis</h3>
Declared in <code>&lt;enum.cpp&gt;</code></div>
<pre>
<code class="source-code cpp">
enum E3 : char;
enum class E3 : char;
</code>
</pre>
</div>
Expand Down

0 comments on commit d02a0c0

Please sign in to comment.