[llvm] [llvm-cov] Export decision coverage to output json (PR #144335)
Alan Phipps via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 16 10:56:48 PDT 2025
================
@@ -108,10 +108,22 @@ json::Array gatherConditions(const coverage::MCDCRecord &Record) {
return Conditions;
}
+std::pair<unsigned, unsigned> getDecisions(const coverage::MCDCRecord &Record) {
----------------
evodius96 wrote:
As a design consideration, I'm reluctant to bring knowledge of test vectors into the Exporter and would favor encapsulating the calculation of the number of True and False test vectors within `coverage::MCDCRecord`. Basically, move getDecisions() into `coverage::MCDCRecord`. That routine can still return a pair of numbers.
https://github.com/llvm/llvm-project/pull/144335
More information about the llvm-commits
mailing list