[clangd] Fetch documentation from the Index during signature help
authorIlya Biryukov <ibiryukov@google.com>
Fri, 17 Aug 2018 09:32:30 +0000 (09:32 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Fri, 17 Aug 2018 09:32:30 +0000 (09:32 +0000)
commit8a0f76b855afdf1099e4447dd30543ea7cb9c562
tree48cba6fa353721d1215a469288f8141aedaec064
parent5f4a351306de78453d5c35bbaa4f8f0717db9029
[clangd] Fetch documentation from the Index during signature help

Summary:
Sema can only be used for documentation in the current file, other doc
comments should be fetched from the index.

Reviewers: hokein, ioeric, kadircet

Reviewed By: hokein, kadircet

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

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

llvm-svn: 340005
clang-tools-extra/clangd/ClangdServer.cpp
clang-tools-extra/clangd/CodeComplete.cpp
clang-tools-extra/clangd/CodeComplete.h
clang-tools-extra/unittests/clangd/CodeCompleteTests.cpp