Changeset 1889


Ignore:
Timestamp:
Nov 9, 2018, 3:23:31 AM (7 years ago)
Author:
Steven Levine
Message:

Minor clarifications and typo corrections.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CodingStyle.txt

    r1779 r1889  
    130130    x = func(a, c)
    131131
    132   Surround binary operators with a leading and trailing spaces.
     132  No spaces between pointer operators and variables.
     133
     134    p->a
     135    *p
     136
     137  Surround other binary operators with a leading and trailing spaces.
    133138
    134139    x = a + b
     140
     141  No spaces between unary operators and variables.
     142
     143    !a
     144    b++
     145    ++c
    135146
    136147  Try to avoid spurious internal and trailing whitespace.
     
    166177  Prefer javadoc style comments for function headers.
    167178
    168   When usings // comments, // should be followed by a space.
     179  When using // comments, // should be followed by a space.
    169180
    170181  Avoid using /* */ comments to disable code.  They can be hard to see.
Note: See TracChangeset for help on using the changeset viewer.