This is an archive of the discontinued LLVM Phabricator instance.

[clang][modules] NFCI: Use `DirectoryEntryRef` for umbrella directory
ClosedPublic

Authored by jansvoboda11 on May 26 2023, 1:14 PM.

Details

Summary

This removes some deprecated uses of DirectoryEntry::getName().

Depends on D151581.

Diff Detail

Event Timeline

jansvoboda11 created this revision.May 26 2023, 1:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 26 2023, 1:14 PM
Herald added a subscriber: ributzka. · View Herald Transcript
jansvoboda11 requested review of this revision.May 26 2023, 1:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 26 2023, 1:14 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
benlangmuir accepted this revision.May 26 2023, 2:15 PM
benlangmuir added inline comments.
clang/include/clang/Basic/Module.h
160

Would it make sense to implement PointerLikeTypeTraits for FileEntryRef/DirectoryEntryRef so you don't need to use the MapEntry explicitly?

This revision is now accepted and ready to land.May 26 2023, 2:15 PM
jansvoboda11 added inline comments.May 26 2023, 3:15 PM
clang/include/clang/Basic/Module.h
160

It would. I'll do that in a follow-up.

This revision was landed with ongoing or failed builds.May 26 2023, 3:30 PM
This revision was automatically updated to reflect the committed changes.