[PATCH] D51977: [clangd] Clarify and hide -index flag.
Eric Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 13 05:54:25 PDT 2018
ioeric updated this revision to Diff 165263.
ioeric marked an inline comment as done.
ioeric added a comment.
- Remove `static`.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D51977
Files:
clangd/tool/ClangdMain.cpp
Index: clangd/tool/ClangdMain.cpp
===================================================================
--- clangd/tool/ClangdMain.cpp
+++ 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",
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51977.165263.patch
Type: text/x-patch
Size: 803 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180913/4f77aa1e/attachment.bin>
More information about the cfe-commits
mailing list