From 48fcffea4c95c0bc4d611f8669c6890267910d37 Mon Sep 17 00:00:00 2001
From: mmentovai
Date: Thu, 4 Sep 2008 18:34:20 +0000
Subject: [PATCH] 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
---
cppguide.xml | 31 +++++++++++++++++++++++--------
objcguide.xml | 28 ++++++++++++++--------------
2 files changed, 37 insertions(+), 22 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 from boost/compressed_pair.hpp
- Pointer Container from boost/ptr_container
except
- ptr_array.hpp
and serialization
+ Pointer Container from boost/ptr_container
except serialization
+
+ Array from boost/array.hpp
+
+
+ The Boost Graph Library (BGL) from boost/graph
except serialization
+
+
+ Property Map from boost/property_map.hpp
+
+ The part of
+
+ Iterator that deals with defining iterators:
+ boost/iterator/iterator_adaptor.hpp
,
+ boost/iterator/iterator_facade.hpp
, and
+ boost/function_output_iterator.hpp
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:
- ...
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.
+ }
@@ -3783,10 +3799,9 @@ Tashana Landray
const string & str; // Bad - spaces on both sides of &
- 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.