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

Function Bool

Source/cmJSONHelpers.h:281–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279 }
280
281 static cmJSONHelper<bool> Bool(
282 JsonErrors::ErrorGenerator const& error = JsonErrors::INVALID_BOOL,
283 bool defval = false)
284 {
285 return [error, defval](bool& out, Json::Value const* value,
286 cmJSONState* state) -> bool {
287 if (!value) {
288 out = defval;
289 return true;
290 }
291 if (!value->isBool()) {
292 error(value, state);
293 return false;
294 }
295 out = value->asBool();
296 return true;
297 };
298 }
299
300 static cmJSONHelper<bool> Bool(bool defval)
301 {

Callers 3

PresetBoolHelperFunction · 0.85

Calls 3

errorFunction · 0.85
isBoolMethod · 0.80
asBoolMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…