This is an archive of the discontinued LLVM Phabricator instance.

[CoverageMapping] Remove dots from paths inside the profile
ClosedPublic

Authored by phosek on Apr 5 2022, 4:45 PM.

Details

Summary

We already remove dots from collected paths and path mappings. This
makes it difficult to match paths inside the profile which contain
dots. For example, we would never match /path/to/../file.c because
the collected path is always be normalized to /path/file.c. This
change enables dot removal for paths inside the profile to address
the issue.

Diff Detail

Event Timeline

phosek created this revision.Apr 5 2022, 4:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 5 2022, 4:45 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
phosek requested review of this revision.Apr 5 2022, 4:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 5 2022, 4:45 PM

Is it possible to generate the covmapping file instead of checking a binary blob?

phosek updated this revision to Diff 439660.Jun 24 2022, 1:03 AM

Is it possible to generate the covmapping file instead of checking a binary blob?

Done

phosek updated this revision to Diff 439662.Jun 24 2022, 1:10 AM
davidxl accepted this revision.Jun 24 2022, 9:36 AM

lgtm

This revision is now accepted and ready to land.Jun 24 2022, 9:36 AM
phosek updated this revision to Diff 440391.Jun 27 2022, 2:11 PM
phosek updated this revision to Diff 440475.Jun 27 2022, 11:08 PM
phosek updated this revision to Diff 440491.Jun 27 2022, 11:40 PM
This revision was landed with ongoing or failed builds.Jun 28 2022, 8:53 PM
This revision was automatically updated to reflect the committed changes.