[all-commits] [llvm/llvm-project] 865e4a: [coverage] skipping code coverage for 'if constexp...

Hana Dusíková via All-commits all-commits at lists.llvm.org
Mon Jan 22 03:50:32 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 865e4a1f33bd3be42ff256c6839aff0860610a5a
      https://github.com/llvm/llvm-project/commit/865e4a1f33bd3be42ff256c6839aff0860610a5a
  Author: Hana Dusíková <hanicka at hanicka.net>
  Date:   2024-01-22 (Mon, 22 Jan 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/CodeGen/CoverageMappingGen.cpp
    M clang/test/CoverageMapping/branch-constfolded.cpp
    M clang/test/CoverageMapping/if.cpp
    M llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
    M llvm/tools/llvm-cov/SourceCoverageView.cpp
    M llvm/unittests/ProfileData/CoverageMappingTest.cpp

  Log Message:
  -----------
  [coverage] skipping code coverage for 'if constexpr' and 'if consteval' (#78033)

`if constexpr` and `if consteval` conditional statements code coverage
should behave more like a preprocesor `#if`-s than normal
ConditionalStmt. This PR should fix that.

---------

Co-authored-by: cor3ntin <corentinjabot at gmail.com>




More information about the All-commits mailing list