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

Method fromJson

lib/propanalysis/DirectionAnalysisReport.cpp:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

isMemberMethod · 0.80
getMemberNamesMethod · 0.80
asUIntMethod · 0.80

Tested by

no test coverage detected