[PATCH] D144599: [clangd/index/remote]NFC: Adapt code to newer grpc/protobuf versions
Matthias Braun via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 23 11:27:49 PST 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc21378f90a44: [clangd/index/remote]NFC: Adapt code to newer grpc/protobuf versions (authored by MatzeB).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144599/new/
https://reviews.llvm.org/D144599
Files:
clang-tools-extra/clangd/index/remote/monitor/Monitor.cpp
Index: clang-tools-extra/clangd/index/remote/monitor/Monitor.cpp
===================================================================
--- clang-tools-extra/clangd/index/remote/monitor/Monitor.cpp
+++ clang-tools-extra/clangd/index/remote/monitor/Monitor.cpp
@@ -67,8 +67,9 @@
google::protobuf::util::MessageToJsonString(Response, &Output, Options);
if (!JsonStatus.ok()) {
clang::clangd::elog("Can not convert response ({0}) to JSON ({1}): {2}\n",
- Response.DebugString(), JsonStatus.error_code(),
- JsonStatus.error_message().as_string());
+ Response.DebugString(),
+ static_cast<int>(JsonStatus.code()),
+ JsonStatus.message().as_string());
return -1;
}
llvm::outs() << Output;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144599.499926.patch
Type: text/x-patch
Size: 821 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230223/d36b10b1/attachment-0001.bin>
More information about the cfe-commits
mailing list