Open main menu

Difference between revisions of "Code Formatting Conventions"

no edit summary
Line 218: Line 218:
* [http://www.stack.nl/~dimitri/doxygen/docblocks.html Documentation blocks].
* [http://www.stack.nl/~dimitri/doxygen/docblocks.html Documentation blocks].
* [http://www.stack.nl/~dimitri/doxygen/commands.html List of available commands].
* [http://www.stack.nl/~dimitri/doxygen/commands.html List of available commands].
== Automatically converting code to our conventions ==
The following settings for [http://astyle.sourceforge.net/ Artistic Style] (als known as astyle) approximate our code formatting convetions and can be used to quickly convert a big bunch of source files to our conventions. Note that you still may have to manually clean up some stuff afterwards.
<pre>
indent=tab=4
brackets=attach
indent-classes
pad=oper
unpad=paren
</pre>
1,079

edits