This is an archive of the discontinued LLVM Phabricator instance.

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

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

Details

Summary

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

Depends on D127648.

Diff Detail

Event Timeline

jansvoboda11 created this revision.Jun 13 2022, 8:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 13 2022, 8:23 AM
jansvoboda11 requested review of this revision.Jun 13 2022, 8:23 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 13 2022, 8:23 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
bnbarham accepted this revision.Jun 13 2022, 10:01 AM
bnbarham added inline comments.
clang-tools-extra/modularize/ModularizeUtilities.cpp
274–275

It seems like this is optional purely because of the assignment below and that has an assert that seems to be invalid anyway - couldn't we just check the optional down there and return an error, assign otherwise, and remove the assert?

This revision is now accepted and ready to land.Jun 13 2022, 10:01 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.