hanchenye-llvm-project/clang/test/CoverageMapping
Alex Lorenz 08780529b3 [Coverage] The coverage region for switch covers the code after the switch.
This patch fixes a regression introduced in r262697 that changed the way the
coverage regions for switches are constructed. The PGO instrumentation counter
for a switch statement refers to the counter at the exit of the switch.
Therefore, the coverage region for the switch statement should cover the code
that comes after the switch, and not the switch statement itself.

rdar://28480997

Differential Revision: https://reviews.llvm.org/D24981

llvm-svn: 282554
2016-09-27 23:30:36 +00:00
..
Inputs Reapply [Coverage] Fix an assertion failure if the definition of an unused function spans multiple files. 2016-06-07 10:07:51 +00:00
abspath.cpp [Coverage] Attempt to appease a Windows builder 2016-07-22 00:25:09 +00:00
block-storage-starts-region.m
break.c
builtinmacro.c
casts.c
classtemplate.cpp
comment-in-macro.c
continue.c
control-flow-macro.c
decl.c
header.cpp
if.c
implicit-def-in-macro.m
include-macros.c [Lexer] Don't merge macro args from different macro files 2016-05-19 23:44:02 +00:00
includehell.cpp
ir.c Restrengthen tests relaxed in r259955 2016-02-17 00:58:13 +00:00
label.cpp
lambda.cpp
logical.cpp
loopmacro.c
loops.cpp
macro-expansion.c
macro-expressions.cpp [Coverage] Fix crash when handling certain macro expansions 2016-02-08 19:25:45 +00:00
macroception.c [Coverage] Suppress creating a code region if the same area is covered by an expansion region. 2016-08-31 07:04:16 +00:00
macroparams.c
macroparams2.c
macros.c [Coverage] Suppress creating a code region if the same area is covered by an expansion region. 2016-08-31 07:04:16 +00:00
macroscopes.cpp [Coverage] Fix an issue where a coverage region might not be created for a macro containing a loop statement. 2016-05-04 15:38:26 +00:00
md.cpp
moremacros.c
nestedclass.cpp
objc.m
preprocessor.c
return.c
switch.c [Coverage] The coverage region for switch covers the code after the switch. 2016-09-27 23:30:36 +00:00
switchmacro.c [Coverage] The coverage region for switch covers the code after the switch. 2016-09-27 23:30:36 +00:00
system_macro.cpp [Coverage] Do not write out coverage mappings with zero entries 2016-07-26 00:24:59 +00:00
templates.cpp
test.c
trycatch.cpp [Coverage] Push a new region when handling CXXTryStmts 2016-06-22 19:57:58 +00:00
trymacro.cpp [Coverage] Push a new region when handling CXXTryStmts 2016-06-22 19:57:58 +00:00
unreachable-macro.c
unused_function.cpp Reapply [Coverage] Fix an assertion failure if the definition of an unused function spans multiple files. 2016-06-07 10:07:51 +00:00
unused_names.c Restrengthen tests relaxed in r259955 2016-02-17 00:58:13 +00:00
while.c