[clangd] Use Contents from inputs in codeComplete and signatureHelp
authorSimon Marchi <simon.marchi@ericsson.com>
Wed, 14 Mar 2018 18:31:48 +0000 (18:31 +0000)
committerSimon Marchi <simon.marchi@ericsson.com>
Wed, 14 Mar 2018 18:31:48 +0000 (18:31 +0000)
commit5a48cf86f1ee97eec6a238e36c3a2f40b5d26fea
tree5b24ae5aa81b7f1e12b80af2378d7ac24d8bee15
parent706a8095b3042535c860f4aa95bc6cab1a097b3a
[clangd] Use Contents from inputs in codeComplete and signatureHelp

Summary:
ClangdServer::{codeComplete,signatureHelp} both use the Contents from
the draft manager.  Since we want to move the draft manager from
ClangdServer to ClangdLSPServer, this patch changes those methods to
find the file contents from InputsAndPreamble, which contains the source
passed in previously.

Subscribers: klimek, ilya-biryukov, jkorous-apple, ioeric, cfe-commits

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

llvm-svn: 327550
clang-tools-extra/clangd/ClangdServer.cpp