Page MenuHomePhabricator

[llvm-cov] Introduce -path-equivalence-regex

Authored by tunz on Feb 15 2021, 2:11 AM.



Introduce a new option -path-equivalence-regex=<from>,<to> for llvm-cov show so that it can group the same file represented as multiple different paths in the coverage profile data. Unlike -path-equivalence, this new option takes <from> as a regular expression, remaps matching paths into the given <to> path, and generates outputs with the remapped paths.

More discussions and explanations are

Diff Detail

Event Timeline

tunz requested review of this revision.Feb 15 2021, 2:11 AM
tunz created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 15 2021, 2:11 AM
tunz updated this revision to Diff 323745.Feb 15 2021, 7:25 AM

Add a test and do not break existing tests.

Hi @tunz - mind adding a patch summary, and some documentation that describes this feature?

tunz added a comment.Feb 15 2021, 10:26 AM

Hi @vsk. Sorry for submitting this patch without any explanation. I was learning and testing this new environment, and was writing an email to llvm-dev.
I've just sent the email to the mailing group.

tunz edited the summary of this revision. (Show Details)Feb 15 2021, 10:36 AM
tunz updated this revision to Diff 323797.Feb 15 2021, 10:52 AM

Add -path-equivalence-regex to the llvm-cov doc.

tunz abandoned this revision.Feb 19 2021, 9:16 AM

Abandon this since addresses our issue.