Fixed sequence diagram test cases on LLVM 16
This commit is contained in:
@@ -2826,11 +2826,14 @@ void translation_unit_visitor::finalize()
|
|||||||
bool translation_unit_visitor::simplify_system_template(
|
bool translation_unit_visitor::simplify_system_template(
|
||||||
template_parameter &ct, const std::string &full_name) const
|
template_parameter &ct, const std::string &full_name) const
|
||||||
{
|
{
|
||||||
if (config().type_aliases().count(full_name) > 0) {
|
auto simplified = config().simplify_template_type(full_name);
|
||||||
ct.set_type(config().type_aliases().at(full_name));
|
|
||||||
|
if (simplified != full_name) {
|
||||||
|
ct.set_type(simplified);
|
||||||
ct.clear_params();
|
ct.clear_params();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2064,12 +2064,7 @@ bool translation_unit_visitor::simplify_system_template(
|
|||||||
std::string translation_unit_visitor::simplify_system_template(
|
std::string translation_unit_visitor::simplify_system_template(
|
||||||
const std::string &full_name) const
|
const std::string &full_name) const
|
||||||
{
|
{
|
||||||
std::string result{full_name};
|
return config().simplify_template_type(full_name);
|
||||||
for (const auto &[k, v] : config().type_aliases()) {
|
|
||||||
util::replace_all(result, k, v);
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string translation_unit_visitor::make_lambda_name(
|
std::string translation_unit_visitor::make_lambda_name(
|
||||||
|
|||||||
Reference in New Issue
Block a user