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

Function VersionHelper

Source/cmInstrumentationQuery.cxx:96–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 .Bind("minor"_s, &Version::Minor, JSONHelperBuilder::Int(), false);
95
96bool VersionHelper(Version& out, Json::Value const* value, cmJSONState* state)
97{
98 out.Minor = 0;
99 if (value->isInt()) {
100 out.Major = value->asInt();
101 } else if (value->isObject()) {
102 if (!VersionObjectHelper(out, value, state)) {
103 return false;
104 }
105 } else {
106 state->AddErrorAtValue("Version must be an integer or object", value);
107 return false;
108 }
109 return true;
110}
111
112using QueryRoot = cmInstrumentationQuery::QueryJSONRoot;
113

Callers

nothing calls this directly

Calls 4

isIntMethod · 0.80
asIntMethod · 0.80
isObjectMethod · 0.80
AddErrorAtValueMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…