diff options
author | Ilya Biryukov <ibiryukov@google.com> | 2018-11-22 15:39:54 +0000 |
---|---|---|
committer | Ilya Biryukov <ibiryukov@google.com> | 2018-11-22 15:39:54 +0000 |
commit | c76394bc4b74b3104654ade5c0e87afcba13d6cd (patch) | |
tree | 16a9c40c0a1c30d571265298427ba091edd42cbe /clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp | |
parent | c0ac4bb17cb88956a0e12eedfbfc237ec532249b (diff) | |
download | llvm-c76394bc4b74b3104654ade5c0e87afcba13d6cd.zip llvm-c76394bc4b74b3104654ade5c0e87afcba13d6cd.tar.gz llvm-c76394bc4b74b3104654ade5c0e87afcba13d6cd.tar.bz2 |
[clangd] Cleanup: make diagnostics callbacks from TUScheduler non-racy
Summary:
Previously, removeDoc followed by an addDoc to TUScheduler resulted in
racy diagnostic responses, i.e. the old dianostics could be delivered
to the client after the new ones by TUScheduler.
To workaround this, we tracked a version number in ClangdServer and
discarded stale diagnostics. After this commit, the TUScheduler will
stop delivering diagnostics for removed files and the workaround in
ClangdServer is not required anymore.
Reviewers: sammccall
Reviewed By: sammccall
Subscribers: javed.absar, ioeric, MaskRay, jkorous, arphaman, jfb, kadircet, cfe-commits
Differential Revision: https://reviews.llvm.org/D54829
llvm-svn: 347468
Diffstat (limited to 'clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp')
0 files changed, 0 insertions, 0 deletions