Hi Marko,

Thank you for your reply. I am getting to it now.  First step is to get the code and build it,

But I get following error while building  it



make[2]: *** No rule to make target `DoxygenTranslator/src/Token.cpp', needed by `DoxygenTranslator/src/Token.o'.  Stop.

make[1]: *** [all] Error 2

make: *** [source] Error 2




Any pointers ?





From: Marko Klopcic [mailto:marko.klopcic@isystem.si]
Sent: Wednesday, March 20, 2013 12:59 AM
To: Pinakin Vaghela
Cc: swig-user@lists.sourceforge.net
Subject: Re: [Swig-user] swig 2.0.9 - how to carry forward comments in c++ source to c#


First you have to get SWIG sources and be able to build SWIG (see SWIG web page for instructions).
Switch to branch gsoc2012-doxygen. Open Sources/java.cxx and search for string 'doxy'. This way
you should find changes you need to implement in csharp.cxx.
Then you need to create class CSharpDocConverter in Sources/DoxygenTranslator/src. Use
JavaDocConverter as an example, but don't get scared - you need to implement only small part
of this class, if you'll only copy comments - see method makeDocumentation(), body of
statement ' if (GetFlag(node, "feature:doxygen:notranslate")) '.

Note: non-doxygen comments will NOT get copied.



On 2013-03-19 9:52 PM, Pinakin Vaghela wrote:

Yes, I am very  much interested.  I am using swig in my project at work and not being able to

Copy commets as is apparently is a big blocker for our team to go swig rout. Any help /pointer

On this is much appreciated.





From: Marko Klopcic [mailto:marko.klopcic@isystem.si]
Sent: Tuesday, March 19, 2013 12:51 AM
To: swig-user@lists.sourceforge.net
Subject: Re: [Swig-user] swig 2.0.9 - how to carry forward comments in c++ source to c#


Current implementation supports also 'copying' untranslated comments to generated code.
But also this task was not trivial, as SWIG parsing had to be updated to take also comments
into account. Since comments may appear almost anywhere in C/C++ code, you can imagine
how bison grammar rules should expand. Hence, current implementation does not support all
possible doxygen comment locations. However, if you can modify sources, you can always
write documentation in a way to get parsed and translated.
The good news is that comment parsing is common to all target languages. If you just want to
'copy' comments, it is not much work to do. If somebody is interested, I can give some hints
where to start.


On 2013-03-18 7:44 PM, David Piepgrass wrote:

I’ve always wanted this. Unfortunately the SWIG developers seem convinced that they have to “translate” the comments... simply copying the comments to the output unchanged seems to be off the table.... Marko’s right though, that the task is not as trivial as you make it sound.


From: Pinakin Vaghela [mailto:pvaghela@gracenote.com]
Sent: Friday, March 15, 2013 11:41 AM
To: swig-user@lists.sourceforge.net
Subject: [Swig-user] swig 2.0.9 - how to carry forward comments in c++ source to c#


Swig removes all comments that are in c++ headers. How can I instruct swig to *not* remove

these comments ?





Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:

Swig-user mailing list


Marko Klopcic, +386 1 5680695, www.asystelectronic.si
Asyst electronic d.o.o. / iSYSTEM AG
Brodisce 18, SI-1236 Trzin, SLOVENIA