llvm-project/clang/test/CoverageMapping
Ying Yi 94dd4766a6 [Coverage] Fix an issue: a statement after calling 'assert()' function is wrongly
marked as 'not executed'.

In the current coverage mapping implementation, we terminate the current region
and start a zero region when we hit a nonreturn function. However, for logical OR,
the second operand is not executed if the first operand evaluates to true. If the
nonreturn function is called in the right side of logical OR and the left side of
logical OR is TRUE, we should not start a zero `GapRegionCounter`. This will also
apply to `VisitAbstractConditionalOperator`.

Fixes https://github.com/llvm/llvm-project/issues/59030

Reviewed By: zequanwu

Differential Revision: https://reviews.llvm.org/D144371
2023-03-02 09:14:44 +00:00
..
Inputs
abspath.cpp
block-storage-starts-region.m
branch-constfolded.cpp
branch-logical-mixed.cpp
branch-macros.cpp
branch-mincounters.cpp
branch-templates.cpp
break.c
builtinmacro.c
casts.c
classtemplate.cpp
comment-in-macro.c
comment.cpp
continue.c
control-flow-macro.c
coroutine.cpp [Coroutines] Remove -fcoroutines-ts 2023-02-23 14:40:58 +08:00
decl.c
default-method.cpp
empty-destructor.cpp
header.cpp
if.cpp
implicit-def-in-macro.m
include-macros.c
includehell.cpp
ir.c
label.cpp
lambda.cpp
logical.cpp
loopmacro.c
loops.cpp
macro-expansion.c
macro-expressions.cpp
macro-stringize-twice.cpp
macroception.c
macroparams.c
macroparams2.c
macros.c
macroscopes.cpp
md.cpp
moremacros.c
nestedclass.cpp
objc.m
openmp.c
pr32679.cpp
preprocessor.c
return.c
switch.cpp
switchmacro.c
system_macro.cpp
templates.cpp
terminate-statements.cpp [Coverage] Fix an issue: a statement after calling 'assert()' function is wrongly 2023-03-02 09:14:44 +00:00
test.c
trycatch.cpp
trymacro.cpp
unreachable-macro.c
unused_function_no_runtime_hook.cpp
unused_function.cpp
unused_names.c
while.c