diff options
author | Sam McCall <sam.mccall@gmail.com> | 2017-10-12 13:29:58 +0000 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2017-10-12 13:29:58 +0000 |
commit | 8a5dded8a506f28d2e1e962c3b6ac897a63eafc0 (patch) | |
tree | 21c0a8d55545df146eb4382bc8ec6c354db15b86 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 4d93120273868a395624433d00522ea31cc11de3 (diff) | |
download | bcm5719-llvm-8a5dded8a506f28d2e1e962c3b6ac897a63eafc0.tar.gz bcm5719-llvm-8a5dded8a506f28d2e1e962c3b6ac897a63eafc0.zip |
[clangd] less boilerplate in RPC dispatch
Summary:
Make the ProtocolHandlers glue between JSONRPCDispatcher and
ClangdLSPServer generic.
Eliminate small differences between methods, de-emphasize the unimportant
distinction between notifications and methods.
ClangdLSPServer is no longer responsible for producing a complete
JSON-RPC response, just the JSON of the result object. (In future, we
should move that JSON serialization out, too).
Handler methods now take a context object that we may hang more
functionality off in the future.
Added documentation to ProtocolHandlers.
Reviewers: ilya-biryukov, bkramer
Reviewed By: ilya-biryukov
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D38464
llvm-svn: 315577
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions