Coding style reminder

Boudewijn Rempt boud at
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) {

* 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 ...

Boudewijn Rempt,,

More information about the calligra-devel mailing list