[Coverage] Adjust skipped regions only if {Prev,Next}TokLoc is in the same file as...
authorZequan Wu <zequanwu@google.com>
Mon, 17 Aug 2020 22:25:08 +0000 (15:25 -0700)
committerZequan Wu <zequanwu@google.com>
Tue, 18 Aug 2020 20:26:19 +0000 (13:26 -0700)
commit84fffa67283139954b7764328966b5f766db1003
tree3cfff23a16e618e02810578fc39ca9f4202b54ad
parent08748d15b8d696db9f894db38d74a212b8ab43e6
[Coverage] Adjust skipped regions only if {Prev,Next}TokLoc is in the same file as regions' {start, end}Loc

Fix a bug if {Prev, Next}TokLoc is in different file from skipped regions' {start, end}Loc

Differential Revision: https://reviews.llvm.org/D86116
clang/lib/CodeGen/CoverageMappingGen.cpp
clang/test/CoverageMapping/Inputs/comment.h [new file with mode: 0644]
clang/test/CoverageMapping/comment.cpp [new file with mode: 0644]