[PATCH] D51352: [clangd] Switch to Dex by default for the static index
Kirill Bobyrev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 28 06:20:05 PDT 2018
kbobyrev updated this revision to Diff 162840.
kbobyrev added a comment.
Run `clang-format`.
https://reviews.llvm.org/D51352
Files:
clang-tools-extra/clangd/tool/ClangdMain.cpp
Index: clang-tools-extra/clangd/tool/ClangdMain.cpp
===================================================================
--- clang-tools-extra/clangd/tool/ClangdMain.cpp
+++ clang-tools-extra/clangd/tool/ClangdMain.cpp
@@ -29,10 +29,9 @@
using namespace clang;
using namespace clang::clangd;
-static llvm::cl::opt<bool>
- UseDex("use-dex-index",
- llvm::cl::desc("Use experimental Dex static index."),
- llvm::cl::init(false), llvm::cl::Hidden);
+static llvm::cl::opt<bool> UseMem("use-mem",
+ llvm::cl::desc("Use Mem for static index."),
+ llvm::cl::init(false), llvm::cl::Hidden);
namespace {
@@ -52,8 +51,8 @@
for (auto Sym : Slab)
SymsBuilder.insert(Sym);
- return UseDex ? dex::DexIndex::build(std::move(SymsBuilder).build())
- : MemIndex::build(std::move(SymsBuilder).build());
+ return UseMem ? MemIndex::build(std::move(SymsBuilder).build())
+ : dex::DexIndex::build(std::move(SymsBuilder).build());
}
} // namespace
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51352.162840.patch
Type: text/x-patch
Size: 1068 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180828/44a831d2/attachment.bin>
More information about the cfe-commits
mailing list