Adopt new cl::HideUnrelatedOptions API added r226729.
authorChris Bieneman <beanz@apple.com>
Wed, 21 Jan 2015 23:26:11 +0000 (23:26 +0000)
committerChris Bieneman <beanz@apple.com>
Wed, 21 Jan 2015 23:26:11 +0000 (23:26 +0000)
commit0a9f607f7b63abf001c4fb119cb1f06a54951aeb
tree94474502651082a26e831b5fb8b384fc89bf5d50
parent3007ba0ab357e18d998654898c0d2e2d95207624
Adopt new cl::HideUnrelatedOptions API added r226729.

Summary: cl::HideUnrelatedOptions allows tools to hide all options not part of a specific OptionCategory. This is the common use case for cl::getRegisteredOptions, which should be deprecated in the future because it exposes implementation details of command line parsing.

Reviewers: dexonsmith

Subscribers: klimek, cfe-commits

Differential Revision: http://reviews.llvm.org/D7109

llvm-svn: 226741
clang/lib/Tooling/CommonOptionsParser.cpp
clang/tools/clang-format/ClangFormat.cpp