WIP Refactoring alias template resolution based on clang canonical representation

This commit is contained in:
Bartek Kryza
2022-05-05 00:34:23 +02:00
parent 9399d80f6f
commit 468393ddb8
13 changed files with 235 additions and 61 deletions

View File

@@ -139,10 +139,13 @@ std::ostringstream &class_::render_template_params(
if (!templates_.empty()) {
std::vector<std::string> tnames;
std::vector<std::string> tnames_simplified;
std::transform(templates_.cbegin(), templates_.cend(),
std::back_inserter(tnames), [this](const auto &tmplt) {
return tmplt.to_string(using_namespace());
});
std::back_inserter(tnames),
[ns = using_namespace()](
const auto &tmplt) { return tmplt.to_string(ns); });
ostr << fmt::format("<{}>", fmt::join(tnames, ","));
}
return ostr;