| 550 | } |
| 551 | |
| 552 | std::string cmGraphVizWriter::ItemNameWithAliases( |
| 553 | std::string const& itemName) const |
| 554 | { |
| 555 | std::vector<std::string> items; |
| 556 | for (auto const& lg : this->GlobalGenerator->GetLocalGenerators()) { |
| 557 | for (auto const& aliasTargets : lg->GetMakefile()->GetAliasTargets()) { |
| 558 | if (aliasTargets.second == itemName) { |
| 559 | items.push_back(aliasTargets.first); |
| 560 | } |
| 561 | } |
| 562 | } |
| 563 | |
| 564 | std::sort(items.begin(), items.end()); |
| 565 | items.erase(std::unique(items.begin(), items.end()), items.end()); |
| 566 | |
| 567 | auto nameWithAliases = itemName; |
| 568 | for(auto const& item : items) { |
| 569 | nameWithAliases += "\\n(" + item + ")"; |
| 570 | } |
| 571 | |
| 572 | return nameWithAliases; |
| 573 | } |
| 574 | |
| 575 | std::string cmGraphVizWriter::GetEdgeStyle(DependencyType dt) |
| 576 | { |
no test coverage detected