[clangd] Use ProjectAwareIndex in ClangdMain
authorKadir Cetinkaya <kadircet@google.com>
Thu, 5 Nov 2020 22:55:04 +0000 (23:55 +0100)
committerKadir Cetinkaya <kadircet@google.com>
Sun, 22 Nov 2020 19:59:38 +0000 (20:59 +0100)
commitcab313680703097f5f4642b348c43018f55a5a4f
tree91dae69b4ee0af56720cf40a1bd618308d1fc813
parent067ffbfe60180aa7b1fdd87b2b6e8ccc67a43a76
[clangd] Use ProjectAwareIndex in ClangdMain

Put project-aware-index between command-line specified static index and
ClangdServer indexes.

This also moves remote-index dependency from clangDaemon to ClangdMain
in an attempt to prevent cyclic dependency between clangDaemon and
remote-index-marshalling.

Differential Revision: https://reviews.llvm.org/D91860
clang-tools-extra/clangd/CMakeLists.txt
clang-tools-extra/clangd/index/ProjectAware.cpp
clang-tools-extra/clangd/index/ProjectAware.h
clang-tools-extra/clangd/tool/ClangdMain.cpp