[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

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@366338 91177308-0d34-0410-b5e6-96231b3b80d8
2 files changed