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

Function ObjectPropsFilter

Tests/CMakeLib/testJSONHelpers.cxx:469–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467}
468
469JSONHelperBuilder::FilterResult ObjectPropsFilter(std::string const& key,
470 Json::Value const* value,
471 cmJSONState* state)
472{
473 if (key == "ignore") {
474 return JSONHelperBuilder::FilterResult::Skip;
475 }
476 if (value->isString() && value->asString() == "ignore") {
477 return JSONHelperBuilder::FilterResult::Skip;
478 }
479 if (key == "zerror") {
480 ErrorMessages::FaultyObjectProperty(value, state);
481 return JSONHelperBuilder::FilterResult::Error;
482 }
483 return JSONHelperBuilder::FilterResult::Continue;
484}
485
486template <typename Container>
487bool testFilteredObject()

Callers

nothing calls this directly

Calls 2

isStringMethod · 0.80
asStringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…