Coding style reminder

Boudewijn Rempt boud at valdyas.org
Mon Sep 19 14:05:06 UTC 2011


Hi everyone,

Just a gentle reminder of the coding style we use in Calligra:

* no tabs, an indent is four spaces
* always use braces around an if block, even if it's just one line

if (bla) {
	doSomething();
}

* for and if braces on the line of the condition

if (bla) {}

* function braces on a new line

void bla()
{
}

* space after if and for

if (bla), for (bla; bla; bla)

* space before * and &, not after Type *bla, const Type &bla

Please see http://techbase.kde.org/Policies/Kdelibs_Coding_Style ...

-- 
Boudewijn Rempt
http://www.valdyas.org, http://www.krita.org, http://www.boudewijnrempt.nl


More information about the calligra-devel mailing list