[PATCH] D85176: [Coverage] Enable emitting gap area between macros
Vedant Kumar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 4 16:51:21 PDT 2020
vsk added inline comments.
================
Comment at: clang/test/CoverageMapping/macro-expressions.cpp:63
// CHECK-NEXT: File 0, [[@LINE+1]]:16 -> [[@LINE+1]]:18 = #2
if (EXPR(i)) {}
// CHECK-NEXT: Expansion,File 0, [[@LINE+2]]:9 -> [[@LINE+2]]:14 = (#0 + #3)
----------------
The gap region appears to start from the 'E' in 'EXPR'. That looks like it's too early -- I'd expect it to start after the final closing parenthesis ")".
================
Comment at: clang/test/CoverageMapping/macro-expressions.cpp:75
+ // CHECK-NEXT: Expansion,File 0, [[@LINE+4]]:10 -> [[@LINE+4]]:12 = (#0 + #5)
+ // CHECK-NEXT: Gap,File 0, [[@LINE+3]]:10 -> [[@LINE+3]]:20 = #5
// CHECK-NEXT: File 0, [[@LINE+2]]:20 -> [[@LINE+2]]:31 = #5
----------------
Ditto.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85176/new/
https://reviews.llvm.org/D85176
More information about the cfe-commits
mailing list