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

Fix logic in default templates for friends to check for friend structs in addition to friend classes. #47

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
2 changes: 1 addition & 1 deletion src/Doxybook/DefaultTemplates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ static std::string createTableForFriendLike(const std::string& title, const std:

ss << "| {% if existsIn(child, \"type\") %}{{child.type}} {% endif -%}\n";
ss << "| **[{{child.name}}]({{child.url}})**";
ss << "{% if child.type != \"class\" -%}\n";
ss << "{% if child.type != \"class\" and child.type != \"struct\" -%}\n";
ss << "({% for param in child.params -%}\n";
ss << "{{param.type}} {{param.name}}";
ss << "{% if existsIn(param, \"defval\") %} ={{param.defval}}{% endif -%}\n";
Expand Down