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

Method AddPathInternal

Source/cmSearchPath.cxx:222–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222void cmSearchPath::AddPathInternal(std::string const& path,
223 std::string const& prefix)
224{
225 assert(this->FC);
226
227 if (path.empty()) {
228 return;
229 }
230
231 // Insert the path if has not already been emitted.
232 PathWithPrefix pathWithPrefix{ path, prefix };
233 if (this->FC->SearchPathsEmitted.insert(pathWithPrefix).second) {
234 this->Paths.emplace_back(std::move(pathWithPrefix));
235 }
236}

Callers 5

AddPathMethod · 0.95
AddUserPathMethod · 0.95
AddCMakePathMethod · 0.95
AddEnvPathMethod · 0.95
AddPrefixPathsMethod · 0.95

Calls 4

moveFunction · 0.85
emplace_backMethod · 0.80
emptyMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected