[PATCH] D97101: [Coverage] Emit zero count gap region between statements if first statements contains return, throw, goto, co_return

Zequan Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 19 16:54:47 PST 2021


zequanwu created this revision.
zequanwu added reviewers: vsk, efriedma, rnk, pirama.
Herald added a subscriber: lxfind.
zequanwu requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This solves the problems that D85036 <https://reviews.llvm.org/D85036> tried to solve, but that patch introduced
new bugs and those bugs should be fixed in the clang coverage rather than
llvm-cov. I'll revert D85036 <https://reviews.llvm.org/D85036> after this is landed to avoid reintroduce the bugs.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D97101

Files:
  clang/lib/CodeGen/CoverageMappingGen.cpp
  clang/test/CoverageMapping/classtemplate.cpp
  clang/test/CoverageMapping/coroutine.cpp
  clang/test/CoverageMapping/deferred-region.cpp
  clang/test/CoverageMapping/label.cpp
  clang/test/CoverageMapping/moremacros.c
  clang/test/CoverageMapping/return.c
  clang/test/CoverageMapping/switch.cpp
  clang/test/CoverageMapping/switchmacro.c
  clang/test/CoverageMapping/terminate-statements.cpp
  clang/test/CoverageMapping/trycatch.cpp
  clang/test/CoverageMapping/unreachable-macro.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97101.325119.patch
Type: text/x-patch
Size: 32688 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210220/29db174d/attachment-0001.bin>


More information about the cfe-commits mailing list