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

From KDE Community Wiki
No edit summary
No edit summary
Line 1: Line 1:
For the coding style we follow [http://techbase.kde.org/Policies/Kdelibs_Coding_Style kdelibs coding style]
For the coding style we follow the [http://techbase.kde.org/Policies/Kdelibs_Coding_Style kdelibs coding style].


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'`