Jump to content

IUP ISI/MediaWiki-Silk/coding-style: Difference between revisions

From KDE Community Wiki
No edit summary
No edit summary
Line 2: Line 2:


Artistic Style (astyle) automatic code formatting:
Artistic Style (astyle) automatic code formatting:
astyle --indent=spaces=4 --brackets=linux \
astyle --indent=spaces=4 --brackets=linux \
       --indent-labels --pad-oper --unpad-paren \
       --indent-labels --pad-oper --unpad-paren \

Revision as of 08:46, 26 October 2010

For the coding style we follow the kdelibs coding style.

Artistic Style (astyle) automatic code formatting:

astyle --indent=spaces=4 --brackets=linux \

     --indent-labels --pad-oper --unpad-paren \
     --one-line=keep-statements --convert-tabs \
     --indent-preprocessor \
     `find -type f -name '*.cpp'` `find -type f -name '*.cc'` `find -type f -name '*.h'`