[all-commits] [llvm/llvm-project] d7cb23: [clangd] Add SymbolID to LocatedSymbol.

Utkarsh Saxena via All-commits all-commits at lists.llvm.org
Wed Apr 28 06:06:22 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d7cb2305a1e86809af6f818a225af0fbe9441b2f
      https://github.com/llvm/llvm-project/commit/d7cb2305a1e86809af6f818a225af0fbe9441b2f
  Author: Utkarsh Saxena <usx at google.com>
  Date:   2021-04-28 (Wed, 28 Apr 2021)

  Changed paths:
    M clang-tools-extra/clangd/XRefs.cpp
    M clang-tools-extra/clangd/XRefs.h
    M clang-tools-extra/clangd/unittests/XRefsTests.cpp

  Log Message:
  -----------
  [clangd] Add SymbolID to LocatedSymbol.

This is useful for running in batch mode.
Getting the SymbolID from via getSymbolInfo may give SymbolID
of a symbol different from that located by LocateSymbolAt (they
have different semantics of choosing the symbol.)

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




More information about the All-commits mailing list