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

Function ReadList

Source/cmPackageInfoReader.cxx:210–223  ·  view source on GitHub ↗

Get list-of-strings value from object.

Source from the content-addressed store, hash-verified

208
209// Get list-of-strings value from object.
210std::vector<std::string> ReadList(Json::Value const& arr)
211{
212 std::vector<std::string> result;
213
214 if (arr.isArray()) {
215 for (Json::Value const& val : arr) {
216 if (val.isString()) {
217 result.push_back(val.asString());
218 }
219 }
220 }
221
222 return result;
223}
224
225std::vector<std::string> ReadList(Json::Value const& data, char const* key)
226{

Callers 5

AppendLanguagePropertiesFunction · 0.85
ReadMethod · 0.85
GetRequirementsMethod · 0.85
SetTargetPropertiesMethod · 0.85
ImportTargetsMethod · 0.85

Calls 4

isArrayMethod · 0.80
isStringMethod · 0.80
push_backMethod · 0.80
asStringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…