[all-commits] [llvm/llvm-project] a26cc7: [clang][coverage] Fix "if constexpr" and "if const...

Hana Dusíková via All-commits all-commits at lists.llvm.org
Wed Jan 10 02:01:37 PST 2024


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

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/AST/Stmt.h
    M clang/lib/CodeGen/CoverageMappingGen.cpp
    M clang/lib/Sema/TreeTransform.h
    M clang/test/CoverageMapping/if.cpp

  Log Message:
  -----------
  [clang][coverage] Fix "if constexpr" and "if consteval" coverage report (#77214)

Replace the discarded statement by an empty compound statement so we can keep track of the
whole source range we need to skip in coverage

Fixes #54419




More information about the All-commits mailing list