[all-commits] [llvm/llvm-project] 769d28: [clang][lex] NFCI: Use FileEntryRef in ModuleMap::...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Tue May 30 13:54:20 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 769d282d7292d14591a721ee967962736160095e
      https://github.com/llvm/llvm-project/commit/769d282d7292d14591a721ee967962736160095e
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2023-05-30 (Tue, 30 May 2023)

  Changed paths:
    M clang/include/clang/Lex/HeaderSearch.h
    M clang/lib/Frontend/FrontendAction.cpp
    M clang/lib/Lex/HeaderSearch.cpp
    M clang/lib/Lex/ModuleMap.cpp

  Log Message:
  -----------
  [clang][lex] NFCI: Use FileEntryRef in ModuleMap::{load,lookup}ModuleMap()

This patch changes the return/argument types of `ModuleMap::{load,lookup}ModuleMap()` from `const FileEntry *` to `FileEntryRef` in order to remove uses of the deprecated `DirectoryEntry::getName()`.

Reviewed By: bnbarham

Differential Revision: https://reviews.llvm.org/D127647


  Commit: 95279d7670cd54a50cf72d1fbc99701ef1faa72b
      https://github.com/llvm/llvm-project/commit/95279d7670cd54a50cf72d1fbc99701ef1faa72b
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2023-05-30 (Tue, 30 May 2023)

  Changed paths:
    M clang/include/clang/Lex/ModuleMap.h
    M clang/lib/Frontend/FrontendAction.cpp
    M clang/lib/Lex/ModuleMap.cpp

  Log Message:
  -----------
  [clang][lex] NFCI: Use DirectoryEntryRef in ModuleMap::inferFrameworkModule()

This patch changes the argument type of `ModuleMap::inferFrameworkModule()` from `const DirectoryEntry *` to `DirectoryEntryRef` in order to remove the deprecated uses of `DirectoryEntry::getName()`.

Depends on D127647.

Reviewed By: bnbarham

Differential Revision: https://reviews.llvm.org/D127648


  Commit: d574e918dba31e670a87c46e7de281819b3c0ea9
      https://github.com/llvm/llvm-project/commit/d574e918dba31e670a87c46e7de281819b3c0ea9
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2023-05-30 (Tue, 30 May 2023)

  Changed paths:
    M clang-tools-extra/modularize/ModularizeUtilities.cpp
    M clang/include/clang/Lex/ModuleMap.h
    M clang/lib/Lex/ModuleMap.cpp

  Log Message:
  -----------
  [clang][lex] NFCI: Use DirectoryEntryRef in ModuleMap::parseModuleMapFile()

This patch changes the argument type of `ModuleMap::parseModuleMapFile()` from `const DirectoryEntry *` to `DirectoryEntryRef` in order to remove the deprecated uses of `DirectoryEntry::getName()`.

Depends on D127648.

Reviewed By: bnbarham

Differential Revision: https://reviews.llvm.org/D127651


  Commit: 32d6f3cfd90b90321e84477b2bd353afbf9876ea
      https://github.com/llvm/llvm-project/commit/32d6f3cfd90b90321e84477b2bd353afbf9876ea
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2023-05-30 (Tue, 30 May 2023)

  Changed paths:
    M clang/include/clang/Basic/Module.h
    M clang/lib/Lex/ModuleMap.cpp

  Log Message:
  -----------
  [clang] NFCI: Use DirectoryEntryRef in Module::Directory

This patch changes the type of `Module::Directory` from `const DirectoryEntry *` to (essentially) `Optional<DirectoryEntryRef>` in order to remove uses of the deprecated `DirectoryEntry::getName()`.

Depends on D127651.

Reviewed By: bnbarham

Differential Revision: https://reviews.llvm.org/D127654


  Commit: b1e5b28b8c4d8af294906ee27a62b28079d3f337
      https://github.com/llvm/llvm-project/commit/b1e5b28b8c4d8af294906ee27a62b28079d3f337
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2023-05-30 (Tue, 30 May 2023)

  Changed paths:
    M clang/lib/Sema/SemaCodeComplete.cpp

  Log Message:
  -----------
  [clang][lex] NFCI: Use FileEntryRef in Sema::CodeCompleteIncludedFile

This patch replaces some calls to the deprecated `DirectoryEntry::getName()` with calls to `DirectoryEntryRef::getName()` in SemaCodeComplete.cpp.

Depends on D127654.

Reviewed By: bnbarham

Differential Revision: https://reviews.llvm.org/D127658


  Commit: e19f352beee72d8fc30d9a5366eadd2372719fa3
      https://github.com/llvm/llvm-project/commit/e19f352beee72d8fc30d9a5366eadd2372719fa3
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2023-05-30 (Tue, 30 May 2023)

  Changed paths:
    M clang/include/clang/Lex/Preprocessor.h
    M clang/lib/Frontend/FrontendAction.cpp
    M clang/lib/Lex/PPDirectives.cpp

  Log Message:
  -----------
  [clang][lex] NFCI: Use DirectoryEntryRef in Preprocessor::MainFileDir

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.

Reviewed By: bnbarham

Differential Revision: https://reviews.llvm.org/D127660


Compare: https://github.com/llvm/llvm-project/compare/9e8a412cb37d...e19f352beee7


More information about the All-commits mailing list