MCPcopy Index your code
hub / github.com/Kitware/CMake / PresetVectorOneOrMoreStringHelper

Function PresetVectorOneOrMoreStringHelper

Source/cmCMakePresetsGraphReadJSON.cxx:437–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437bool PresetVectorOneOrMoreStringHelper(std::vector<std::string>& out,
438 Json::Value const* value,
439 cmJSONState* state)
440{
441 out.clear();
442 if (!value) {
443 return true;
444 }
445
446 if (value->isString()) {
447 out.push_back(value->asString());
448 return true;
449 }
450
451 return PresetVectorStringHelper(out, value, state);
452}
453
454bool EnvironmentMapHelper(
455 std::map<std::string, cm::optional<std::string>>& out,

Callers

nothing calls this directly

Calls 5

PresetVectorStringHelperFunction · 0.85
isStringMethod · 0.80
push_backMethod · 0.80
asStringMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…