[all-commits] [llvm/llvm-project] e09754: [clangd] Migrate Lexer usages in TypeHierarchy to ...

kadir çetinkaya via All-commits all-commits at lists.llvm.org
Tue Feb 25 06:37:32 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e09754ccefc8cff7ae5fa18ce73db76339b559f5
      https://github.com/llvm/llvm-project/commit/e09754ccefc8cff7ae5fa18ce73db76339b559f5
  Author: Kadir Cetinkaya <kadircet at google.com>
  Date:   2020-02-25 (Tue, 25 Feb 2020)

  Changed paths:
    M clang-tools-extra/clangd/XRefs.cpp
    M clang-tools-extra/clangd/test/type-hierarchy.test

  Log Message:
  -----------
  [clangd] Migrate Lexer usages in TypeHierarchy to TokenBuffers

Summary:
Also fixes a bug, resulting from directly using ND.getEndLoc() for end
location of the range. As ND.getEndLoc() points to the begining of the last
token, whereas it should point one past the end, since LSP ranges are half open
(exclusive on the end).

Reviewers: sammccall

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits

Tags: #clang

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




More information about the All-commits mailing list