[clangd] Wait for first preamble before code completion
authorIlya Biryukov <ibiryukov@google.com>
Mon, 9 Jul 2018 10:45:33 +0000 (10:45 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Mon, 9 Jul 2018 10:45:33 +0000 (10:45 +0000)
commit4a9312079aec5e9d3ff5cd680626f59befc3651f
treee2723ed4de1e8d80d9b56742f01e6f928678f541
parentfd75fc50b677b43edfb107aae8be32bd7c862b32
[clangd] Wait for first preamble before code completion

Summary:
To avoid doing extra work of processing headers in the preamble
mutilple times in parallel.

Reviewers: sammccall

Reviewed By: sammccall

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

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

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