[clangd] Store index::SymbolKind in HoverInfo
authorKadir Cetinkaya <kadircet@google.com>
Tue, 26 Nov 2019 17:06:17 +0000 (18:06 +0100)
committerKadir Cetinkaya <kadircet@google.com>
Fri, 6 Dec 2019 12:40:22 +0000 (13:40 +0100)
commit24439a761c5e21fda8f9410a5e80ff07b4ba03a2
tree8f1c7946b10ab02277bb641e0c498cfd53da8b39
parent18cf93a6eddfd201df87f9152bee38e81dfdc40f
[clangd] Store index::SymbolKind in HoverInfo

Summary:
LSP's SymbolKind has some shortcomings when it comes to C++ types,
index::SymbolKind has more detailed info like Destructor, Parameter, MACRO etc.

We are planning to make use of that information in our new Hover response, and
it would be nice to display the Symbol type in full detail, rather than some
approximation.

Reviewers: sammccall

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

Tags: #clang

Differential Revision: https://reviews.llvm.org/D70723
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/clangd/Hover.h
clang-tools-extra/clangd/unittests/HoverTests.cpp