[all-commits] [llvm/llvm-project] 24563b: [llvm-cov] Normalize paths by removing dots

Oleksii Odynochenko via All-commits all-commits at lists.llvm.org
Thu Jun 15 15:36:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 24563b8d26aaae70e2cdc52ed6dd36b0a9588adf
      https://github.com/llvm/llvm-project/commit/24563b8d26aaae70e2cdc52ed6dd36b0a9588adf
  Author: Oleksii Odynochenko <oleksii.odynochenko at gmail.com>
  Date:   2023-06-15 (Thu, 15 Jun 2023)

  Changed paths:
    M llvm/include/llvm/ProfileData/GCOV.h
    M llvm/lib/ProfileData/GCOV.cpp
    M llvm/test/tools/llvm-cov/gcov/Inputs/test_no_gcda.h.gcov
    M llvm/test/tools/llvm-cov/gcov/Inputs/test_no_options.h.gcov
    M llvm/test/tools/llvm-cov/gcov/basic.test
    M llvm/test/tools/llvm-cov/gcov/gcov-fake-4.2.c
    M llvm/test/tools/llvm-cov/gcov/intermediate-format.test

  Log Message:
  -----------
  [llvm-cov] Normalize paths by removing dots

We were producing inconsistent results when a file appeared multiple
times in gcno/gcda files if the instances had differing relative paths.

This patch unifies filenames, so coverage results are merged.

Patch by Oleksii Odynochenko. Thanks!

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




More information about the All-commits mailing list