diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2024-12-19 08:41:07 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-19 08:41:07 +0900 |
commit | ef955908302b6a6170e9775d89a94846fde12ebf (patch) | |
tree | ec87f5c6a28ccce9f89940e0e5f93565eadabe7c /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 7eaf4708098c216bf432fc7e0bc79c3771e793a4 (diff) | |
download | llvm-ef955908302b6a6170e9775d89a94846fde12ebf.zip llvm-ef955908302b6a6170e9775d89a94846fde12ebf.tar.gz llvm-ef955908302b6a6170e9775d89a94846fde12ebf.tar.bz2 |
[Coverage] Resurrect Branch:FalseCnt in SwitchStmt that was pruned in #112694 (#120418)
I missed that FalseCnt for each Case was used to calculate percentage in
the SwitchStmt. At the moment I resurrect them.
In `!HasDefaultCase`, the pair of Counters shall be `[CaseCountSum,
FalseCnt]`. (Reversal of before #112694)
I think it can be considered as the False count on SwitchStmt.
FalseCnt shall be folded (same as current impl) in the coming
SingleByteCoverage changes, since percentage would not make sense.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions