Changeset 1889
- Timestamp:
- Nov 9, 2018, 3:23:31 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CodingStyle.txt
r1779 r1889 130 130 x = func(a, c) 131 131 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. 133 138 134 139 x = a + b 140 141 No spaces between unary operators and variables. 142 143 !a 144 b++ 145 ++c 135 146 136 147 Try to avoid spurious internal and trailing whitespace. … … 166 177 Prefer javadoc style comments for function headers. 167 178 168 When using s// comments, // should be followed by a space.179 When using // comments, // should be followed by a space. 169 180 170 181 Avoid using /* */ comments to disable code. They can be hard to see.
Note:
See TracChangeset
for help on using the changeset viewer.