OSDN Git Service

2002-08-23 Phil Edwards <pme@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / docs / html / 17_intro / C++STYLE
index 46fe3f3..f838b83 100644 (file)
@@ -173,7 +173,7 @@ Notable areas of divergence from what may be previous local practice
      int foo;
 
 13. Spacing WRT return statements.
-   no extra spacing before returns
+   no extra spacing before returns, no parenthesis
    ie
 
    }
@@ -184,6 +184,12 @@ Notable areas of divergence from what may be previous local practice
 
    return __ret;
 
+   -NOT-
+
+   }
+   return (__ret);
+
+
 14. Location of global variables.
    All global variables of class type, whether in the "user visable"
    space (e.g., cin) or the implementation namespace, must be defined
@@ -264,7 +270,7 @@ namespace std
 
     int 
     two_lines(const char* arg) 
-      { return strchr(arg, 'a'); }
+    { return strchr(arg, 'a'); }
 
     inline int 
     three_lines();  // inline, but defined below.
@@ -360,7 +366,3 @@ namespace std
   }
 } // namespace std
 
-
-
-
-