[clangd] Store the containing symbol for refs
authorNathan Ridge <zeratul976@hotmail.com>
Mon, 19 Oct 2020 05:22:21 +0000 (01:22 -0400)
committerNathan Ridge <zeratul976@hotmail.com>
Wed, 4 Nov 2020 08:21:45 +0000 (03:21 -0500)
commit3bec07f91fb1aea7a53ebc760f0511be1b5409f4
tree44d57a37ce133b929eed585ab1e30434b013e6fa
parenta4a4c503708f8bbf539147187faf180a80b4eea9
[clangd] Store the containing symbol for refs

This is needed to implement call hierarchy.

Differential Revision: https://reviews.llvm.org/D89670
clang-tools-extra/clangd/index/Ref.h
clang-tools-extra/clangd/index/Serialization.cpp
clang-tools-extra/clangd/index/SymbolCollector.cpp
clang-tools-extra/clangd/index/SymbolCollector.h
clang-tools-extra/clangd/unittests/SymbolCollectorTests.cpp