[clangd] Allow using experimental Dex index
authorKirill Bobyrev <kbobyrev.opensource@gmail.com>
Tue, 21 Aug 2018 10:32:27 +0000 (10:32 +0000)
committerKirill Bobyrev <kbobyrev.opensource@gmail.com>
Tue, 21 Aug 2018 10:32:27 +0000 (10:32 +0000)
commit7a94c918a02f7e85def8e8e3524f169b527b3f58
treef1a0816c1569b0abab745da6f850e83cc7709f1c
parent597811e7a754764be371f26635bde43db987d5d9
[clangd] Allow using experimental Dex index

This patch adds hidden Clangd flag ("use-dex-index") which replaces
(currently) default `MemIndex` with `DexIndex` for the static index.

Reviewed by: ioeric

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

llvm-svn: 340262
clang-tools-extra/clangd/index/MemIndex.cpp
clang-tools-extra/clangd/index/MemIndex.h
clang-tools-extra/clangd/index/dex/DexIndex.cpp
clang-tools-extra/clangd/index/dex/DexIndex.h
clang-tools-extra/clangd/tool/ClangdMain.cpp