[all-commits] [llvm/llvm-project] d7ce52: [llvm-cov] Add failing test for gap region line co...

Maksim Levental via All-commits all-commits at lists.llvm.org
Sat Jun 13 18:15:51 PDT 2026


  Branch: refs/heads/users/makslevental/fix-gap-region-line-coverage
  Home:   https://github.com/llvm/llvm-project
  Commit: d7ce52982872550f9ed628185ee0c7071e53b373
      https://github.com/llvm/llvm-project/commit/d7ce52982872550f9ed628185ee0c7071e53b373
  Author: makslevental <maksim.levental at gmail.com>
  Date:   2026-06-13 (Sat, 13 Jun 2026)

  Changed paths:
    A llvm/test/tools/llvm-cov/Inputs/gap-region-quirk/gap-quirk.covmapping
    A llvm/test/tools/llvm-cov/Inputs/gap-region-quirk/gap-quirk.cpp
    A llvm/test/tools/llvm-cov/Inputs/gap-region-quirk/gap-quirk.profdata
    A llvm/test/tools/llvm-cov/gap-region-line-coverage.test

  Log Message:
  -----------
  [llvm-cov] Add failing test for gap region line coverage bug

LineCoverageStats incorrectly reports a line as uncovered when the
wrapping segment has count=0 and the line has no region entries, even
if it has non-entry segments with count > 0.

This test uses coverage data from Apple clang which produces the
specific segment pattern that triggers this: a closing brace "}" after
a never-taken if-block, where the non-gap segment returning to the
parent function's count is ignored.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply at anthropic.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list