[all-commits] [llvm/llvm-project] fa5788: [clang][index] NFCI: Make `CXFile` a `FileEntryRef`

Jan Svoboda via All-commits all-commits at lists.llvm.org
Thu Jun 15 03:35:12 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fa5788ff8dc10f36e0947757e335cd180a1a63c9
      https://github.com/llvm/llvm-project/commit/fa5788ff8dc10f36e0947757e335cd180a1a63c9
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2023-06-15 (Thu, 15 Jun 2023)

  Changed paths:
    M clang/include/clang/Basic/Module.h
    M clang/include/clang/Frontend/ASTUnit.h
    M clang/lib/Basic/Module.cpp
    M clang/lib/Frontend/ASTUnit.cpp
    M clang/lib/Frontend/FrontendAction.cpp
    M clang/lib/Serialization/ASTWriter.cpp
    M clang/tools/libclang/CIndex.cpp
    M clang/tools/libclang/CIndexHigh.cpp
    M clang/tools/libclang/CIndexInclusionStack.cpp
    M clang/tools/libclang/CLog.h
    A clang/tools/libclang/CXFile.h
    M clang/tools/libclang/CXIndexDataConsumer.cpp
    M clang/tools/libclang/CXIndexDataConsumer.h
    M clang/tools/libclang/CXLoadedDiagnostic.cpp
    M clang/tools/libclang/CXSourceLocation.cpp
    M clang/tools/libclang/Indexing.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list