This revision was automatically updated to reflect the committed changes. Closed by commit rL342134: [clangd] Clarify and hide -index flag. (authored by ioeric, committed by ). Herald added a subscriber: llvm-commits.
Repository: rL LLVM https://reviews.llvm.org/D51977 Files: clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp Index: clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp =================================================================== --- clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp +++ clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp @@ -130,10 +130,11 @@ static llvm::cl::opt<bool> EnableIndex( "index", - llvm::cl::desc("Enable index-based features such as global code completion " - "and searching for symbols. " - "Clang uses an index built from symbols in opened files"), - llvm::cl::init(true)); + llvm::cl::desc( + "Enable index-based features. By default, clangd maintains an index " + "built from symbols in opened files. Global index support needs to " + "enabled separatedly."), + llvm::cl::init(true), llvm::cl::Hidden); static llvm::cl::opt<bool> ShowOrigins("debug-origin",
Index: clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp =================================================================== --- clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp +++ clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp @@ -130,10 +130,11 @@ static llvm::cl::opt<bool> EnableIndex( "index", - llvm::cl::desc("Enable index-based features such as global code completion " - "and searching for symbols. " - "Clang uses an index built from symbols in opened files"), - llvm::cl::init(true)); + llvm::cl::desc( + "Enable index-based features. By default, clangd maintains an index " + "built from symbols in opened files. Global index support needs to " + "enabled separatedly."), + llvm::cl::init(true), llvm::cl::Hidden); static llvm::cl::opt<bool> ShowOrigins("debug-origin",
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits