From: Eric Liu Date: Thu, 13 Sep 2018 12:53:23 +0000 (+0000) Subject: [clangd] Clarify and hide -index flag. X-Git-Tag: llvmorg-8.0.0-rc1~8808 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=76b88d8e98401902189d78f710163edf7654ace6;p=platform%2Fupstream%2Fllvm.git [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 --- diff --git a/clang-tools-extra/clangd/tool/ClangdMain.cpp b/clang-tools-extra/clangd/tool/ClangdMain.cpp index c7d99d2..b3b34de 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 InputMirrorFile( static llvm::cl::opt 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 ShowOrigins("debug-origin",