[all-commits] [llvm/llvm-project] cee80c: [clangd] Pull installed gRPC and introduce clangd-...

Kirill Bobyrev via All-commits all-commits at lists.llvm.org
Thu Apr 16 04:55:40 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cee80c0489e96c36269388b2aacd4da1c5714a66
      https://github.com/llvm/llvm-project/commit/cee80c0489e96c36269388b2aacd4da1c5714a66
  Author: Kirill Bobyrev <kbobyrev at google.com>
  Date:   2020-04-16 (Thu, 16 Apr 2020)

  Changed paths:
    M clang-tools-extra/clangd/CMakeLists.txt
    A clang-tools-extra/clangd/index/remote/CMakeLists.txt
    A clang-tools-extra/clangd/index/remote/Index.proto
    A clang-tools-extra/clangd/index/remote/README.md
    A clang-tools-extra/clangd/index/remote/client/CMakeLists.txt
    A clang-tools-extra/clangd/index/remote/client/Client.cpp
    A clang-tools-extra/clangd/index/remote/server/CMakeLists.txt
    A clang-tools-extra/clangd/index/remote/server/Server.cpp
    A llvm/cmake/modules/FindGRPC.cmake

  Log Message:
  -----------
  [clangd] Pull installed gRPC and introduce clangd-remote-(server|client)

Summary:
This patch allows using installed gRPC to build two simple tools which
currently provide the functionality of looking up the symbol by name.
remote-index-client is a simplified version of dexp which connects to
remote-index-server passes lookup requests.

I also significantly reduced the scope of this patch to prevent large changelist
and more bugs. The next steps would be:

* Extending Protocol for deep copies of Symbol and inherit RemoteIndex from
  Index to unify the interfaces
* Make remote-index-server more generic and merge the remote index client with
  dexp
* Modify Clangd to allow using remote index instead of the local one for all
  global index requests

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: mgorny, ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D77794




More information about the All-commits mailing list