Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
efe7ef89
Commit
efe7ef89
authored
May 11, 2000
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix try/catch
From-SVN: r33861
parent
48a259fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
libstdc++-v3/docs/17_intro/C++STYLE
+15
-7
No files found.
libstdc++-v3/docs/17_intro/C++STYLE
View file @
efe7ef89
...
@@ -107,14 +107,20 @@ Notable areas of divergence from what may be previous local practice
...
@@ -107,14 +107,20 @@ Notable areas of divergence from what may be previous local practice
{ }
{ }
08. Try/Catch blocks
08. Try/Catch blocks
try
{
//
}
catch (...)
{
//
}
-NOT-
try {
try {
//
} catch(...) {
//
//
}
}
catch(...) {
//
}
-NOT-
try { // } catch(...) { // }
09. Member functions declarations and defintions
09. Member functions declarations and defintions
Keywords such as extern, static, export, explicit, inline, etc
Keywords such as extern, static, export, explicit, inline, etc
...
@@ -128,7 +134,7 @@ Notable areas of divergence from what may be previous local practice
...
@@ -128,7 +134,7 @@ Notable areas of divergence from what may be previous local practice
Reason: GNU coding conventions dictate return types for functions
Reason: GNU coding conventions dictate return types for functions
are on a separate line than the function name and parameter list
are on a separate line than the function name and parameter list
for definitions. For C++, where we have member functions that can
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
standard allows all member function names for a given class to be
aligned to the same margin, increasing readibility.
aligned to the same margin, increasing readibility.
...
@@ -140,6 +146,8 @@ Notable areas of divergence from what may be previous local practice
...
@@ -140,6 +146,8 @@ Notable areas of divergence from what may be previous local practice
-NOT-
-NOT-
sync()
sync()
Reason: ???
The library currently has a mixture of GNU-C and modern C++ coding
The library currently has a mixture of GNU-C and modern C++ coding
styles. The GNU C usages will be combed out gradually.
styles. The GNU C usages will be combed out gradually.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment