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

Method DisplayComponents

Source/cmComputeTargetDepends.cxx:562–578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560}
561
562void cmComputeTargetDepends::DisplayComponents(
563 cmComputeComponentGraph const& ccg, std::string const& name)
564{
565 fprintf(stderr, "The strongly connected components for the %s graph are:\n",
566 name.c_str());
567 std::vector<NodeList> const& components = ccg.GetComponents();
568 size_t n = components.size();
569 for (size_t c = 0; c < n; ++c) {
570 NodeList const& nl = components[c];
571 fprintf(stderr, "Component (%zu):\n", c);
572 for (size_t i : nl) {
573 fprintf(stderr, " contains target %zu [%s]\n", i,
574 this->Targets[i]->GetName().c_str());
575 }
576 }
577 fprintf(stderr, "\n");
578}
579
580bool cmComputeTargetDepends::CheckComponents(
581 cmComputeComponentGraph const& ccg)

Callers 1

ComputeMethod · 0.95

Calls 3

c_strMethod · 0.80
sizeMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected