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

Function PresetNameHelper

Source/cmCMakePresetsGraphReadJSON.cxx:340–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340bool PresetNameHelper(std::string& out, Json::Value const* value,
341 cmJSONState* state)
342{
343 if (!value || !value->isString() || value->asString().empty()) {
344 cmCMakePresetsErrors::INVALID_PRESET_NAME(value, state);
345 return false;
346 }
347 out = value->asString();
348 return true;
349}
350
351bool PresetVectorStringHelper(std::vector<std::string>& out,
352 Json::Value const* value, cmJSONState* state)

Callers

nothing calls this directly

Calls 4

INVALID_PRESET_NAMEFunction · 0.85
isStringMethod · 0.80
asStringMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…