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

Function VariableValueHelper

Source/cmCMakePresetsGraphReadJSONConfigurePresets.cxx:152–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150auto const VariableStringHelper = JSONHelperBuilder::String();
151
152bool VariableValueHelper(std::string& out, Json::Value const* value,
153 cmJSONState* state)
154{
155 if (!value) {
156 out.clear();
157 return true;
158 }
159
160 if (value->isBool()) {
161 out = value->asBool() ? "TRUE" : "FALSE";
162 return true;
163 }
164
165 return VariableStringHelper(out, value, state);
166}
167
168auto const VariableObjectHelper =
169 JSONHelperBuilder::Object<CacheVariable>(

Callers

nothing calls this directly

Calls 3

isBoolMethod · 0.80
asBoolMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…