[clangd] Drop documentation in static index if symbols are not indexed for completion.
authorHaojian Wu <hokein@google.com>
Mon, 25 Feb 2019 16:00:00 +0000 (16:00 +0000)
committerHaojian Wu <hokein@google.com>
Mon, 25 Feb 2019 16:00:00 +0000 (16:00 +0000)
commitda79dcc317a60b382c7d694525122d0bb0795e73
treeec2ff81a2e31cb4b67f41faef0595fc4a87f7849
parentb504f104b2d9d8eaedd2e687b0f028f63c2c139c
[clangd] Drop documentation in static index if symbols are not indexed for completion.

Summary:
This is a further optimization of r350803, we drop docs in static index for
symbols not being indexed for completion, while keeping the docs in dynamic
index (we rely on dynamic index to get docs for class members).

Reviewers: ilya-biryukov

Reviewed By: ilya-biryukov

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

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

llvm-svn: 354792
clang-tools-extra/clangd/index/FileIndex.cpp
clang-tools-extra/clangd/index/IndexAction.cpp
clang-tools-extra/clangd/index/SymbolCollector.cpp
clang-tools-extra/clangd/index/SymbolCollector.h
clang-tools-extra/unittests/clangd/SymbolCollectorTests.cpp