llvm-project/clang/test/CoverageMapping
Justin Bogner f14b207882 InstrProf: Handle whitespace and comments at the ends of macros
When we try to find the end loc for a token, we have to re-lex the
token. This was running into a problem when we'd store the end loc of
a macro's coverage region, since we wouldn't actually be at the
beginning of a token when we tried to re-lex it, leading us to do
silly things (and eventually assert) when whitespace or comments
followed.

This pushes our use of getPreciseTokenLocEnd earlier, so that we won't
call it when it doesn't make sense to. It also removes an unnecessary
adjustment by 1 that was working around this problem in some cases.

llvm-svn: 233169
2015-03-25 04:13:49 +00:00
..
Inputs InstrProf: Rewrite most of coverage mapping generation in a simpler way 2015-02-18 21:24:51 +00:00
break.c InstrProf: Always emit a coverage region for the condition of an if 2015-02-19 03:10:30 +00:00
builtinmacro.c InstrProf: Remove CoverageMapping::HasCodeBefore, it isn't used 2015-02-03 21:35:49 +00:00
casts.c InstrProf: Remove CoverageMapping::HasCodeBefore, it isn't used 2015-02-03 21:35:49 +00:00
classtemplate.cpp InstrProf: Remove CoverageMapping::HasCodeBefore, it isn't used 2015-02-03 21:35:49 +00:00
comment-in-macro.c InstrProf: Handle whitespace and comments at the ends of macros 2015-03-25 04:13:49 +00:00
continue.c InstrProf: Always emit a coverage region for the condition of an if 2015-02-19 03:10:30 +00:00
header.cpp InstrProf: Rewrite most of coverage mapping generation in a simpler way 2015-02-18 21:24:51 +00:00
if.c InstrProf: Always emit a coverage region for the condition of an if 2015-02-19 03:10:30 +00:00
includehell.cpp InstrProf: Always emit a coverage region for the condition of an if 2015-02-19 03:10:30 +00:00
ir.c Test case updates for explicit type parameter to the gep operator 2015-03-13 18:21:46 +00:00
label.cpp InstrProf: Always emit a coverage region for the condition of an if 2015-02-19 03:10:30 +00:00
lambda.cpp InstrProf: Make sure counts in lambdas don't escape to the parent scope 2015-02-24 04:13:56 +00:00
logical.cpp InstrProf: Remove CoverageMapping::HasCodeBefore, it isn't used 2015-02-03 21:35:49 +00:00
loopmacro.c InstrProf: Rewrite most of coverage mapping generation in a simpler way 2015-02-18 21:24:51 +00:00
loops.cpp InstrProf: Rewrite most of coverage mapping generation in a simpler way 2015-02-18 21:24:51 +00:00
macro-expansion.c InstrProf: Always emit a coverage region for the condition of an if 2015-02-19 03:10:30 +00:00
macro-expressions.cpp InstrProf: Always emit a coverage region for the condition of an if 2015-02-19 03:10:30 +00:00
macroception.c InstrProf: Rewrite most of coverage mapping generation in a simpler way 2015-02-18 21:24:51 +00:00
macroparams.c InstrProf: Rewrite most of coverage mapping generation in a simpler way 2015-02-18 21:24:51 +00:00
macroparams2.c InstrProf: Rewrite most of coverage mapping generation in a simpler way 2015-02-18 21:24:51 +00:00
macros.c InstrProf: Rewrite most of coverage mapping generation in a simpler way 2015-02-18 21:24:51 +00:00
macroscopes.cpp InstrProf: Always emit a coverage region for the condition of an if 2015-02-19 03:10:30 +00:00
md.cpp InstrProf: Rewrite most of coverage mapping generation in a simpler way 2015-02-18 21:24:51 +00:00
moremacros.c InstrProf: Always emit a coverage region for the condition of an if 2015-02-19 03:10:30 +00:00
nestedclass.cpp InstrProf: Remove CoverageMapping::HasCodeBefore, it isn't used 2015-02-03 21:35:49 +00:00
objc.m InstrProf: Always emit a coverage region for the condition of an if 2015-02-19 03:10:30 +00:00
preprocessor.c InstrProf: Always emit a coverage region for the condition of an if 2015-02-19 03:10:30 +00:00
return.c InstrProf: Always emit a coverage region for the condition of an if 2015-02-19 03:10:30 +00:00
switch.c InstrProf: Rewrite most of coverage mapping generation in a simpler way 2015-02-18 21:24:51 +00:00
switchmacro.c InstrProf: Always emit a coverage region for the condition of an if 2015-02-19 03:10:30 +00:00
templates.cpp Add tests for coverage mapping generation. 2014-08-19 17:32:30 +00:00
test.c InstrProf: Always emit a coverage region for the condition of an if 2015-02-19 03:10:30 +00:00
trycatch.cpp InstrProf: Always emit a coverage region for the condition of an if 2015-02-19 03:10:30 +00:00
unused_names.c InstrProf: Add a test for PR22531 2015-02-11 02:53:03 +00:00
while.c InstrProf: Rewrite most of coverage mapping generation in a simpler way 2015-02-18 21:24:51 +00:00