Mercurial > trustbridge
annotate HACKING @ 765:7c3a8a8d3e52
Code cleanup: make variable initialization more obvious.
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Fri, 04 Jul 2014 18:44:06 +0200 |
parents | 8cfcd38a9bb3 |
children | 1dc1f5a4b577 |
rev | line source |
---|---|
163
8cfcd38a9bb3
Change coding style for cinst main / windowsstore to GNU
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
1 Please keep C code according to GNU coding standards. |
8cfcd38a9bb3
Change coding style for cinst main / windowsstore to GNU
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
2 |
8cfcd38a9bb3
Change coding style for cinst main / windowsstore to GNU
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
3 With regards to the style: |
8cfcd38a9bb3
Change coding style for cinst main / windowsstore to GNU
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
4 astyle --style=gnu --indent=spaces=2 --pad-paren-out |
8cfcd38a9bb3
Change coding style for cinst main / windowsstore to GNU
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
5 |
8cfcd38a9bb3
Change coding style for cinst main / windowsstore to GNU
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
6 For the C++ Ui code please use the kdelibs coding style |
8cfcd38a9bb3
Change coding style for cinst main / windowsstore to GNU
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
7 astyle --indent=spaces=4 --brackets=linux \ |
8cfcd38a9bb3
Change coding style for cinst main / windowsstore to GNU
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
8 --indent-labels --pad-oper --unpad-paren --pad-header \ |
8cfcd38a9bb3
Change coding style for cinst main / windowsstore to GNU
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
9 --keep-one-line-statements --convert-tabs \ |
8cfcd38a9bb3
Change coding style for cinst main / windowsstore to GNU
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
10 --indent-preprocessor |