ClangdMain.cpp: this #ifdef should be an #if

CLANGD_ENABLE_REMOTE is always defined; to 0 or 1.
This commit is contained in:
Hans Wennborg 2020-07-27 14:03:28 +02:00
parent 216b67e202
commit 40d11a8780
1 changed files with 1 additions and 1 deletions

View File

@ -696,7 +696,7 @@ clangd accepts flags on the commandline, and in the CLANGD_FLAGS environment var
if (Sync)
AsyncIndexLoad.wait();
}
#ifdef CLANGD_ENABLE_REMOTE
#if CLANGD_ENABLE_REMOTE
if (RemoteIndexAddress.empty() != ProjectRoot.empty()) {
llvm::errs() << "remote-index-address and project-path have to be "
"specified at the same time.";