diff options
author | mmentovai <mmentovai@955884f1-7149-0410-9467-59e7ac3f4d80> | 2008-09-04 18:34:20 +0000 |
---|---|---|
committer | mmentovai <mmentovai@955884f1-7149-0410-9467-59e7ac3f4d80> | 2008-09-04 18:34:20 +0000 |
commit | 48fcffea4c95c0bc4d611f8669c6890267910d37 (patch) | |
tree | 4990312b42fca7270f693fa3de4bf42c175f2512 /cppguide.xml | |
parent | 7bcc2086501be605e5687b928d6900630ddfe601 (diff) | |
download | google-styleguide-48fcffea4c95c0bc4d611f8669c6890267910d37.tar.gz |
Update C++ style guide:
- Change list of permitted Boost libraries
- Permit one space before // in a new {scope}
- Grammar fix!
Update Objective-C style guide:
- Link spacing changes only
Diffstat (limited to 'cppguide.xml')
-rw-r--r-- | cppguide.xml | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/cppguide.xml b/cppguide.xml index 433d614..5e351ae 100644 --- a/cppguide.xml +++ b/cppguide.xml @@ -2464,9 +2464,23 @@ Tashana Landray Compressed Pair</a> from <code>boost/compressed_pair.hpp</code> </li> <li> <a href="http://www.boost.org/libs/ptr_container/"> - Pointer Container</a> from <code>boost/ptr_container</code> except - <code>ptr_array.hpp</code> and serialization + Pointer Container</a> from <code>boost/ptr_container</code> except serialization </li> + <li> <a href="http://www.boost.org/libs/array/"> + Array</a> from <code>boost/array.hpp</code> + </li> + <li> <a href="http://www.boost.org/libs/graph/"> + The Boost Graph Library (BGL)</a> from <code>boost/graph</code> except serialization + </li> + <li> <a href="http://www.boost.org/libs/property_map/"> + Property Map</a> from <code>boost/property_map.hpp</code> + </li> + <li> The part of + <a href="http://www.boost.org/libs/iterator/"> + Iterator</a> that deals with defining iterators: + <code>boost/iterator/iterator_adaptor.hpp</code>, + <code>boost/iterator/iterator_facade.hpp</code>, and + <code>boost/function_output_iterator.hpp</code></li> </ul> We are actively considering adding other Boost features to the list, so this rule may be relaxed in the future. @@ -3167,11 +3181,13 @@ Tashana Landray often be more readable to line them up: </p> <CODE_SNIPPET> - ... DoSomething(); // Comment here so the comments line up. DoSomethingElseThatIsLonger(); // Comment here so there are two spaces between // the code and the comment. - ... + { // One space before comment when opening a new scope is allowed, + // thus the comment lines up with the following comments and code. + DoSomethingElse(); // Two spaces before line comments normally. + } </CODE_SNIPPET> </SUBSECTION> <SUBSECTION title="NULL, true/false, 1, 2, 3..."> @@ -3783,10 +3799,9 @@ Tashana Landray const string & str; // Bad - spaces on both sides of & </BAD_CODE_SNIPPET> <p> - You should do this consistently within a single file or - - - so when modifying an existing file, use the style in that + You should do this consistently within a single + file, + so, when modifying an existing file, use the style in that file. </p> </BODY> |