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

Method fromJson

lib/analysis/ParamNumberAnalysisReport.cpp:38–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38bool ParamNumberAnalysisReport::fromJson(Json::Value Report) {
39 if (!Report.isMember(getReportType()))
40 return false;
41
42 auto ParamNumberReport = Report[getReportType()];
43 if (!ParamNumberReport.isMember("ParamBeginMap") ||
44 !ParamNumberReport.isMember("ParamSizeMap"))
45 return false;
46
47 auto ParamBeginMapReport = ParamNumberReport["ParamBeginMap"];
48 for (auto MemberName : ParamBeginMapReport.getMemberNames()) {
49 ParamBeginMap.emplace(MemberName, ParamBeginMapReport[MemberName].asUInt());
50 }
51
52 auto ParamSizeMapReport = ParamNumberReport["ParamSizeMap"];
53 for (auto MemberName : ParamSizeMapReport.getMemberNames()) {
54 ParamSizeMap.emplace(MemberName, ParamSizeMapReport[MemberName].asUInt());
55 }
56 return true;
57}
58
59void ParamNumberAnalysisReport::add(std::string FuncName, unsigned ParamNum,
60 unsigned BeginIndex) {

Callers

nothing calls this directly

Calls 3

isMemberMethod · 0.80
getMemberNamesMethod · 0.80
asUIntMethod · 0.80

Tested by

no test coverage detected