This patch removes some deprecated uses of {File,Directory}Entry::getName(). No functional change indended.
Depends on D151853.
Paths
| Differential D151854
[clang] Use `FileEntryRef` in modular header search (part 1/2) ClosedPublic Authored by jansvoboda11 on May 31 2023, 4:29 PM.
Details Summary This patch removes some deprecated uses of {File,Directory}Entry::getName(). No functional change indended. Depends on D151853.
Diff Detail
Event TimelineComment Actions
This revision is now accepted and ready to land.Jun 1 2023, 10:31 AM This revision was landed with ongoing or failed builds.Jun 1 2023, 10:38 AM Closed by commit rGb092f417db21: [clang] Use `FileEntryRef` in modular header search (part 1/2) (authored by jansvoboda11). · Explain Why This revision was automatically updated to reflect the committed changes. jansvoboda11 added a child revision: D151922: [clang] NFC: Use `DirectoryEntryRef` in `FileManager::getCanonicalName()`.Jun 1 2023, 1:15 PM jansvoboda11 removed a child revision: D151922: [clang] NFC: Use `DirectoryEntryRef` in `FileManager::getCanonicalName()`. jansvoboda11 added a child revision: D151938: [clang][index] NFCI: Make `CXFile` a `FileEntryRef`.Jun 1 2023, 2:09 PM
Revision Contents
Diff 527231 clang/include/clang/Lex/HeaderSearch.h
clang/include/clang/Lex/ModuleMap.h
clang/lib/Lex/HeaderSearch.cpp
clang/lib/Lex/ModuleMap.cpp
clang/tools/libclang/CIndex.cpp
|
This should probably be non-Optional. I can't find any calls to this API that can pass null, they all pass something that is already being dereferenced.