Update C++ style guide to 3.180:

- Remove comment about naming macros like enums.
 - Move a bad code snippet from a CODE_SNIPPET to a BAD_CODE_SNIPPET element.

Update Python style guide to 2.18:
 - Clarify the syntax for import statements.

Update styleguide.xsl to 1.31:
 - Substitute underscore for apostrophe in anchor names.
This commit is contained in:
mmentovai
2010-11-23 18:02:36 +00:00
parent a51c16b542
commit db989ec08f
3 changed files with 37 additions and 36 deletions
+6 -4
View File
@@ -4,7 +4,7 @@
<p align="right">
Revision 3.178
Revision 3.180
</p>
@@ -739,9 +739,11 @@ Tashana Landray
particular, initialization should be used instead of
declaration and assignment, e.g.
</p>
<CODE_SNIPPET>
<BAD_CODE_SNIPPET>
int i;
i = f(); // Bad -- initialization separate from declaration.
</BAD_CODE_SNIPPET>
<CODE_SNIPPET>
int j = g(); // Good -- declaration has initialization.
</CODE_SNIPPET>
<p>
@@ -3018,7 +3020,7 @@ Tashana Landray
Please see the <a href="#Preprocessor_Macros">description of
macros</a>; in general macros should <em>not</em> be used.
However, if they are absolutely needed, then they should be
named like enum value names with all capitals and underscores.
named with all capitals and underscores.
</p>
<CODE_SNIPPET>
#define ROUND(x) ...
@@ -4527,7 +4529,7 @@ Tashana Landray
<HR/>
<p align="right">
Revision 3.178
Revision 3.180
</p>