[llvm-dev] PSA: llvm::cl now supports subcommands
Johan Engelen via llvm-dev
llvm-dev at lists.llvm.org
Fri Jul 1 08:00:10 PDT 2016
On Thu, Jun 30, 2016 at 7:54 PM, Zachary Turner via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> I submitted this yesterday in r274171. I think this allows for a more
> intuitive way to structure the options of command line tools. It's
> optional and if you do nothing llvm::cl will work as it always has for you.
Perhaps you could define a default parameter value for the new parameter of
getRegisteredOptions(...) ? That, or the code example given in the comments
should be fixed.
I think a default parameter value = *cl::TopLevelSubCommand would mean that
no code changes are necessary for downstream users (us ;).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev