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

Method ComputeComponentCount

Source/cmComputeLinkDepends.cxx:1656–1670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1654}
1655
1656size_t cmComputeLinkDepends::ComputeComponentCount(NodeList const& nl)
1657{
1658 size_t count = 2;
1659 for (size_t ni : nl) {
1660 if (cmGeneratorTarget const* target = this->EntryList[ni].Target) {
1661 if (cmLinkInterface const* iface =
1662 target->GetLinkInterface(this->Config, this->Target)) {
1663 if (iface->Multiplicity > count) {
1664 count = iface->Multiplicity;
1665 }
1666 }
1667 }
1668 }
1669 return count;
1670}
1671
1672namespace {
1673void DisplayLinkEntry(int& count, cmComputeLinkDepends::LinkEntry const& entry)

Callers 1

Calls 1

GetLinkInterfaceMethod · 0.80

Tested by

no test coverage detected