[clang][index] NFCI: Make `CXFile` a `FileEntryRef`
authorJan Svoboda <jan_svoboda@apple.com>
Wed, 31 May 2023 21:53:11 +0000 (14:53 -0700)
committerJan Svoboda <jan_svoboda@apple.com>
Thu, 15 Jun 2023 10:34:54 +0000 (12:34 +0200)
commitfa5788ff8dc10f36e0947757e335cd180a1a63c9
treefbf8546f17263e3655ed5bc9310f1385daa0b5f1
parented27d28f9a53d689c98a3bef26980e2858350548
[clang][index] NFCI: Make `CXFile` a `FileEntryRef`

This patch swaps out the `void *` behind `CXFile` from `FileEntry *` to `FileEntryRef::MapEntry *`. This allows us to remove some deprecated uses of `FileEntry::getName()`.

Depends on D151854.

Reviewed By: benlangmuir

Differential Revision: https://reviews.llvm.org/D151938
16 files changed:
clang/include/clang/Basic/Module.h
clang/include/clang/Frontend/ASTUnit.h
clang/lib/Basic/Module.cpp
clang/lib/Frontend/ASTUnit.cpp
clang/lib/Frontend/FrontendAction.cpp
clang/lib/Serialization/ASTWriter.cpp
clang/tools/libclang/CIndex.cpp
clang/tools/libclang/CIndexHigh.cpp
clang/tools/libclang/CIndexInclusionStack.cpp
clang/tools/libclang/CLog.h
clang/tools/libclang/CXFile.h [new file with mode: 0644]
clang/tools/libclang/CXIndexDataConsumer.cpp
clang/tools/libclang/CXIndexDataConsumer.h
clang/tools/libclang/CXLoadedDiagnostic.cpp
clang/tools/libclang/CXSourceLocation.cpp
clang/tools/libclang/Indexing.cpp