This is an archive of the discontinued LLVM Phabricator instance.

[clang] Update code that assumes FileEntry::getName is absolute NFC
ClosedPublic

Authored by benlangmuir on Aug 1 2022, 1:32 PM.

Details

Summary

It's an accident that we started return asbolute paths from FileEntry::getName for all relative paths. Prepare for getName to get (closer to) return the requested path. Note: conceptually it might make sense for the dependency scanner to allow relative paths and have the DependencyConsumer decide if it wants to make them absolute, but we currently document that it's absolute and I didn't want to change behaviour here.

Diff Detail

Event Timeline

benlangmuir created this revision.Aug 1 2022, 1:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 1 2022, 1:32 PM
benlangmuir requested review of this revision.Aug 1 2022, 1:32 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 1 2022, 1:32 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
bnbarham accepted this revision.Aug 1 2022, 1:52 PM

LGTM, thanks for doing this 🙇

This revision is now accepted and ready to land.Aug 1 2022, 1:52 PM