Added combine_free_functions_into_file_participants sequence diagram option

This commit is contained in:
Bartek Kryza
2022-12-09 00:10:38 +01:00
parent 6478cffa27
commit caf0ae7928
14 changed files with 212 additions and 12 deletions

View File

@@ -246,6 +246,21 @@ struct function_template : public function, public template_trait {
std::string full_name(bool relative = true) const override;
std::string full_name_no_ns() const override;
std::string message_name(message_render_mode mode) const override
{
std::ostringstream s;
render_template_params(s, using_namespace(), true);
std::string template_params = s.str();
if (mode == message_render_mode::no_arguments) {
return fmt::format("{}{}(){}", name(), template_params,
is_const() ? " const" : "");
}
return fmt::format("{}{}({}){}", name(), template_params,
fmt::join(parameters(), ","), is_const() ? " const" : "");
}
};
}