diff options
| author | Haojian Wu <hokein@google.com> | 2019-02-25 16:00:00 +0000 |
|---|---|---|
| committer | Haojian Wu <hokein@google.com> | 2019-02-25 16:00:00 +0000 |
| commit | da79dcc317a60b382c7d694525122d0bb0795e73 (patch) | |
| tree | ec2ff81a2e31cb4b67f41faef0595fc4a87f7849 /clang-tools-extra/clangd/index/IndexAction.cpp | |
| parent | b504f104b2d9d8eaedd2e687b0f028f63c2c139c (diff) | |
| download | bcm5719-llvm-da79dcc317a60b382c7d694525122d0bb0795e73.tar.gz bcm5719-llvm-da79dcc317a60b382c7d694525122d0bb0795e73.zip | |
[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
Diffstat (limited to 'clang-tools-extra/clangd/index/IndexAction.cpp')
| -rw-r--r-- | clang-tools-extra/clangd/index/IndexAction.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/index/IndexAction.cpp b/clang-tools-extra/clangd/index/IndexAction.cpp index a6df64b7be3..b9b7ef2da46 100644 --- a/clang-tools-extra/clangd/index/IndexAction.cpp +++ b/clang-tools-extra/clangd/index/IndexAction.cpp @@ -175,6 +175,7 @@ std::unique_ptr<FrontendAction> createStaticIndexingAction( Opts.CollectIncludePath = true; Opts.CountReferences = true; Opts.Origin = SymbolOrigin::Static; + Opts.StoreAllDocumentation = false; if (RefsCallback != nullptr) { Opts.RefFilter = RefKind::All; Opts.RefsInHeaders = true; |

