[all-commits] [llvm/llvm-project] b1aea9: [clang] Make deprecations of some `FileManager` AP...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Wed Sep 25 10:37:05 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b1aea98cfa357e23f4bb52232da5f41781f23bff
      https://github.com/llvm/llvm-project/commit/b1aea98cfa357e23f4bb52232da5f41781f23bff
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2024-09-25 (Wed, 25 Sep 2024)

  Changed paths:
    M clang-tools-extra/clang-move/tool/ClangMove.cpp
    M clang-tools-extra/clangd/SourceCode.cpp
    M clang-tools-extra/clangd/unittests/ParsedASTTests.cpp
    M clang-tools-extra/include-cleaner/unittests/FindHeadersTest.cpp
    M clang-tools-extra/include-cleaner/unittests/RecordTest.cpp
    M clang-tools-extra/unittests/include/common/VirtualFileHelper.h
    M clang/include/clang/Basic/DiagnosticFrontendKinds.td
    M clang/include/clang/Basic/FileManager.h
    M clang/lib/AST/ASTImporter.cpp
    M clang/lib/CodeGen/CodeGenAction.cpp
    M clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
    M clang/lib/Frontend/ASTUnit.cpp
    M clang/lib/Frontend/CompilerInstance.cpp
    M clang/lib/Frontend/Rewrite/FrontendActions.cpp
    M clang/lib/InstallAPI/Frontend.cpp
    M clang/lib/Lex/HeaderSearch.cpp
    M clang/lib/Lex/ModuleMap.cpp
    M clang/lib/Lex/PPLexerChange.cpp
    M clang/lib/Serialization/ASTReader.cpp
    M clang/lib/Serialization/ModuleManager.cpp
    M clang/lib/Tooling/Core/Replacement.cpp
    M clang/lib/Tooling/DependencyScanning/ModuleDepCollector.cpp
    M clang/tools/clang-installapi/Options.cpp
    M clang/tools/clang-refactor/ClangRefactor.cpp
    M clang/tools/clang-refactor/TestSupport.cpp
    M clang/unittests/Basic/FileManagerTest.cpp
    M clang/unittests/Basic/SourceManagerTest.cpp
    M clang/unittests/Frontend/CompilerInstanceTest.cpp

  Log Message:
  -----------
  [clang] Make deprecations of some `FileManager` APIs formal (#110014)

Some `FileManager` APIs still return `{File,Directory}Entry` instead of
the preferred `{File,Directory}EntryRef`. These are documented to be
deprecated, but don't have the attribute that warns on their usage. This
PR marks them as such with `LLVM_DEPRECATED()` and replaces their usage
with the recommended counterparts. NFCI.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list