[clangd] Log a message when gRPC support is off, but remote-index is configured
authorKadir Cetinkaya <kadircet@google.com>
Thu, 8 Apr 2021 13:37:32 +0000 (15:37 +0200)
committerKadir Cetinkaya <kadircet@google.com>
Fri, 9 Apr 2021 13:52:51 +0000 (15:52 +0200)
commitb9b708eef8cb7bcb073361283cd573beb04992a9
treea7145962ae1ae0e17b20f0e84b202a47dd295eed
parent175b8819f2eacb1dbf5a8ed361052b6b376e9405
[clangd] Log a message when gRPC support is off, but remote-index is configured

Before this change clangd would emit a diagnostic whenever remote-index
was configured but binary didn't have grpc support.

This can be annoying when projects are configuring remote-index through their
configs but developers have a clangd binary without the support.

Differential Revision: https://reviews.llvm.org/D100103
clang-tools-extra/clangd/ConfigCompile.cpp
clang-tools-extra/clangd/unittests/ConfigCompileTests.cpp