This is an archive of the discontinued LLVM Phabricator instance.

[llvm-cov] Allow multiple remaps in --path-equivalence
ClosedPublic

Authored by tcamin on Jun 30 2023, 7:44 AM.

Details

Summary

Previously the --path-equivalence parameter would allow to specify a single remap pair (coverage data path - local source file path). This patch changes this allowing to pass as many remaps as needed.

Diff Detail

Event Timeline

tcamin created this revision.Jun 30 2023, 7:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 30 2023, 7:44 AM
tcamin requested review of this revision.Jun 30 2023, 7:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 30 2023, 7:44 AM
tcamin edited the summary of this revision. (Show Details)Jun 30 2023, 8:47 AM
tcamin added reviewers: keith, vsk, alanphipps.
tcamin updated this revision to Diff 536285.Jun 30 2023, 9:18 AM

Add separate Windows tests

tcamin updated this revision to Diff 536403.Jun 30 2023, 1:47 PM

Use same test for Linux and Windows

tcamin updated this revision to Diff 536581.Jul 2 2023, 4:39 AM

Fix Windows paths

tcamin updated this revision to Diff 540988.Jul 17 2023, 6:19 AM

Add empty path error message

keith added inline comments.Jul 31 2023, 1:33 PM
llvm/docs/CommandGuide/llvm-cov.rst
339

instead of passing multiple comma separated values here would it make more sense to pass -path-equivalence multiple times? it seems like that's the more common way to repeat flags (we might have talked about this in the past)

tcamin updated this revision to Diff 547114.Aug 4 2023, 12:07 AM

Use multiple arguments instead of comma separated values

tcamin marked an inline comment as done.Aug 17 2023, 12:58 AM
keith accepted this revision.Aug 23 2023, 1:43 PM
This revision is now accepted and ready to land.Aug 23 2023, 1:43 PM
This revision was automatically updated to reflect the committed changes.