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

Function SubConditionHelper

Source/cmCMakePresetsGraphReadJSON.cxx:225–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225bool SubConditionHelper(std::unique_ptr<cmCMakePresetsGraph::Condition>& out,
226 Json::Value const* value, cmJSONState* state)
227{
228 std::unique_ptr<cmCMakePresetsGraph::Condition> ptr;
229 auto result = ConditionHelper(ptr, value, state);
230 if (ptr && ptr->IsNull()) {
231 cmCMakePresetsErrors::INVALID_CONDITION(value, state);
232 return false;
233 }
234 out = std::move(ptr);
235 return result;
236}
237
238bool EnvironmentHelper(cm::optional<std::string>& out,
239 Json::Value const* value, cmJSONState* state)

Callers

nothing calls this directly

Calls 4

ConditionHelperFunction · 0.85
INVALID_CONDITIONFunction · 0.85
moveFunction · 0.85
IsNullMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…