[clangd] Introduce loading of shards within auto-index
authorKadir Cetinkaya <kadircet@google.com>
Thu, 10 Jan 2019 17:03:04 +0000 (17:03 +0000)
committerKadir Cetinkaya <kadircet@google.com>
Thu, 10 Jan 2019 17:03:04 +0000 (17:03 +0000)
commit99b060e447d289fa93e4ee4e5ed4e75a5a4d3061
treed48f9fd61ca8878c33b64a2de5150f7d5fdca109
parent9afb59b63938ec10e5cb52afc3ca3ed0129ffe7c
[clangd] Introduce loading of shards within auto-index

Summary:
Whenever a change happens on a CDB, load shards associated with that
CDB before issuing re-index actions.

Reviewers: ilya-biryukov

Reviewed By: ilya-biryukov

Subscribers: ioeric, MaskRay, jkorous, arphaman, cfe-commits

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

llvm-svn: 350847
clang-tools-extra/clangd/index/Background.cpp
clang-tools-extra/clangd/index/Background.h
clang-tools-extra/test/clangd/background-index.test
clang-tools-extra/unittests/clangd/BackgroundIndexTests.cpp