Adding a new cl::HideUnrelatedOptions API to allow clang to migrate off cl::getRegist...
authorChris Bieneman <beanz@apple.com>
Wed, 21 Jan 2015 22:45:52 +0000 (22:45 +0000)
committerChris Bieneman <beanz@apple.com>
Wed, 21 Jan 2015 22:45:52 +0000 (22:45 +0000)
commitf04568139a38541215f52752732fa673be9fb4a4
treed38423a74ea7aaa20c83ec6654eb7820618eb738
parent42695901660b63b1ec9e9849131b6c44faff173e
Adding a new cl::HideUnrelatedOptions API to allow clang to migrate off cl::getRegisteredOptions.

Summary: cl::getRegisteredOptions really exposes some of the innards of how command line parsing is implemented. Exposing new APIs that allow us to disentangle client code from implementation details will allow us to make more extensive changes to command line parsing.

Reviewers: chandlerc, dexonsmith, beanz

Reviewed By: dexonsmith

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226729 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/CommandLine.h
lib/Support/CommandLine.cpp
unittests/Support/CommandLineTest.cpp