[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 ;).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev