This is an archive of the discontinued LLVM Phabricator instance.

[clang][lex] NFCI: Use DirectoryEntryRef in ModuleMap::inferFrameworkModule()
ClosedPublic

Authored by jansvoboda11 on Jun 13 2022, 8:19 AM.

Details

Summary

This patch changes the argument type of ModuleMap::inferFrameworkModule() from const DirectoryEntry * to DirectoryEntryRef in order to remove the deprecated uses of DirectoryEntry::getName().

Depends on D127647.

Diff Detail

Event Timeline

jansvoboda11 created this revision.Jun 13 2022, 8:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 13 2022, 8:19 AM
jansvoboda11 requested review of this revision.Jun 13 2022, 8:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 13 2022, 8:19 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
bnbarham accepted this revision.Jun 13 2022, 9:42 AM
bnbarham added inline comments.
clang/lib/Lex/ModuleMap.cpp
1060

Nit: getName() is already a StringRef (it was previously too, but I assume that wasn't the case at ... some point).

1106

Same thing here

This revision is now accepted and ready to land.Jun 13 2022, 9:42 AM
This revision was landed with ongoing or failed builds.May 30 2023, 1:54 PM
This revision was automatically updated to reflect the committed changes.