aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2018-11-22 15:39:54 +0000
committerIlya Biryukov <ibiryukov@google.com>2018-11-22 15:39:54 +0000
commitc76394bc4b74b3104654ade5c0e87afcba13d6cd (patch)
tree16a9c40c0a1c30d571265298427ba091edd42cbe /clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp
parentc0ac4bb17cb88956a0e12eedfbfc237ec532249b (diff)
downloadllvm-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