| 245 | } |
| 246 | |
| 247 | char 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 | } |
no test coverage detected