aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2000-05-11 16:11:09 -0400
committerJason Merrill <jason@gcc.gnu.org>2000-05-11 16:11:09 -0400
commitefe7ef89e92567beb22a213a13b8d4a940b7d546 (patch)
treebb29ada0e8317f565bcbcca7318be297341fe60d
parent48a259fc4375c8112bb44d3ccc7e9e59c5eeccdc (diff)
downloadgcc-efe7ef89e92567beb22a213a13b8d4a940b7d546.zip
gcc-efe7ef89e92567beb22a213a13b8d4a940b7d546.tar.gz
gcc-efe7ef89e92567beb22a213a13b8d4a940b7d546.tar.bz2
fix try/catch
From-SVN: r33861
-rw-r--r--libstdc++-v3/docs/17_intro/C++STYLE22
1 files changed, 15 insertions, 7 deletions
diff --git a/libstdc++-v3/docs/17_intro/C++STYLE b/libstdc++-v3/docs/17_intro/C++STYLE
index 91c4b09..f4f8437 100644
--- a/libstdc++-v3/docs/17_intro/C++STYLE
+++ b/libstdc++-v3/docs/17_intro/C++STYLE
@@ -107,14 +107,20 @@ Notable areas of divergence from what may be previous local practice
{ }
08. Try/Catch blocks
+ try
+ {
+ //
+ }
+ catch (...)
+ {
+ //
+ }
+ -NOT-
try {
+ //
+ } catch(...) {
//
- }
- catch(...) {
- //
- }
- -NOT-
- try { // } catch(...) { // }
+ }
09. Member functions declarations and defintions
Keywords such as extern, static, export, explicit, inline, etc
@@ -128,7 +134,7 @@ Notable areas of divergence from what may be previous local practice
Reason: GNU coding conventions dictate return types for functions
are on a separate line than the function name and parameter list
for definitions. For C++, where we have member functions that can
-. be either inline definitions or declarations, keeping to this
+ be either inline definitions or declarations, keeping to this
standard allows all member function names for a given class to be
aligned to the same margin, increasing readibility.
@@ -140,6 +146,8 @@ Notable areas of divergence from what may be previous local practice
-NOT-
sync()
+ Reason: ???
+
The library currently has a mixture of GNU-C and modern C++ coding
styles. The GNU C usages will be combed out gradually.