Changes between Initial Version and Version 1 of LemmaStyleGuide


Ignore:
Timestamp:
Jul 24, 2018 5:16:08 AM (13 months ago)
Author:
tirons
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LemmaStyleGuide

    v1 v1  
     1Lemma code follows a few simple guidelines
     2  1. Indentation level is four (4) **spaces**. 
     3  2. Use the one true brace (OTB) style. Since there is more than a single OTB please see the example below 
     4{{{#!c++
     5Real myFunction( const Real& myReal ) {
     6    if (myReal < PI) {
     7        return myReal;
     8    } else {
     9        return myReal/PI;
     10    }
     11}
     12}}}
     13  The biggest source of confusion is for functions and classes, the first brace remains on the function declaration line.
     14  3. Line endings in the official repositories are Unix style "\n".
     15  4. Vim macros are available in the vim directory of the source code.