llvm-project/clang/test/CoverageMapping/Inputs
Vedant Kumar 95a2a7f2a1 [Lexer] Don't merge macro args from different macro files
The lexer sets the end location of macro arguments incorrectly *if*,
while merging consecutive args to fit into a single SLocEntry, it finds
args which come from different macro files.

Fix the issue by using separate SLocEntries in this situation.

This fixes a code coverage crasher (rdar://problem/26181005). Because
the lexer reported end locations for certain macro args incorrectly, we
would generate bogus coverage mappings with negative line offsets.

Reviewed-by: akyrtzi

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

llvm-svn: 270160
2016-05-19 23:44:02 +00:00
..
code.h InstrProf: Rewrite most of coverage mapping generation in a simpler way 2015-02-18 21:24:51 +00:00
ends_a_scope InstrProf: Rewrite most of coverage mapping generation in a simpler way 2015-02-18 21:24:51 +00:00
header1.h
macros.h [Lexer] Don't merge macro args from different macro files 2016-05-19 23:44:02 +00:00
md.def InstrProf: Rewrite most of coverage mapping generation in a simpler way 2015-02-18 21:24:51 +00:00
starts_a_scope InstrProf: Rewrite most of coverage mapping generation in a simpler way 2015-02-18 21:24:51 +00:00