User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cppdev:codingconventions [2009-12-29 19:56]
Carsten Updated the top-level headline
cppdev:codingconventions [2013-01-07 12:07] (current)
Line 148: Line 148:
   * with comparison operators (e.g. ''​=='',​ ''>'',​ ''>​='',​ etc.),   * with comparison operators (e.g. ''​=='',​ ''>'',​ ''>​='',​ etc.),
   * with other operators like ''​=''​ (assignment),​ ''::''​ (scope resolution),​ ''​%%->​%%''​ (member by pointer), etc.   * with other operators like ''​=''​ (assignment),​ ''::''​ (scope resolution),​ ''​%%->​%%''​ (member by pointer), etc.
 +Not using whitespace around the above mentioned operators (all but unary) works best when your code editor supports syntax highlighting that renders the operators in a style or color that is different from that of the operands. If your code editor doesn'​t support highlighting of operators and/or using a space before and after the operator improves the readability of the code, using such whitespace is fine, too.
  
 //Use// whitespace //Use// whitespace
cppdev/codingconventions.1262112960.txt.gz ยท Last modified: 2013-01-07 12:07 (external edit)