[clangd] Implement typeHierarchy/resolve for subtypes
authorNathan Ridge <zeratul976@hotmail.com>
Fri, 12 Jul 2019 03:26:32 +0000 (03:26 +0000)
committerNathan Ridge <zeratul976@hotmail.com>
Fri, 12 Jul 2019 03:26:32 +0000 (03:26 +0000)
commit5b9484e559d44bd923fc290e335891b1dd2e17c4
tree9b900d93f5f14eb8563771b2027a580409920c5c
parentc46d78d1b7a06aad11f8810279271224fc8466af
[clangd] Implement typeHierarchy/resolve for subtypes

Summary:
This allows the client to resolve subtypes one level at a time.

For supertypes, this is not necessary, because we eagerly compute
supertypes and return all levels.

Reviewers: sammccall

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

Tags: #clang

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

llvm-svn: 365867
clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-tools-extra/clangd/ClangdLSPServer.h
clang-tools-extra/clangd/ClangdServer.cpp
clang-tools-extra/clangd/ClangdServer.h
clang-tools-extra/clangd/Protocol.cpp
clang-tools-extra/clangd/Protocol.h
clang-tools-extra/clangd/XRefs.cpp
clang-tools-extra/clangd/XRefs.h
clang-tools-extra/clangd/test/type-hierarchy.test
clang-tools-extra/clangd/unittests/TypeHierarchyTests.cpp