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

Method GetArray

Source/cmQtAutoGenerator.cxx:340–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340bool cmQtAutoGenerator::InfoT::GetArray(std::string const& key,
341 std::vector<std::string>& list,
342 bool required) const
343{
344 Json::Value const& jval = this->Json_[key];
345 if (!jval.isArray()) {
346 if (!jval.isNull() || required) {
347 return this->LogError(cmStrCat(key, " is not an array."));
348 }
349 }
350 return GetJsonArray(list, jval) || !required;
351}
352
353bool cmQtAutoGenerator::InfoT::GetArray(std::string const& key,
354 std::unordered_set<std::string>& list,

Callers 3

GetArrayConfigMethod · 0.95
InitFromInfoMethod · 0.80
InitFromInfoMethod · 0.80

Calls 4

LogErrorMethod · 0.95
isArrayMethod · 0.80
isNullMethod · 0.80
cmStrCatFunction · 0.70

Tested by

no test coverage detected