[clangd] workspace/symbol should be async, it reads from the index.
authorSam McCall <sam.mccall@gmail.com>
Thu, 25 Oct 2018 14:19:14 +0000 (14:19 +0000)
committerSam McCall <sam.mccall@gmail.com>
Thu, 25 Oct 2018 14:19:14 +0000 (14:19 +0000)
commit6d4eb46d0c1c20352bdca65925bef0024b7d12b2
treeb6c440ca3febc61e1088722f2a6f9ba6fe6f8685
parent3e4ee14d58133a798039bfdd6534a6cd7411b046
[clangd] workspace/symbol should be async, it reads from the index.

Summary:
To enable this, TUScheduler has to provide a way to run async tasks without
needing a preamble or AST!

Reviewers: ilya-biryukov

Subscribers: javed.absar, ioeric, MaskRay, jkorous, arphaman, jfb, kadircet, cfe-commits

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

llvm-svn: 345268
clang-tools-extra/clangd/ClangdServer.cpp
clang-tools-extra/clangd/TUScheduler.cpp
clang-tools-extra/clangd/TUScheduler.h
clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp