Added handling of template methods

This commit is contained in:
Bartek Kryza
2021-03-28 23:36:13 +02:00
parent b61143a5b2
commit 928e5f5baa
4 changed files with 57 additions and 4 deletions

View File

@@ -232,13 +232,18 @@ struct diagram {
auto it = std::find(classes.begin(), classes.end(), c);
if (it == classes.end())
classes.emplace_back(std::move(c));
else
spdlog::debug("Class {} already in the model", c.name);
}
void add_enum(enum_ &&e)
{
spdlog::debug("Adding enum: {}", e.name);
auto it = std::find(enums.begin(), enums.end(), e);
if (it == enums.end())
enums.emplace_back(std::move(e));
else
spdlog::debug("Enum {} already in the model", e.name);
}
std::string to_alias(const std::vector<std::string> &using_namespaces,