llvm-project/clang/test/CoverageMapping
Igor Kudrin d9e1a61d31 Reapply [Coverage] Fix an assertion failure if the definition of an unused function spans multiple files.
We have an assertion failure if, for example, the definition of an unused
inline function starts in one macro and ends in another. This patch fixes
the issue by finding the common ancestor of the start and end locations
of that function's body and changing the locations accordingly.

Thanks to NAKAMURA Takumi for helping with fixing the test failure on Windows.

Differential Revision: http://reviews.llvm.org/D20997

llvm-svn: 271995
2016-06-07 10:07:51 +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
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
includehell.cpp
ir.c
label.cpp
lambda.cpp
logical.cpp
loopmacro.c
loops.cpp
macro-expansion.c
macro-expressions.cpp
macroception.c
macroparams.c
macroparams2.c
macros.c
macroscopes.cpp
md.cpp
moremacros.c
nestedclass.cpp
objc.m
preprocessor.c
return.c
switch.c
switchmacro.c
system_macro.c
templates.cpp
test.c
trycatch.cpp
trymacro.cpp
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
while.c