[clangd] Type hierarchy: don't resolve parents if the client only asked for children
authorNathan Ridge <zeratul976@hotmail.com>
Wed, 17 Jul 2019 15:26:49 +0000 (15:26 +0000)
committerNathan Ridge <zeratul976@hotmail.com>
Wed, 17 Jul 2019 15:26:49 +0000 (15:26 +0000)
commite61d0257ede2bf597440f516ecd9ff1146bf7b06
treec4b2ce932df383c04f30028497f9bc1b183560c2
parentf81ee439a409973279244f093dd0264592b74a38
[clangd] Type hierarchy: don't resolve parents if the client only asked for children

Summary: Also reorganize the code for computing supertypes to make it more symmetric to subtypes.

Reviewers: kadircet

Reviewed By: kadircet

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

Tags: #clang

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

llvm-svn: 366338
clang-tools-extra/clangd/XRefs.cpp
clang-tools-extra/clangd/unittests/TypeHierarchyTests.cpp