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

Method AddObjects

Source/cmComputeLinkDepends.cxx:490–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488 }
489
490 void AddObjects(std::vector<size_t> const& objectEntries)
491 {
492 // Place explicitly linked object files in the front. The linker will
493 // always use them anyway, and they may depend on symbols from libraries.
494 if (this->Order == Reverse) {
495 // Append in reverse order at the end since we reverse the final order.
496 for (auto index : cmReverseRange(objectEntries)) {
497 this->FinalEntries.emplace_back(this->Entries[index]);
498 }
499 } else {
500 // Append in reverse order to ensure correct final order
501 for (auto index : cmReverseRange(objectEntries)) {
502 this->FinalEntries.emplace(this->FinalEntries.begin(),
503 this->Entries[index]);
504 }
505 }
506 }
507
508 void Finalize()
509 {

Callers 1

Calls 4

cmReverseRangeFunction · 0.85
emplace_backMethod · 0.80
emplaceMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected