[clang] [Coverage] Introduce `getBranchCounterPair()`. NFC. (PR #112702)
Jessica Paquette via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 18 00:56:11 PDT 2024
================
@@ -941,6 +941,19 @@ struct CounterCoverageMappingBuilder
return Counter::getCounter(CounterMap[S]);
}
+ std::pair<Counter, Counter> getBranchCounterPair(const Stmt *S,
----------------
ornata wrote:
it's not immediately obvious what the pair represents from this function name.
`getExecutionCountAnd...`?
or, make a lightweight POD struct to represent this
```
struct ExecCntAnd... {
Counter ExecCnt
Counter ...
};
```
https://github.com/llvm/llvm-project/pull/112702
More information about the cfe-commits
mailing list