[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    Coding style reminder
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2011-09-19 14:05:06
Message-ID: 201109191605.06489.boud () valdyas ! org
[Download RAW message or body]

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
_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic