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

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


================
@@ -939,8 +939,17 @@ struct CounterCoverageMappingBuilder
     Counter Skipped;
   };
 
-  BranchCounterPair getBranchCounterPair(const Stmt *S, Counter ParentCnt) {
+  BranchCounterPair
+  getBranchCounterPair(const Stmt *S, Counter ParentCnt,
+                       std::optional<Counter> SkipCntForOld = std::nullopt) {
----------------
chapuni wrote:

FYI, https://github.com/llvm/llvm-project/pull/113115/commits/0e2997d02e7c60c698364d6fad234e444bc92851

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


More information about the cfe-commits mailing list