Added handling of method parameters default values

This commit is contained in:
Bartek Kryza
2021-03-18 20:33:46 +01:00
parent fcafef4b85
commit 3c0e9d51d2
7 changed files with 46 additions and 12 deletions

View File

@@ -136,8 +136,9 @@ public:
if (true) { // TODO: add option to disable parameter generation
std::vector<std::string> params;
std::transform(m.parameters.begin(), m.parameters.end(),
std::back_inserter(params),
[](const auto &mp) { return mp.to_string(); });
std::back_inserter(params), [this](const auto &mp) {
return mp.to_string(m_config.using_namespace);
});
ostr << fmt::format("{}", fmt::join(params, ", "));
}
ostr << ")";