[clangd] Add support for type hierarchy (super types only for now)
authorKadir Cetinkaya <kadircet@google.com>
Tue, 19 Mar 2019 09:27:04 +0000 (09:27 +0000)
committerKadir Cetinkaya <kadircet@google.com>
Tue, 19 Mar 2019 09:27:04 +0000 (09:27 +0000)
commit8665802202689b4014bde7f5aa64f0a3c1a045f7
tree4d71078bd62a9c906c00b6b182c410fd2d4de8f7
parentad78768d5933bfa50009e8b6f84150291a8aba8f
[clangd] Add support for type hierarchy (super types only for now)

Summary:
Patch by Nathan Ridge(@nridge)!

This is an LSP extension proposed here:
https://github.com/Microsoft/vscode-languageserver-node/pull/426

An example client implementation can be found here:
https://github.com/theia-ide/theia/pull/3802

Reviewers: kadircet, sammccall

Reviewed By: kadircet

Subscribers: jdoerfert, sammccall, cfe-commits, mgorny, dschaefer, simark, ilya-biryukov, ioeric, MaskRay, jkorous, arphaman, kadircet

Tags: #clang

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

llvm-svn: 356445
17 files changed:
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/FindSymbols.cpp
clang-tools-extra/clangd/FindSymbols.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/index/SymbolCollector.cpp
clang-tools-extra/clangd/index/SymbolCollector.h
clang-tools-extra/test/clangd/initialize-params.test
clang-tools-extra/test/clangd/type-hierarchy.test [new file with mode: 0644]
clang-tools-extra/unittests/clangd/CMakeLists.txt
clang-tools-extra/unittests/clangd/Matchers.h
clang-tools-extra/unittests/clangd/TypeHierarchyTests.cpp [new file with mode: 0644]