[clangd] SymbolCollector support for relations
authorNathan Ridge <zeratul976@hotmail.com>
Tue, 4 Jun 2019 04:25:44 +0000 (04:25 +0000)
committerNathan Ridge <zeratul976@hotmail.com>
Tue, 4 Jun 2019 04:25:44 +0000 (04:25 +0000)
commit73e6f47da249dcd869320b539da7625b6864f110
tree2816f54a4e4c8e595786a0a0ffd1272dcee129c8
parentd2d6c17760d59a3dcab722bea80663590a52fe2e
[clangd] SymbolCollector support for relations

Summary:
The only relation currently collected is RelationBaseOf, because this is
all we need for type hierarchy subtypes. Additional relations can be
collected in the future as the need arises.

This patch builds on D59407 and D62459.

Reviewers: kadircet

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

Tags: #clang

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

llvm-svn: 362467
clang-tools-extra/clangd/index/SymbolCollector.cpp
clang-tools-extra/clangd/index/SymbolCollector.h
clang-tools-extra/clangd/unittests/SymbolCollectorTests.cpp