[llvm-dev] PSA: llvm::cl now supports subcommands

Zachary Turner via llvm-dev llvm-dev at lists.llvm.org
Fri Jul 1 08:13:54 PDT 2016

Seems reasonable, I'll take a look later
On Fri, Jul 1, 2016 at 8:00 AM Johan Engelen <jbc.engelen at gmail.com> wrote:

> 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 ;).
> cheers,
>   Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160701/cacde5e6/attachment.html>

More information about the llvm-dev mailing list