[clang] [Coverage] Introduce `getBranchCounterPair()`. NFC. (PR #112702)

NAKAMURA Takumi via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 8 01:19:43 PST 2025


================
@@ -938,6 +938,37 @@ struct CounterCoverageMappingBuilder
     return Counter::getCounter(CounterMap[S]);
   }
 
+  struct BranchCounterPair {
+    Counter Executed;
+    Counter Skipped;
+  };
+
+  BranchCounterPair getBranchCounterPair(const Stmt *S, Counter ParentCnt) {
----------------
chapuni wrote:

Done.

https://github.com/llvm/llvm-project/pull/112702


More information about the cfe-commits mailing list