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

Jessica Paquette via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 6 20:19:59 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) {
----------------
ornata wrote:

Can we add Doxygen comments for this?

I'd like to be able to know what, e.g. `ParentCnt` is only by looking at this function.

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


More information about the cfe-commits mailing list