[all-commits] [llvm/llvm-project] f05b49: [clangd][NFC] Simplify handing on methods with no ...

Nathan James via All-commits all-commits at lists.llvm.org
Mon Jan 25 11:08:33 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f05b492aae4d4a741ec59f19518df91a3012824c
      https://github.com/llvm/llvm-project/commit/f05b492aae4d4a741ec59f19518df91a3012824c
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2021-01-25 (Mon, 25 Jan 2021)

  Changed paths:
    M clang-tools-extra/clangd/ClangdLSPServer.cpp
    M clang-tools-extra/clangd/ClangdLSPServer.h
    M clang-tools-extra/clangd/Protocol.h

  Log Message:
  -----------
  [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




More information about the All-commits mailing list