Fixed dependency generation for template parameters

This commit is contained in:
Bartek Kryza
2021-03-19 19:52:39 +01:00
parent ce1d94984d
commit bd2aecb775
6 changed files with 52 additions and 20 deletions

View File

@@ -185,14 +185,14 @@ public:
for (const auto &r : c.relationships) {
std::string destination;
if (r.type == relationship_t::kInstantiation) {
destination = m_model.usr_to_name(
m_config.using_namespace, r.destination);
}
else if (r.destination.find("#") != std::string::npos ||
if (r.destination.find("#") != std::string::npos ||
r.destination.find("@") != std::string::npos) {
destination = m_model.usr_to_name(
m_config.using_namespace, r.destination);
if (destination.empty()) {
ostr << "' ";
destination = r.destination;
}
}
else {
destination = r.destination;