[cfe-dev] Expand libtooling CommonOptionsParser arguments

Victor Vicente de Carvalho victor.v.carvalho at gmail.com
Sat Jan 5 12:10:28 PST 2013


Hi Manuel,

Haha, yes, It's exactly what I'm intending to do. The problem is that
CommonOptionsParser calls cl::ParseCommandLineOptions(argc, argv) and I was
trying to figure on how to inject custom arguments inside it.


Cheers,

Victor


2013/1/5 Manuel Klimek <klimek at google.com>

> On Sat, Jan 5, 2013 at 8:10 PM, Victor Vicente de Carvalho <
> victor.v.carvalho at gmail.com> wrote:
>
>> Hello,
>>
>> I would like to expand CommonOptionsParser class with a new argument to
>> specify an output file (something like -o "generated.cpp"). What would be
>> the best way to do that?
>>
>
> As this sounds like something that is not common to pretty much all tools,
> I'd say - put it into the actual tool you're writing?
>
> Cheers,
> /Manuel
>
>
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130105/dffe78dc/attachment.html>


More information about the cfe-dev mailing list