|
21 | 21 | // -- Branches: array => List of Branches in the file |
22 | 22 | // -- Branch: dict => Describes a branch of the file with counters |
23 | 23 | // -- MCDC Records: array => List of MCDC records in the file |
24 | | -// -- MCDC Values: array => List of T/F covered condition values and list of executed test vectors |
| 24 | +// -- MCDC Values: array => List of T/F covered condition values and |
| 25 | +// list of executed test vectors |
25 | 26 | // -- Segments: array => List of Segments contained in the file |
26 | 27 | // -- Segment: dict => Describes a segment of the file with a counter |
27 | 28 | // -- Expansions: array => List of expansion records |
@@ -139,11 +140,11 @@ json::Array gatherTestVectors(coverage::MCDCRecord &Record) { |
139 | 140 | json::Array renderMCDCRecord(const coverage::MCDCRecord &Record) { |
140 | 141 | const llvm::coverage::CounterMappingRegion &CMR = Record.getDecisionRegion(); |
141 | 142 | const auto [TrueDecisions, FalseDecisions] = Record.getDecisions(); |
142 | | - return json::Array({CMR.LineStart, CMR.ColumnStart, CMR.LineEnd, |
143 | | - CMR.ColumnEnd, TrueDecisions, FalseDecisions, |
144 | | - CMR.FileID, CMR.ExpandedFileID, int64_t(CMR.Kind), |
145 | | - gatherConditions(Record), |
146 | | - gatherTestVectors(const_cast<coverage::MCDCRecord &>(Record))}); |
| 143 | + return json::Array( |
| 144 | + {CMR.LineStart, CMR.ColumnStart, CMR.LineEnd, CMR.ColumnEnd, |
| 145 | + TrueDecisions, FalseDecisions, CMR.FileID, CMR.ExpandedFileID, |
| 146 | + int64_t(CMR.Kind), gatherConditions(Record), |
| 147 | + gatherTestVectors(const_cast<coverage::MCDCRecord &>(Record))}); |
147 | 148 | } |
148 | 149 |
|
149 | 150 | json::Array renderRegions(ArrayRef<coverage::CountedRegion> Regions) { |
|
0 commit comments