[clangd] Collect main file refs by default
authorNathan Ridge <zeratul976@hotmail.com>
Tue, 24 Nov 2020 01:59:36 +0000 (20:59 -0500)
committerNathan Ridge <zeratul976@hotmail.com>
Thu, 26 Nov 2020 01:33:57 +0000 (20:33 -0500)
commitc6cb47b640ffafda113581c488a73fb62b6ea38a
tree7d48c4e3b34f35cf8ebdf8aea4a759e918114e29
parentd5f0d0c0c4117295d9e76bbafaf0597e01ef3c99
[clangd] Collect main file refs by default

This is needed for call hierarchy to be able to find callers of
main-file-only functions.

Differential Revision: https://reviews.llvm.org/D92000
clang-tools-extra/clangd/ClangdServer.h
clang-tools-extra/clangd/tool/ClangdMain.cpp
clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp