[clangd] Report diagnostics even if WantDiags::No AST was reused
authorIlya Biryukov <ibiryukov@google.com>
Tue, 31 Jul 2018 11:47:52 +0000 (11:47 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Tue, 31 Jul 2018 11:47:52 +0000 (11:47 +0000)
commit442c2832181e01d4bbc7066cc545a8aecb734aa5
tree002c68a4400f19d9378900868d872bf05a60297a
parent85673b083a2c8e0a8d3ec04cf975ad34f0556704
[clangd] Report diagnostics even if WantDiags::No AST was reused

Summary:
After r338256, clangd stopped reporting diagnostics if WantDiags::No request
is followed by a WantDiags::Yes request but the AST can be reused.

Reviewers: ioeric

Reviewed By: ioeric

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

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

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