Changes between Version 20 and Version 21 of CodeStyle


Ignore:
Timestamp:
12/23/16 21:18:53 (7 years ago)
Author:
Steffan Karger
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CodeStyle

    v20 v21  
    2727
    2828= Line wrapping =
    29 The maximum line length is 80 characters.  When lines exceed this length, wrap them using a double indent (ie 8 spaces) on the new line.  For example:
     29The maximum line length is 80 characters.  When statements exceed this length, wrap them by aligning with the appropriate (, or otherwise using a single indent (ie 4 spaces) on the new line.  For example:
    3030{{{#!c
    3131void my_function(void)
    3232{
    3333    if (variable_with_artificially_long_name_1 != 0
    34             && variable_with_artificially_long_name_2 != 0)
     34        && variable_with_artificially_long_name_2 != 0)
    3535    {
    3636        return variable_with_artificially_long_name_1
    37                 + variable_with_artificially_long_name_2
    38                 + variable_with_artificially_long_name_3;
     37            + variable_with_artificially_long_name_2
     38            + variable_with_artificially_long_name_3;
    3939    }
    4040}