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

Method AllocateLinkEntry

Source/cmComputeLinkDepends.cxx:759–771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

757}
758
759std::pair<std::map<cmLinkItem, size_t>::iterator, bool>
760cmComputeLinkDepends::AllocateLinkEntry(cmLinkItem const& item)
761{
762 std::map<cmLinkItem, size_t>::value_type index_entry(
763 item, static_cast<size_t>(this->EntryList.size()));
764 auto lei = this->LinkEntryIndex.insert(index_entry);
765 if (lei.second) {
766 this->EntryList.emplace_back();
767 this->InferredDependSets.emplace_back();
768 this->EntryConstraintGraph.emplace_back();
769 }
770 return lei;
771}
772
773std::pair<size_t, bool> cmComputeLinkDepends::AddLinkEntry(
774 cmLinkItem const& item, cm::optional<size_t> groupIndex)

Callers 3

AddLinkEntryMethod · 0.95
AddLinkObjectMethod · 0.95

Calls 3

emplace_backMethod · 0.80
sizeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected