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)
commit9e13af7ac377f682d55b3bb3edd3471d247cbd36
tree04068061e56256d8ff5321bc39b92059c107b916
parentb16b09b154f2a8468dcfaa9a8eb5297d59cbd7cd
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

llvm-svn: 226729
llvm/include/llvm/Support/CommandLine.h
llvm/lib/Support/CommandLine.cpp
llvm/unittests/Support/CommandLineTest.cpp