[clangd] Turn background-index on by default
authorKadir Cetinkaya <kadircet@google.com>
Thu, 4 Jul 2019 09:56:24 +0000 (09:56 +0000)
committerKadir Cetinkaya <kadircet@google.com>
Thu, 4 Jul 2019 09:56:24 +0000 (09:56 +0000)
Reviewers: sammccall

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

Tags: #clang

Differential Revision: https://reviews.llvm.org/D64019

llvm-svn: 365124

clang-tools-extra/clangd/tool/ClangdMain.cpp

index c192b28..9ff8de9 100644 (file)
@@ -189,7 +189,7 @@ static llvm::cl::opt<bool> EnableBackgroundIndex(
     llvm::cl::desc(
         "Index project code in the background and persist index on disk. "
         "Experimental"),
-    llvm::cl::init(false), llvm::cl::Hidden);
+    llvm::cl::init(true));
 
 static llvm::cl::opt<int> BackgroundIndexRebuildPeriod(
     "background-index-rebuild-period",