[all-commits] [llvm/llvm-project] ed365f: [clangd] Use FileEntryRef for canonicalizing filep...

Utkarsh Saxena via All-commits all-commits at lists.llvm.org
Thu Apr 13 07:50:02 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ed365f464a0a29da08d0a1011603c4cd337c9428
      https://github.com/llvm/llvm-project/commit/ed365f464a0a29da08d0a1011603c4cd337c9428
  Author: Utkarsh Saxena <usx at google.com>
  Date:   2023-04-13 (Thu, 13 Apr 2023)

  Changed paths:
    M clang-tools-extra/clangd/Diagnostics.cpp
    M clang-tools-extra/clangd/IncludeCleaner.cpp
    M clang-tools-extra/clangd/SourceCode.cpp
    M clang-tools-extra/clangd/SourceCode.h
    M clang-tools-extra/clangd/XRefs.cpp
    M clang-tools-extra/clangd/index/Background.cpp
    M clang-tools-extra/clangd/index/SymbolCollector.cpp
    M clang-tools-extra/clangd/indexer/IndexerMain.cpp
    M clang-tools-extra/clangd/refactor/Tweak.cpp

  Log Message:
  -----------
  [clangd] Use FileEntryRef for canonicalizing filepaths.

Using FileEntry for retrieving filenames give the name used for the last access. FileEntryRef gives the first access name.

Last access name is suspected to change with unrelated changes in clang or the underlying filesystem. First access name gives more stability to the name and makes it easier to track.

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




More information about the All-commits mailing list