Skip to main content
GameDev.net gamedev.net
🔒 Locked

Advices on code commenting

Started by nooan Oct 5, 2006 at 3:35 AM 1 replies 950+ views
Original Post
nooan
nooan
Hello, In my engine I need to add documentation, in the form of code comments, to all my header files (hundreds of...) The documentation for each function includes a brief description of its usage and of its parameters and return values. Not only functions but other objects like classes have to be commented. Now, since this is a HUGE work to do, before starting I would appreciate the advice of people here on a suggested format. The possibility of automatically extracting a documentation file from the code by parsing the comments is a big bonus.I know .NET promotes in-code documentation in XML format, but I'm also aware of other formats (like the Doxygen one). Any advices on this matter? Thanks a lot, Stefano
Stefano LanzaTyphoon Engine
DaBono
DaBono
I've always liked the Javadoc format. It's parseable by Doxygen, Javadoc, and probably other tools as well.
My actual advice: choose a tool you like for documentation extraction, THEN choose a format you like and your tool supports.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.