[clang][lex] NFCI: Use DirectoryEntryRef in HeaderSearch::LookupFile
authorJan Svoboda <jan_svoboda@apple.com>
Wed, 31 May 2023 04:24:51 +0000 (21:24 -0700)
committerJan Svoboda <jan_svoboda@apple.com>
Wed, 31 May 2023 04:42:01 +0000 (21:42 -0700)
commit3473f728b36e21d322f141e576377c20a02c9aad
tree3278ce83dac82e61a6adaca4e7c08e6accdb5de8
parent9bd3ff8bf9e05e7bf95a4a068aa3b50813a93975
[clang][lex] NFCI: Use DirectoryEntryRef in HeaderSearch::LookupFile

This patch changes the argument type to `HeaderSearch::LookupFile()` from `const DirectoryEntry *` to `DirectoryEntryRef` in order to remove some calls to the deprecated `DirectoryEntry::getName()`.

Depends on D127660.

Reviewed By: bnbarham, benlangmuir

Differential Revision: https://reviews.llvm.org/D127663
clang/include/clang/Lex/HeaderSearch.h
clang/lib/Frontend/FrontendAction.cpp
clang/lib/Lex/HeaderSearch.cpp
clang/lib/Lex/PPDirectives.cpp
clang/test/Modules/Inputs/filename/a.h [deleted file]
clang/test/Modules/Inputs/filename/module.map [deleted file]
clang/test/Modules/filename.cpp