| 27 | } |
| 28 | |
| 29 | bool 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 | } |
nothing calls this directly
no test coverage detected