Refactored template specialization matching

This commit is contained in:
Bartek Kryza
2023-04-05 21:57:44 +02:00
parent cb74864d0d
commit 38928cf86f
11 changed files with 174 additions and 126 deletions

View File

@@ -86,7 +86,7 @@ void to_json(nlohmann::json &j, const class_ &c)
j["methods"] = c.methods();
j["bases"] = c.parents();
j["template_parameters"] = c.templates();
j["template_parameters"] = c.template_params();
}
void to_json(nlohmann::json &j, const enum_ &c)

View File

@@ -166,7 +166,7 @@ void generator::generate(const class_ &c, std::ostream &ostr) const
ostr << plantuml_common::to_plantuml(m.access()) << m.name();
if (!m.templates().empty()) {
if (!m.template_params().empty()) {
m.render_template_params(ostr, m_config.using_namespace(), false);
}