Changes between Version 33 and Version 34 of Developer/Coding/Conventions


Ignore:
Timestamp:
May 30, 2014, 12:37:16 AM (5 years ago)
Author:
Gedare
Comment:

/* Readability */ new section, again.

Legend:

Unmodified
Added
Removed
Modified
  • Developer/Coding/Conventions

    v33 v34  
    3030 *  Use two spaces for indentation, four spaces for hanging indentation.
    3131 *  Adhere to a limit of 80 characters per line.
     32 *  Put function return types and names on one line if they fit. Put function calls on one line if they fit. If not, put each function argument on its own line with no argument on the first line, and put the closing parenthesis on its own line.
     33 *  Put braces one space after the conditional expression ends.
     34 *  Put a single space inside and outside of each parenthesis of a conditional expression.
     35 *  Put a single space before and no space after unary pointer operators (* and &).
     36 *  No spaces around dereferencing operators (-> and .).
     37= Readability =
     38
    3239 *  Do not mix variable declarations and code.
    3340 *  Avoid deep nesting by using early returns