[llvm] Add executed MC/DC TestVectors to `llvm-cov export` (PR #105511)
Alan Phipps via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 5 08:26:46 PDT 2025
================
@@ -108,11 +108,40 @@ json::Array gatherConditions(const coverage::MCDCRecord &Record) {
return Conditions;
}
+json::Value renderCondState(const coverage::MCDCRecord::CondState CondState) {
+ switch (CondState) {
+ case coverage::MCDCRecord::MCDC_DontCare:
+ return json::Value(nullptr);
+ case coverage::MCDCRecord::MCDC_True:
+ return json::Value(true);
+ case coverage::MCDCRecord::MCDC_False:
+ return json::Value(false);
+ }
+}
+
+json::Array gatherTestVectors(coverage::MCDCRecord &Record) {
----------------
evodius96 wrote:
Can you document your additions in the comment at the top of the file (line 23ff)?
https://github.com/llvm/llvm-project/pull/105511
More information about the llvm-commits
mailing list