From 40d11a878044711708fb6738e4b78a4c9ac3de7b Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Mon, 27 Jul 2020 14:03:28 +0200 Subject: [PATCH] ClangdMain.cpp: this #ifdef should be an #if CLANGD_ENABLE_REMOTE is always defined; to 0 or 1. --- clang-tools-extra/clangd/tool/ClangdMain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang-tools-extra/clangd/tool/ClangdMain.cpp b/clang-tools-extra/clangd/tool/ClangdMain.cpp index 8d1bf5c42260..f04dad7186df 100644 --- a/clang-tools-extra/clangd/tool/ClangdMain.cpp +++ b/clang-tools-extra/clangd/tool/ClangdMain.cpp @@ -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.";