Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Handle C++ enum class properly in the default templates #45

Merged
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
3 changes: 2 additions & 1 deletion src/Doxybook/DefaultTemplates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,8 @@ static std::string createTableForTypeLike(const std::string& visibility,
ss << "{% if not loop.is_last %},{% endif -%}\n";
ss << "{% endfor %}\\> <br>{% endif -%}\n";

ss << "{{child.kind}}{% if existsIn(child, \"type\") %} {{child.type}} {% endif -%}\n";
ss << "{{child.kind}}{% if child.kind == \"enum\" and child.strong %} class{% endif %}";
ss << "{% if existsIn(child, \"type\") %} {{child.type}} {% endif -%}";

ss << "| **[{{child.name}}]({{child.url}})** ";
ss << "{% if child.kind == \"enum\" %}{ ";
Expand Down