You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by Joseph Fradley <jo...@fradeng.com> on 2014/06/10 19:01:19 UTC

Generate Language Datamember Comments

Hello,

Is there a way to have the Thrift compiler take the comments specified in
the *.thrift idl file and put them into the generated language file?

Joe

Re: Generate Language Datamember Comments

Posted by Joseph Fradley <jo...@fradeng.com>.
FYI, It worked for the generated C# files but not for the C++ files.


On Tue, Jun 10, 2014 at 2:52 PM, Joseph Fradley <jo...@fradeng.com>
wrote:

> c++ and c#, I tried //, ///, and /* */. But not /**  */. I'll give it a
> whirl, thank you.
>
>
> On Tue, Jun 10, 2014 at 2:50 PM, Craig Peterson <cp...@ancestry.com>
> wrote:
>
>> Yes. If you use /** fooo */ style comments they are considered doc text.
>> Most generators put them on appropriate elements, but it is possible that
>> some don't. What language are you using?
>>
>> > On Jun 10, 2014, at 11:01 AM, "Joseph Fradley" <jo...@fradeng.com>
>> wrote:
>> >
>> > Hello,
>> >
>> > Is there a way to have the Thrift compiler take the comments specified
>> in
>> > the *.thrift idl file and put them into the generated language file?
>> >
>> > Joe
>>
>>
>>
>

Re: Generate Language Datamember Comments

Posted by Joseph Fradley <jo...@fradeng.com>.
c++ and c#, I tried //, ///, and /* */. But not /**  */. I'll give it a
whirl, thank you.


On Tue, Jun 10, 2014 at 2:50 PM, Craig Peterson <cp...@ancestry.com>
wrote:

> Yes. If you use /** fooo */ style comments they are considered doc text.
> Most generators put them on appropriate elements, but it is possible that
> some don't. What language are you using?
>
> > On Jun 10, 2014, at 11:01 AM, "Joseph Fradley" <jo...@fradeng.com>
> wrote:
> >
> > Hello,
> >
> > Is there a way to have the Thrift compiler take the comments specified in
> > the *.thrift idl file and put them into the generated language file?
> >
> > Joe
>
>
>

Re: Generate Language Datamember Comments

Posted by Craig Peterson <cp...@ancestry.com>.
Yes. If you use /** fooo */ style comments they are considered doc text. Most generators put them on appropriate elements, but it is possible that some don't. What language are you using?

> On Jun 10, 2014, at 11:01 AM, "Joseph Fradley" <jo...@fradeng.com> wrote:
> 
> Hello,
> 
> Is there a way to have the Thrift compiler take the comments specified in
> the *.thrift idl file and put them into the generated language file?
> 
> Joe