[clangd] Handle templates more consistently in type hierarchy
authorNathan Ridge <zeratul976@hotmail.com>
Mon, 31 Aug 2020 07:00:58 +0000 (03:00 -0400)
committerNathan Ridge <zeratul976@hotmail.com>
Tue, 1 Sep 2020 23:18:37 +0000 (19:18 -0400)
commitca842c825a1caf10aacb1dc63664d565b1f2f4eb
tree6b0096b3eb7cc03da76fa92da66c4cd83a9125ed
parent7cd6b0c3b5db61be94ed7f494d5036b2c30aaf3f
[clangd] Handle templates more consistently in type hierarchy

If the tree includes types derived from all specializations of
a template, do not misleadingly label the root node with the
name of a single specialization.

Fixes https://github.com/clangd/clangd/issues/507

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