[all-commits] [llvm/llvm-project] 57bfe2: [clangd] Remove reundant use of getSpellingLoc()

Nathan Ridge via All-commits all-commits at lists.llvm.org
Mon Mar 20 11:52:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 57bfe25574a0bfa9b6701e645d1f1ec966f838d9
      https://github.com/llvm/llvm-project/commit/57bfe25574a0bfa9b6701e645d1f1ec966f838d9
  Author: Nathan Ridge <zeratul976 at hotmail.com>
  Date:   2023-03-20 (Mon, 20 Mar 2023)

  Changed paths:
    M clang-tools-extra/clangd/FindSymbols.cpp
    M clang-tools-extra/clangd/XRefs.cpp

  Log Message:
  -----------
  [clangd] Remove reundant use of getSpellingLoc()

getFileLoc() is guaranteed to return a file loc, and getSpellingLoc()
on a file loc is a no-op.

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




More information about the All-commits mailing list