[clangd-remote] Replace YAML serialization with proper Protobuf messages
authorKirill Bobyrev <kbobyrev@google.com>
Tue, 19 May 2020 14:59:04 +0000 (16:59 +0200)
committerKirill Bobyrev <kbobyrev@google.com>
Tue, 19 May 2020 15:07:38 +0000 (17:07 +0200)
commitc6b2b784299b5b8c2081b4e7e76eeab80e9b81ee
tree176260e9d0c92cd011e41357c3619fb79f103d6c
parent346830051105a849d7fc3ceb246e65acbc0264ae
[clangd-remote] Replace YAML serialization with proper Protobuf messages

Summary:
YAML serialization was used in the Proof of Concept for simplicity.
This patch replaces implements Protobuf (de) serialization of almost all
types that need to be transferred over the protocol.

Reviewers: sammccall

Reviewed By: sammccall

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

Tags: #clang

Differential Revision: https://reviews.llvm.org/D79862
clang-tools-extra/clangd/index/remote/Client.cpp
clang-tools-extra/clangd/index/remote/Index.proto
clang-tools-extra/clangd/index/remote/marshalling/Marshalling.cpp
clang-tools-extra/clangd/unittests/CMakeLists.txt
clang-tools-extra/clangd/unittests/TestTU.cpp
clang-tools-extra/clangd/unittests/TestTU.h
clang-tools-extra/clangd/unittests/remote/MarshallingTests.cpp [new file with mode: 0644]