| 236 | } |
| 237 | |
| 238 | bool EnvironmentHelper(cm::optional<std::string>& out, |
| 239 | Json::Value const* value, cmJSONState* state) |
| 240 | { |
| 241 | if (!value || value->isNull()) { |
| 242 | out = cm::nullopt; |
| 243 | return true; |
| 244 | } |
| 245 | if (value->isString()) { |
| 246 | out = value->asString(); |
| 247 | return true; |
| 248 | } |
| 249 | cmCMakePresetsErrors::INVALID_PRESET(value, state); |
| 250 | return false; |
| 251 | } |
| 252 | |
| 253 | auto const VersionIntHelper = |
| 254 | JSONHelperBuilder::Int(cmCMakePresetsErrors::INVALID_VERSION); |
nothing calls this directly
no test coverage detected
searching dependent graphs…