Style guide » History » Version 2

Giulio Moro, 2015-08-20 05:22 PM

1 1 Giulio Moro
h1.  Style guide
2 1 Giulio Moro
3 2 Giulio Moro
You are welcome to contribute to this repository. If you decide to, please follow our style guide (which we have not followed thoroughly ourselves so far, but we are trying to improve).
4 1 Giulio Moro
5 1 Giulio Moro
* use tabs for indentation
6 1 Giulio Moro
* space around every mathematical/binary operator (=, *, +, <<, etc.)
7 1 Giulio Moro
* but no space inside parens ---> if(a == 2) not if( a == 2 ) nor if(a==2)
8 1 Giulio Moro
* space between comment symbol and beginning of text: // Like this
9 1 Giulio Moro
* comments aligned to same indentation as the code
10 2 Giulio Moro
* documentation in the .h files using Doxygen syntax