Skip to content

Commit

Permalink
[clangd] Switch to Dex by default for the static index
Browse files Browse the repository at this point in the history
Dex is now mature enough to be used as the default static index. This
patch performs the switch but introduces a hidden flag to allow users
fallback to Mem in case something happens.

Reviewed by: ioeric

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

llvm-svn: 340828
  • Loading branch information
kirillbobyrev committed Aug 28, 2018
1 parent 3e331e0 commit 8212eae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clang-tools-extra/clangd/tool/ClangdMain.cpp
Expand Up @@ -29,10 +29,11 @@
using namespace clang;
using namespace clang::clangd;

// FIXME: remove this option when Dex is stable enough.
static llvm::cl::opt<bool>
UseDex("use-dex-index",
llvm::cl::desc("Use experimental Dex static index."),
llvm::cl::init(false), llvm::cl::Hidden);
llvm::cl::init(true), llvm::cl::Hidden);

namespace {

Expand Down

0 comments on commit 8212eae

Please sign in to comment.