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

Commit

Permalink
Merge pull request #47 from brycelelbach/default-templates/friends-st…
Browse files Browse the repository at this point in the history
…ruct-check

Fix logic in default templates for friends to check for friend structs in addition to friend classes.
  • Loading branch information
matusnovak authored Jun 25, 2021
2 parents c4a121a + 01329d7 commit 5d51077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Doxybook/DefaultTemplates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,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

0 comments on commit 5d51077

Please sign in to comment.