MCPcopy Create free account
hub / github.com/Kitware/CMake / DisplayComponents

Method DisplayComponents

Source/cmComputeLinkDepends.cxx:1522–1541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1520}
1521
1522void 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
1543void cmComputeLinkDepends::VisitComponent(size_t c)
1544{

Callers 1

OrderLinkEntriesMethod · 0.95

Calls 2

c_strMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected