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.
Paths
| Differential D127651
[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 TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 13 2022, 8:23 AM jansvoboda11 added a child revision: D127654: [clang] NFCI: Use DirectoryEntryRef in Module::Directory.Jun 13 2022, 8:29 AM bnbarham added inline comments.
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 Closed by commit rGd574e918dba3: [clang][lex] NFCI: Use DirectoryEntryRef in ModuleMap::parseModuleMapFile() (authored by jansvoboda11). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 436404 clang-tools-extra/modularize/ModularizeUtilities.cpp
clang/include/clang/Lex/ModuleMap.h
clang/lib/Lex/ModuleMap.cpp
|
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?