thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rush Manbert <r...@manbert.com>
Subject Re: how to add comments in IDL file that will come in .cpp file and .java file?
Date Tue, 02 Apr 2013 15:01:56 GMT
Hi Tarun,

I don't think the comments have ever made it through to the generated C++ source.

The compiler is not difficult to modify, if you are so inclined, and this is a change that
I'm sure would be happily taken back into the project.

In the sources I work from (admittedly old, but I doubt the layout has changed) the file of
interest is this: compiler/cpp/src/generate/t_cpp_generator.cc. The corresponding java code
generator is next to it, so you just need to compare the two to see how the comments make
it into the java code. (I didn't look.)

- Rush

On Apr 1, 2013, at 9:23 PM, Tarun Goyal wrote:

> Hi Roger,
> 
> It is possible for java. I can see comments are coming when i generate java
> files but it is not happening for c++.
> 
> Thanks,
> Tarun
> 
> 
> On Mon, Apr 1, 2013 at 11:39 PM, Roger Meier <roger@bufferoverflow.ch>wrote:
> 
>> I would love to see the comments from idl file within the header files.
>> There is no option right now. However, it should not be a big story to add
>> it to the Thrift Compiler.
>> 
>> If you have some time, please help to improve it.
>> http://thrift.apache.org/docs/**HowToContribute<http://thrift.apache.org/docs/HowToContribute>
>> 
>> -roger
>> ;-r
>> 
>> Quoting Tarun Goyal <join2tarun@gmail.com>:
>> 
>> i am able to see my comments in .java files but not in .cpp files
>>> generated
>>> for thrift.
>>> please help
>>> 
>>> 
>>> On Sat, Mar 30, 2013 at 8:31 PM, Jens Geyer <jensgeyer@hotmail.com>
>>> wrote:
>>> 
>>> 
>>>> Please have a look at the DocTest.thrift file in the "test" folder.
>>>> 
>>>> 
>>>> -----Urspr√ľngliche Nachricht----- From: Tarun Goyal
>>>> Sent: Saturday, March 30, 2013 5:12 AM
>>>> To: user@thrift.apache.org
>>>> Subject: how to add comments in IDL file that will come in .cpp file and
>>>> .java file?
>>>> 
>>>> 
>>>> Please help
>>>> 
>>>> --
>>>> Regards,
>>>> Tarun
>>>> 
>>>> 
>>> 
>>> 
>>> --
>>> Regards,
>>> Tarun
>>> 
>> 
>> 
>> 
> 
> 
> -- 
> Regards,
> Tarun


Mime
View raw message