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

Method GetOrCreateInstalledFile

Source/cmake.cxx:3698–3710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3696}
3697
3698cmInstalledFile* cmake::GetOrCreateInstalledFile(cmMakefile* mf,
3699 std::string const& name)
3700{
3701 auto i = this->InstalledFiles.find(name);
3702
3703 if (i != this->InstalledFiles.end()) {
3704 cmInstalledFile& file = i->second;
3705 return &file;
3706 }
3707 cmInstalledFile& file = this->InstalledFiles[name];
3708 file.SetName(mf, name);
3709 return &file;
3710}
3711
3712cmInstalledFile const* cmake::GetInstalledFile(std::string const& name) const
3713{

Callers 2

HandleInstallModeFunction · 0.80
HandleInstallModeFunction · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45
SetNameMethod · 0.45

Tested by

no test coverage detected