aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineOperand.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2020-01-22 19:41:45 +0100
committerSam McCall <sam.mccall@gmail.com>2020-01-24 12:21:08 +0100
commit7d20e80225b3e4f3f5a8c57929061bef55f3d855 (patch)
tree16abb30e8b8e2f4109383fdb687270a6ffdda90e /llvm/lib/CodeGen/MachineOperand.cpp
parente37cdbeeabfb17821b9ff5d2f42e9f440882dab8 (diff)
downloadllvm-7d20e80225b3e4f3f5a8c57929061bef55f3d855.zip
llvm-7d20e80225b3e4f3f5a8c57929061bef55f3d855.tar.gz
llvm-7d20e80225b3e4f3f5a8c57929061bef55f3d855.tar.bz2
[clangd] Show background index status using LSP 3.15 work-done progress notifications
Summary: It simply shows the completed/total items on the background queue, e.g. indexing: 233/1000 The denominator is reset to zero every time the queue goes idle. The protocol is fairly complicated here (requires creating a remote "progress" resource before sending updates). We implement the full protocol, but I've added an extension allowing it to be skipped to reduce the burden on clients - in particular the lit test takes this shortcut. The addition of background index progress to DiagnosticConsumer seems ridiculous at first glance, but I believe that interface is trending in the direction of "ClangdServer callbacks" anyway. It's due for a rename, but otherwise actually fits. Reviewers: kadircet, usaxena95 Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, jfb, cfe-commits, llvm-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D73218
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions