[clangd] Introduce ProjectAwareIndex
authorKadir Cetinkaya <kadircet@google.com>
Mon, 2 Nov 2020 10:27:21 +0000 (11:27 +0100)
committerKadir Cetinkaya <kadircet@google.com>
Sun, 22 Nov 2020 19:59:37 +0000 (20:59 +0100)
commit067ffbfe60180aa7b1fdd87b2b6e8ccc67a43a76
tree5488f9c51a80fcd492490aa6a582740da224b343
parentc9776c8d4ef7c1d69b6d74b81627c4028396e7c1
[clangd] Introduce ProjectAwareIndex

An index implementation that can dispatch to a variety of indexes
depending on the file path. Enables clangd to work with multiple indexes in the
same instance, configured via config files.

Depends on D90749, D90746

Differential Revision: https://reviews.llvm.org/D90750
clang-tools-extra/clangd/CMakeLists.txt
clang-tools-extra/clangd/Config.h
clang-tools-extra/clangd/index/ProjectAware.cpp [new file with mode: 0644]
clang-tools-extra/clangd/index/ProjectAware.h [new file with mode: 0644]
clang-tools-extra/clangd/unittests/CMakeLists.txt
clang-tools-extra/clangd/unittests/ProjectAwareIndexTests.cpp [new file with mode: 0644]