================
@@ -1006,6 +1006,25 @@ struct CounterCoverageMappingBuilder
return Counters;
}
+ /// Returns {TrueCnt,FalseCnt} for "implicit default".
+ /// FalseCnt is considered as the False count on SwitchStmt.
+ std::pair<Counter, Counter>
+ getSwitchImplicitDefaultCounterPair(const Stmt *Cond, Counter ParentCount,
+ Counter CaseCountSum) {
+ if (llvm::EnableSingleByteCoverage)
+ // Allocate the new Counter since `subtract(Parent - Sum)` is
unavailable.
+ return {Counter::getZero(), // Folded
+ Counter::getCounter(CounterMap[Cond].Skipped =
NextCounterNum++)};
----------------
chapuni wrote:
Done. I supposed it was the topic of `clang-format`.
https://github.com/llvm/llvm-project/pull/113112
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits