[PATCH] D95270: [clangd][NFC] Simplify handing on methods with no params

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 22 15:39:54 PST 2021


njames93 created this revision.
njames93 added reviewers: sammccall, kadircet.
Herald added subscribers: usaxena95, arphaman.
njames93 requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D95270

Files:
  clang-tools-extra/clangd/ClangdLSPServer.cpp
  clang-tools-extra/clangd/ClangdLSPServer.h
  clang-tools-extra/clangd/Protocol.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95270.318668.patch
Type: text/x-patch
Size: 4538 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210122/04da3fb8/attachment.bin>


More information about the cfe-commits mailing list