[all-commits] [llvm/llvm-project] 653f81: [llvm-cov] Add FileID to MCDC records of the json ...

Roman Beliaev via All-commits all-commits at lists.llvm.org
Tue Jul 8 07:57:19 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 653f81587fd2756b90a856ec8079f95b57d66cc3
      https://github.com/llvm/llvm-project/commit/653f81587fd2756b90a856ec8079f95b57d66cc3
  Author: Roman Beliaev <belyaevrd at yandex.ru>
  Date:   2025-07-08 (Tue, 08 Jul 2025)

  Changed paths:
    M llvm/test/tools/llvm-cov/Inputs/binary-formats.canonical.json
    M llvm/test/tools/llvm-cov/mcdc-export-json.test
    M llvm/tools/llvm-cov/CoverageExporterJson.cpp

  Log Message:
  -----------
  [llvm-cov] Add FileID to MCDC records of the json code coverage export (#145236)

At the moment MCDC Record contains ExpandedFileID. If FileID !=
ExpandedFileID, the record's lines LineStart and LineEnd relate to the
`FileID` file, but the record doesn't contain this id. So we can't
distinguish multiple MCDC records with the same lines and columns, but
different FileIDs.

This adds FileID to MCDC records as it is done for regions and branches.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list