[clang-tools-extra] r342134 - [clangd] Clarify and hide -index flag.
Eric Liu via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 13 05:53:23 PDT 2018
Author: ioeric
Date: Thu Sep 13 05:53:23 2018
New Revision: 342134
URL: http://llvm.org/viewvc/llvm-project?rev=342134&view=rev
Log:
[clangd] Clarify and hide -index flag.
Summary:
The wording implies global index support, which is confusing.
As most users shouldn't care about this flag, also make it hidden to avoid
further confusion.
Reviewers: sammccall, ilya-biryukov
Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits
Differential Revision: https://reviews.llvm.org/D51977
Modified:
clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp
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=342134&r1=342133&r2=342134&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp (original)
+++ clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp Thu Sep 13 05:53:23 2018
@@ -130,10 +130,11 @@ static llvm::cl::opt<Path> InputMirrorFi
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",
More information about the cfe-commits
mailing list