This patch changes the type of Preprocessor::MainFileDir from const DirectoryEntry * to Optional<DirectoryEntryRef> in order to remove some calls to the deprecated DirectoryEntry::getName().
Depends on D127658.
Paths
| Differential D127660
[clang][lex] NFCI: Use DirectoryEntryRef in Preprocessor::MainFileDir ClosedPublic Authored by jansvoboda11 on Jun 13 2022, 8:41 AM.
Details Summary This patch changes the type of Preprocessor::MainFileDir from const DirectoryEntry * to Optional<DirectoryEntryRef> in order to remove some calls to the deprecated DirectoryEntry::getName(). Depends on D127658.
Diff Detail
Event Timelinejansvoboda11 retitled this revision from [clang][lex] NFCI: Use DirectoryEntryRef in MainFileDir::MainFileDir to [clang][lex] NFCI: Use DirectoryEntryRef in Preprocessor::MainFileDir.Jun 13 2022, 8:54 AM bnbarham added inline comments.
This revision is now accepted and ready to land.Jun 13 2022, 11:02 AM jansvoboda11 added inline comments.
This revision was landed with ongoing or failed builds.May 30 2023, 1:54 PM Closed by commit rGe19f352beee7: [clang][lex] NFCI: Use DirectoryEntryRef in Preprocessor::MainFileDir (authored by jansvoboda11). · Explain Why This revision was automatically updated to reflect the committed changes. jansvoboda11 marked an inline comment as done.
Revision Contents
Diff 436422 clang/include/clang/Lex/Preprocessor.h
clang/lib/Frontend/FrontendAction.cpp
clang/lib/Lex/PPDirectives.cpp
|
Same as in previous review, is this guaranteed to be set? Might be worth a comment on the field itself if so (in https://reviews.llvm.org/D127654)