OSDN Git Service

[clangd] Remove TokenBuffer usage in TypeHierarchy
authorAleksandr Platonov <platonov.aleksandr@huawei.com>
Mon, 20 Jul 2020 11:46:09 +0000 (13:46 +0200)
committerKadir Cetinkaya <kadircet@google.com>
Mon, 20 Jul 2020 19:00:49 +0000 (21:00 +0200)
commitc911803d5df0f8a781b56849180b4b93a61306a7
treecc4122ee198bcb9d21e5ba805533e4f55c856605
parent52ab7aa0ba5a3c7a0b2fe1b48519f1d4dc52cacf
[clangd] Remove TokenBuffer usage in TypeHierarchy

Summary:
This patch mostly reverts D74850.
We could not use `AST.getTokens()` here, because it does not have tokens from the preamble.

Reviewers: sammccall, kadircet

Reviewed By: kadircet

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

Tags: #clang

Differential Revision: https://reviews.llvm.org/D84144
clang-tools-extra/clangd/XRefs.cpp
clang-tools-extra/clangd/unittests/TypeHierarchyTests.cpp