summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Liu <ioeric@google.com>2018-09-13 12:53:23 +0000
committerEric Liu <ioeric@google.com>2018-09-13 12:53:23 +0000
commit76b88d8e98401902189d78f710163edf7654ace6 (patch)
treed5afbc31296fcfa7dc22075f816d5d6ffd04df88
parentff987ac6ea5a0d45d85e5da5161eb6945d27d421 (diff)
downloadbcm5719-llvm-76b88d8e98401902189d78f710163edf7654ace6.tar.gz
bcm5719-llvm-76b88d8e98401902189d78f710163edf7654ace6.zip
[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 llvm-svn: 342134
-rw-r--r--clang-tools-extra/clangd/tool/ClangdMain.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/clang-tools-extra/clangd/tool/ClangdMain.cpp b/clang-tools-extra/clangd/tool/ClangdMain.cpp
index c7d99d2a196..b3b34def097 100644
--- a/clang-tools-extra/clangd/tool/ClangdMain.cpp
+++ b/clang-tools-extra/clangd/tool/ClangdMain.cpp
@@ -130,10 +130,11 @@ static llvm::cl::opt<Path> InputMirrorFile(
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",
OpenPOWER on IntegriCloud