| 1520 | } |
| 1521 | |
| 1522 | void cmComputeLinkDepends::DisplayComponents() |
| 1523 | { |
| 1524 | fprintf(stderr, "The strongly connected components are:\n"); |
| 1525 | std::vector<NodeList> const& components = this->CCG->GetComponents(); |
| 1526 | for (size_t c = 0; c < components.size(); ++c) { |
| 1527 | fprintf(stderr, "Component (%zu):\n", c); |
| 1528 | NodeList const& nl = components[c]; |
| 1529 | for (size_t i : nl) { |
| 1530 | fprintf(stderr, " item %zu [%s]\n", i, |
| 1531 | this->EntryList[i].Item.Value.c_str()); |
| 1532 | } |
| 1533 | EdgeList const& ol = this->CCG->GetComponentGraphEdges(c); |
| 1534 | for (cmGraphEdge const& oi : ol) { |
| 1535 | size_t i = oi; |
| 1536 | fprintf(stderr, " followed by Component (%zu)\n", i); |
| 1537 | } |
| 1538 | fprintf(stderr, " topo order index %zu\n", this->ComponentOrder[c]); |
| 1539 | } |
| 1540 | fprintf(stderr, "\n"); |
| 1541 | } |
| 1542 | |
| 1543 | void cmComputeLinkDepends::VisitComponent(size_t c) |
| 1544 | { |
no test coverage detected