[all-commits] [llvm/llvm-project] 285671: [CMake] Add targets for generating coverage reports

Chris B via All-commits all-commits at lists.llvm.org
Fri Sep 3 08:46:20 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2856719d74f0af5f89a965a9bd2cfc125dedba2c
      https://github.com/llvm/llvm-project/commit/2856719d74f0af5f89a965a9bd2cfc125dedba2c
  Author: Chris Bieneman <chris.bieneman at me.com>
  Date:   2021-09-03 (Fri, 03 Sep 2021)

  Changed paths:
    M llvm/CMakeLists.txt
    A llvm/cmake/modules/CoverageReport.cmake
    M llvm/docs/CMake.rst

  Log Message:
  -----------
  [CMake] Add targets for generating coverage reports

This is a pretty small bit of CMake goop to generate code coverage
reports. I always forget the right script invocation and end up
fumbling around too much.

Wouldn't it be great to have targets that "Just Work"?

Well, I thought so.

At present this only really works correctly for LLVM, but I'll extend
it in subsequent patches to work for subprojects.

Reviewed By: phosek

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




More information about the All-commits mailing list