Style guide » History » Version 2

« Previous - Version 2/3 (diff) - Next » - Current version
Giulio Moro, 2015-08-20 05:22 PM


Style guide

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

  • use tabs for indentation
  • space around every mathematical/binary operator (=, *, +, <<, etc.)
  • but no space inside parens ---> if(a 2) not if( a 2 ) nor if(a==2)
  • space between comment symbol and beginning of text: // Like this
  • comments aligned to same indentation as the code
  • documentation in the .h files using Doxygen syntax