[clangd] Add categories to help options, and only show clangd options.
authorSam McCall <sam.mccall@gmail.com>
Wed, 24 Jul 2019 12:41:52 +0000 (12:41 +0000)
committerSam McCall <sam.mccall@gmail.com>
Wed, 24 Jul 2019 12:41:52 +0000 (12:41 +0000)
commit9842310a2ac11fa1e28d8e9722f0fbcfb35fb93a
treeef9fe8642a5fda393e2c559ab6166eff767a4e87
parent168a6dc9476980fbfe3ff920973a7c0dcd158b5a
[clangd] Add categories to help options, and only show clangd options.

Summary:
Restricting the categories prevents extra unwanted options from creeping into
help (D60663), and removes a bunch of noise from --help-hidden.

While here, remove `static` from the opts in favor of an anon namespace, to
reduce the noise level.

Reviewers: hokein

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D65200

llvm-svn: 366900
clang-tools-extra/clangd/tool/ClangdMain.cpp