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

Method PrependLinkDirectoriesEntry

Source/cmStateDirectory.cxx:239–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237 this->Snapshot_.Position->LinkDirectoriesPosition, vec);
238}
239void cmStateDirectory::PrependLinkDirectoriesEntry(const BT<std::string>& vec)
240{
241 auto entryEnd = this->DirectoryState->LinkDirectories.begin() +
242 this->Snapshot_.Position->LinkDirectoriesPosition;
243
244 auto rend = this->DirectoryState->LinkDirectories.rend();
245 auto rbegin = cm::make_reverse_iterator(entryEnd);
246 rbegin = std::find(rbegin, rend, cmStateDetail::PropertySentinel);
247
248 auto entryIt = rbegin.base();
249
250 this->DirectoryState->LinkDirectories.insert(entryIt, vec);
251
252 this->Snapshot_.Position->LinkDirectoriesPosition =
253 this->DirectoryState->LinkDirectories.size();
254}
255
256void cmStateDirectory::SetLinkDirectories(const BT<std::string>& vec)
257{

Callers 1

AddLinkDirectoryMethod · 0.80

Calls 5

rendMethod · 0.80
findFunction · 0.50
beginMethod · 0.45
insertMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected