Author: sammccall Date: Mon Jun 10 13:38:16 2019 New Revision: 362978 URL: http://llvm.org/viewvc/llvm-project?rev=362978&view=rev Log: [clangd] Remove old hidden -use-dex-index flag
Modified: clang-tools-extra/trunk/clangd/ClangdServer.h clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp Modified: clang-tools-extra/trunk/clangd/ClangdServer.h URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/ClangdServer.h?rev=362978&r1=362977&r2=362978&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/ClangdServer.h (original) +++ clang-tools-extra/trunk/clangd/ClangdServer.h Mon Jun 10 13:38:16 2019 @@ -88,8 +88,7 @@ public: /// opened files and uses the index to augment code completion results. bool BuildDynamicSymbolIndex = false; /// Use a heavier and faster in-memory index implementation. - /// FIXME: we should make this true if it isn't too slow to build!. - bool HeavyweightDynamicSymbolIndex = false; + bool HeavyweightDynamicSymbolIndex = true; /// If true, ClangdServer automatically indexes files in the current project /// on background threads. The index is stored in the project root. bool BackgroundIndex = false; Modified: clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp?rev=362978&r1=362977&r2=362978&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp (original) +++ clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp Mon Jun 10 13:38:16 2019 @@ -34,11 +34,6 @@ namespace clang { namespace clangd { -// FIXME: remove this option when Dex is cheap enough. -static llvm::cl::opt<bool> - UseDex("use-dex-index", - llvm::cl::desc("Use experimental Dex dynamic index"), - llvm::cl::init(true), llvm::cl::Hidden); static llvm::cl::opt<Path> CompileCommandsDir( "compile-commands-dir", @@ -447,7 +442,6 @@ int main(int argc, char *argv[]) { if (!ResourceDir.empty()) Opts.ResourceDir = ResourceDir; Opts.BuildDynamicSymbolIndex = EnableIndex; - Opts.HeavyweightDynamicSymbolIndex = UseDex; Opts.BackgroundIndex = EnableBackgroundIndex; Opts.BackgroundIndexRebuildPeriodMs = BackgroundIndexRebuildPeriod; std::unique_ptr<SymbolIndex> StaticIdx; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits