[all-commits] [llvm/llvm-project] 61ef0a: [clangd] Add decl/def support to SymbolDetails

David Goldman via All-commits all-commits at lists.llvm.org
Mon Aug 1 11:43:01 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 61ef0ab70196bfdc4c301e12384aa91938b15cc4
      https://github.com/llvm/llvm-project/commit/61ef0ab70196bfdc4c301e12384aa91938b15cc4
  Author: David Goldman <davg at google.com>
  Date:   2022-08-01 (Mon, 01 Aug 2022)

  Changed paths:
    M clang-tools-extra/clangd/AST.cpp
    M clang-tools-extra/clangd/Protocol.cpp
    M clang-tools-extra/clangd/Protocol.h
    M clang-tools-extra/clangd/XRefs.cpp
    M clang-tools-extra/clangd/test/symbol-info.test
    M clang-tools-extra/clangd/unittests/SymbolInfoTests.cpp

  Log Message:
  -----------
  [clangd] Add decl/def support to SymbolDetails

Add an optional declarationRange and definitionRange to SymbolDetails.

This will allow SourceKit-LSP to implement toggling between goto
definition/declaration based on whether the symbol at the cursor
is a definition or declaration.

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




More information about the All-commits mailing list