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

Method fromJson

lib/propanalysis/AllocSizeAnalysisReport.cpp:21–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21bool AllocSizeAnalysisReport::fromJson(Json::Value Report) {
22 if (!Report.isMember(getReportType()))
23 return false;
24 auto AllocSizeReport = Report[getReportType()];
25 for (auto MemberName : AllocSizeReport.getMemberNames()) {
26 auto AllocVal = AllocSizeReport[MemberName];
27 set(MemberName, AllocVal.asBool());
28 }
29 return true;
30}
31
32void AllocSizeAnalysisReport::add(ArgFlow &AF, std::vector<int> Indices) {
33 auto &A = AF.getLLVMArg();

Callers

nothing calls this directly

Calls 3

isMemberMethod · 0.80
getMemberNamesMethod · 0.80
asBoolMethod · 0.80

Tested by

no test coverage detected