Skip to content

Commit

Permalink
[clangd] Clarify and hide -index flag.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Eric Liu committed Sep 13, 2018
1 parent ff987ac commit 76b88d8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions clang-tools-extra/clangd/tool/ClangdMain.cpp
Original file line number Diff line number Diff line change
@@ -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",

0 comments on commit 76b88d8

Please sign in to comment.