[clangd] Don't send invalid messages from remote index
authorKirill Bobyrev <kbobyrev@google.com>
Tue, 21 Jul 2020 09:04:53 +0000 (11:04 +0200)
committerKirill Bobyrev <kbobyrev@google.com>
Tue, 21 Jul 2020 09:05:03 +0000 (11:05 +0200)
commiteef162c330b02fdc53ec33e5549635be5c5911fa
tree9dbe24d13ac66aea61b447e36db02a6e4a38952c
parent1890a65ca17504cab4032d3c8cc0c4c568d44717
[clangd] Don't send invalid messages from remote index

Summary:
Remote server should not send messages that are invalid and will cause problems
on the client side. The client should not be affected by server's failures
whenever possible.

Also add more error messages and logs.

Reviewers: sammccall

Reviewed By: sammccall

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

Tags: #clang

Differential Revision: https://reviews.llvm.org/D83826
clang-tools-extra/clangd/index/remote/Client.cpp
clang-tools-extra/clangd/index/remote/marshalling/Marshalling.cpp
clang-tools-extra/clangd/index/remote/marshalling/Marshalling.h
clang-tools-extra/clangd/index/remote/server/Server.cpp
clang-tools-extra/clangd/unittests/remote/MarshallingTests.cpp