[clang] [Coverage] Introduce `getBranchCounterPair()`. NFC. (PR #112702)
NAKAMURA Takumi via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 5 19:00:39 PST 2025
================
@@ -941,6 +941,19 @@ struct CounterCoverageMappingBuilder
return Counter::getCounter(CounterMap[S]);
}
+ std::pair<Counter, Counter> getBranchCounterPair(const Stmt *S,
----------------
chapuni wrote:
Done but I am still dubious namings would be appropriate. Not all users expect `[Exec, Skip]`, but `[Exec, Exit]` or similar. Do you have a better idea to resolve namings (not by structural assignments but by name)?
https://github.com/llvm/llvm-project/pull/112702
More information about the cfe-commits
mailing list