MCPcopy Create free account
hub / github.com/Samsung/UTopia / fromJson

Method fromJson

lib/constantanalysis/ConstAnalyzerReport.cpp:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29bool ConstAnalyzerReport::fromJson(Json::Value Report) {
30 if (!Report.isMember(getReportType()))
31 return false;
32 auto ConstReport = Report[getReportType()];
33 for (auto ConstName : ConstReport.getMemberNames()) {
34 ASTValue ASTVal(ConstReport[ConstName]);
35 if (ASTVal.isValid())
36 addConst(ConstName, ASTVal);
37 }
38 return !ConstantMap.empty();
39}

Callers

nothing calls this directly

Calls 4

isMemberMethod · 0.80
getMemberNamesMethod · 0.80
isValidMethod · 0.80
emptyMethod · 0.80

Tested by

no test coverage detected