[clang][Index] Introduce a TemplateParm SymbolKind
authorKadir Cetinkaya <kadircet@google.com>
Thu, 30 Jan 2020 13:07:42 +0000 (14:07 +0100)
committerKadir Cetinkaya <kadircet@google.com>
Fri, 14 Feb 2020 12:20:34 +0000 (13:20 +0100)
commit84240e0db8ab85b56df11e6cee8fef5ac7ee8c33
tree8f2d2f54f048b12f289e315a61d79498812aa981
parentc45fb35b5e0b45357a9bfae500ec5403545dbc77
[clang][Index] Introduce a TemplateParm SymbolKind

Summary:
Currently template parameters has symbolkind `Unknown`. This patch
introduces a new kind `TemplateParm` for templatetemplate, templatetype and
nontypetemplate parameters.

Also adds tests in clangd hover feature.

Reviewers: sammccall

Subscribers: kristof.beyls, ilya-biryukov, jkorous, arphaman, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D73696
clang-tools-extra/clangd/CodeComplete.cpp
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/clangd/Protocol.cpp
clang-tools-extra/clangd/Quality.cpp
clang-tools-extra/clangd/unittests/HoverTests.cpp
clang/include/clang/Index/IndexSymbol.h
clang/lib/Index/IndexSymbol.cpp
clang/tools/libclang/CXIndexDataConsumer.cpp
clang/unittests/Index/IndexTests.cpp