[chbot] Lazy software developers please read...

Spencer Travers spencer.travers at gmail.com
Wed Aug 6 03:20:49 BST 2014

I would tackle this with a Python script. Python will probably already be
installed on your Linux box. It is very good at recursively scanning
folders and processing files.

   - Use os.walk() to iterate over the folder/file structure of your source.
   - Open each file you are interested in (*.c/*.h).
   - Use a regex to match functions/structs.
   - Output modified file with templates inserted where appropriate.


On Wed, Aug 6, 2014 at 1:48 PM, Charles Manning <cdhmanning at gmail.com>

> I'm hoping there is a lazy (or efficient, if you prefer) software
> developer that can steer me in the right direction.
> I have approx 15000 lines of code that I need to add some more
> comments to. I am thinking of using doxygen for all the functions
> /structures.
> Does anyone know of a tool that can add doxygen headers to C
> functions/structs?
> I'm clearly not expecting the tool to figure out what the functions
> do, but it should be possible for such a tool to generate all the
> boring boilerplate stuff.
> First prize would be that it works under Linux.
> Thanks
> Charles
> _______________________________________________
> Chchrobotics mailing list Chchrobotics at lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/chchrobotics
> Mail Archives: http://lists.ourshack.com/pipermail/chchrobotics/
> Web site: http://kiwibots.org
> Meetings 3rd Monday each month.
> When replying, please edit your Subject line to reflect new content.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ourshack.com/pipermail/chchrobotics/attachments/20140806/fce1beec/attachment.html>

More information about the Chchrobotics mailing list