llvm-project/clang/test/CoverageMapping
Vedant Kumar 859bf4d2be [Coverage] Emit a gap region to cover switch bodies
Emit a gap region beginning where the switch body begins. This sets line
execution counts in the areas between non-overlapping cases to 0.

This also removes some special handling of the first case in a switch:
these are now treated like any other case.

This does not resolve an outstanding issue with case statement regions
that do not end when a region is terminated. But it should address
llvm.org/PR44011.

Differential Revision: https://reviews.llvm.org/D70571
2019-12-03 12:35:54 -08:00
..
Inputs
abspath.cpp Fix one more clang test which didn't have \5C in it 2019-10-10 18:42:06 +00:00
block-storage-starts-region.m
break.c [Coverage] Handle break/continue outside of loop bodies 2018-02-16 07:59:43 +00:00
builtinmacro.c
casts.c
classtemplate.cpp [Parse] Forward brace locations to TypeConstructExpr 2018-01-17 18:53:51 +00:00
comment-in-macro.c
continue.c [Coverage] Emit gap areas in braces-optional statements (PR35387) 2017-11-29 22:25:14 +00:00
control-flow-macro.c
decl.c
default-method.cpp [Coverage] Specify the Itanium ABI triple for a C++ test 2018-11-28 20:51:09 +00:00
deferred-region.cpp [Coverage] Discard the last uncompleted deferred region in a decl 2018-05-30 23:35:44 +00:00
empty-destructor.cpp
header.cpp
if.cpp [Coverage] Emit gap areas in braces-optional statements (PR35387) 2017-11-29 22:25:14 +00:00
implicit-def-in-macro.m
include-macros.c
includehell.cpp [Coverage] Emit gap areas in braces-optional statements (PR35387) 2017-11-29 22:25:14 +00:00
ir.c
label.cpp [Coverage] Remove a test dependency on the itanium ABI 2018-06-01 17:11:18 +00:00
lambda.cpp
logical.cpp
loopmacro.c
loops.cpp [Coverage] Emit gap areas in braces-optional statements (PR35387) 2017-11-29 22:25:14 +00:00
macro-expansion.c
macro-expressions.cpp [Coverage] Emit gap areas in braces-optional statements (PR35387) 2017-11-29 22:25:14 +00:00
macro-stringize-twice.cpp Remove cache for macro arg stringization 2019-07-30 17:58:22 +00:00
macroception.c
macroparams.c
macroparams2.c
macros.c [Coverage] Fix PR39258: support coverage regions that start deeper than they end 2018-11-19 20:10:22 +00:00
macroscopes.cpp
md.cpp
moremacros.c [Coverage] Discard the last uncompleted deferred region in a decl 2018-05-30 23:35:44 +00:00
nestedclass.cpp
objc.m [Coverage] Emit gap areas in braces-optional statements (PR35387) 2017-11-29 22:25:14 +00:00
openmp.c [OPENMP] Fix PR38256: Fix locations of the artificial conditional op. 2018-07-25 14:40:26 +00:00
pr32679.cpp
preprocessor.c
return.c [Coverage] Emit gap areas in braces-optional statements (PR35387) 2017-11-29 22:25:14 +00:00
switch.cpp [Coverage] Emit a gap region to cover switch bodies 2019-12-03 12:35:54 -08:00
switchmacro.c [Coverage] Emit a gap region to cover switch bodies 2019-12-03 12:35:54 -08:00
system_macro.cpp
templates.cpp
test.c [Coverage] Emit gap areas in braces-optional statements (PR35387) 2017-11-29 22:25:14 +00:00
trycatch.cpp [Coverage] Discard the last uncompleted deferred region in a decl 2018-05-30 23:35:44 +00:00
trymacro.cpp
unreachable-macro.c
unused_function.cpp
unused_names.c Fix clang tests broken by r353547 that depend on InstrProf 2019-02-10 20:17:07 +00:00
while.c [Coverage] Emit gap areas in braces-optional statements (PR35387) 2017-11-29 22:25:14 +00:00