[PATCH] D85176: [Coverage] Emit gap region after conditions when macro is present.

Zequan Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 18 11:12:37 PST 2021


zequanwu added inline comments.


================
Comment at: clang/test/CoverageMapping/if.cpp:10
+void foo() {                    // CHECK-NEXT: Gap,File 0, [[@LINE+1]]:21 -> [[@LINE+1]]:22 = #2
   if (int j = true ? nop()      // CHECK-NEXT: [[@LINE]]:22 -> [[@LINE]]:27 = #2
                    : nop();     // CHECK-NEXT: [[@LINE]]:22 -> [[@LINE]]:27 = (#0 - #2)
----------------
vsk wrote:
> Just to double-check: this is now starting the gap after the '?', instead of including the '?' - if so, that looks right.
Yes.


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