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

Method GetFlag

Source/cmIDEOptions.cxx:247–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247char const* cmIDEOptions::GetFlag(std::string const& flag) const
248{
249 // This method works only for single-valued flags!
250 auto i = this->FlagMap.find(flag);
251 if (i != this->FlagMap.cend() && i->second.size() == 1) {
252 return i->second[0].c_str();
253 }
254 return nullptr;
255}

Callers 7

UsingDebugRuntimeMethod · 0.80
OutputBuildToolMethod · 0.80
OutputLinkIncrementalMethod · 0.80
ComputeClOptionsMethod · 0.80
ComputeCudaOptionsMethod · 0.80
ComputeLinkOptionsMethod · 0.80

Calls 4

cendMethod · 0.80
c_strMethod · 0.80
findMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected