[all-commits] [llvm/llvm-project] 4dc08c: [Coverage] Propogate counter to condition of condi...

ZequanWu via All-commits all-commits at lists.llvm.org
Wed Feb 3 13:33:50 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4dc08cc3aa41a28ca6ec82bb9c7183048761aad5
      https://github.com/llvm/llvm-project/commit/4dc08cc3aa41a28ca6ec82bb9c7183048761aad5
  Author: Zequan Wu <zequanwu at google.com>
  Date:   2021-02-03 (Wed, 03 Feb 2021)

  Changed paths:
    M clang/lib/CodeGen/CoverageMappingGen.cpp
    M clang/test/CoverageMapping/if.cpp
    M clang/test/CoverageMapping/macro-expressions.cpp

  Log Message:
  -----------
  [Coverage] Propogate counter to condition of conditional operator

Clang usually propagates counter mapping region for conditions of `if`, `while`,
`for`, etc from parent counter. We should do the same for condition of conditional operator.

Differential Revision: https://reviews.llvm.org/D95918




More information about the All-commits mailing list