[clangd] Introduce PostingList interface
authorKirill Bobyrev <kbobyrev.opensource@gmail.com>
Thu, 13 Sep 2018 17:11:03 +0000 (17:11 +0000)
committerKirill Bobyrev <kbobyrev.opensource@gmail.com>
Thu, 13 Sep 2018 17:11:03 +0000 (17:11 +0000)
commit249c5864cf9657a320e427318a879ba809e84b1a
tree3a612c6ebb5068f20541582a528912a71e91d7b3
parentf29b36c76d6452180957472ac62a65507d822301
[clangd] Introduce PostingList interface

This patch abstracts `PostingList` interface and reuses existing
implementation. It will be used later to test different `PostingList`
representations.

No functionality change is introduced, this patch is mostly refactoring
so that the following patches could focus on functionality while not
being too hard to review.

Reviewed By: sammccall, ioeric

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

llvm-svn: 342155
clang-tools-extra/clangd/CMakeLists.txt
clang-tools-extra/clangd/index/dex/Dex.cpp
clang-tools-extra/clangd/index/dex/Dex.h
clang-tools-extra/clangd/index/dex/Iterator.cpp
clang-tools-extra/clangd/index/dex/Iterator.h
clang-tools-extra/clangd/index/dex/PostingList.cpp [new file with mode: 0644]
clang-tools-extra/clangd/index/dex/PostingList.h [new file with mode: 0644]
clang-tools-extra/unittests/clangd/DexTests.cpp