[clangd] Added async API to run code completion.
authorIlya Biryukov <ibiryukov@google.com>
Thu, 5 Oct 2017 17:04:13 +0000 (17:04 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Thu, 5 Oct 2017 17:04:13 +0000 (17:04 +0000)
commitdcd2169380149e33dd7e9ac0af0ff19575592dcc
tree7bde8586b6b15091b3e0c4e3ed39516971e1f946
parent7b15254c8fe0f5992fff9037468bca3cc61a4445
[clangd] Added async API to run code completion.

Summary:
ClangdServer now provides async code completion API.
It is still used synchronously by ClangdLSPServer, more work is needed
to allow processing other requests in parallel while completion (or
any other request) is running.

Reviewers: klimek, bkramer, krasimir

Reviewed By: klimek

Subscribers: cfe-commits

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

llvm-svn: 314989
clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-tools-extra/clangd/ClangdServer.cpp
clang-tools-extra/clangd/ClangdServer.h
clang-tools-extra/unittests/clangd/ClangdTests.cpp