[all-commits] [llvm/llvm-project] ddbcc1: [clang] NFCI: Adopt `SourceManager::getFileEntryRe...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Wed Sep 6 10:50:03 PDT 2023


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

  Changed paths:
    M clang/include/clang/ASTMatchers/ASTMatchers.h
    M clang/include/clang/Basic/SourceLocation.h
    M clang/lib/ARCMigrate/ARCMT.cpp
    M clang/lib/ARCMigrate/ObjCMT.cpp
    M clang/lib/ARCMigrate/PlistReporter.cpp
    M clang/lib/AST/MicrosoftMangle.cpp
    M clang/lib/Analysis/PathDiagnostic.cpp
    M clang/lib/Basic/SourceLocation.cpp
    M clang/lib/Basic/SourceManager.cpp
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/lib/Frontend/ASTUnit.cpp
    M clang/lib/Frontend/FrontendAction.cpp
    M clang/lib/Frontend/HeaderIncludeGen.cpp
    M clang/lib/Frontend/LogDiagnosticPrinter.cpp
    M clang/lib/Frontend/PrecompiledPreamble.cpp
    M clang/lib/Frontend/Rewrite/FixItRewriter.cpp
    M clang/lib/Frontend/Rewrite/HTMLPrint.cpp
    M clang/lib/Frontend/SARIFDiagnostic.cpp
    M clang/lib/Frontend/TextDiagnostic.cpp
    M clang/lib/Frontend/VerifyDiagnosticConsumer.cpp
    M clang/lib/Index/CommentToXML.cpp
    M clang/lib/Index/USRGeneration.cpp
    M clang/lib/Rewrite/Rewriter.cpp
    M clang/lib/Sema/Sema.cpp
    M clang/lib/Sema/SemaModule.cpp
    M clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
    M clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
    M clang/lib/Tooling/Core/Replacement.cpp
    M clang/lib/Tooling/Refactoring/AtomicChange.cpp
    M clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp
    M clang/lib/Tooling/Syntax/Tokens.cpp

  Log Message:
  -----------
  [clang] NFCI: Adopt `SourceManager::getFileEntryRefForID()`

This commit replaces some calls to the deprecated `FileEntry::getName()` with `FileEntryRef::getName()` by swapping current usages of `SourceManager::getFileEntryForID()` with `SourceManager::getFileEntryRefForID()`. This lowers the number of usages of the deprecated `FileEntry::getName()` from 95 to 50.




More information about the All-commits mailing list