[clangd][NFC] Simplify handing on methods with no params
authorNathan James <n.james93@hotmail.co.uk>
Mon, 25 Jan 2021 19:08:10 +0000 (19:08 +0000)
committerNathan James <n.james93@hotmail.co.uk>
Mon, 25 Jan 2021 19:08:10 +0000 (19:08 +0000)
commitf05b492aae4d4a741ec59f19518df91a3012824c
tree4334ab1b691da67dd14b0bf2ff6fa43533240479
parent239cfbccb0509da1a08d9e746706013b732e646b
[clangd][NFC] Simplify handing on methods with no params

Add bind methods handling the case when a method has an empty params interface and when it has no parameters.

Remove ShutdownParams and ExitParams from Protocol, In LSP they aren't defined, instead the methods are defined to have void as the params. This signature now better reflects that.

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D95270
clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-tools-extra/clangd/ClangdLSPServer.h
clang-tools-extra/clangd/Protocol.h