summaryrefslogtreecommitdiffstats
path: root/styleguide/c++/c++11.html
diff options
context:
space:
mode:
authorhashimoto <hashimoto@chromium.org>2015-01-22 07:21:41 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-22 15:22:22 +0000
commit42a14e86295b7cc7a77618443a6de28da4182672 (patch)
tree835901ee36c6635917ef2a2c1a0f91d411b34688 /styleguide/c++/c++11.html
parent3f402bc35992cfe01958d6d58d80c2f810434d4c (diff)
downloadchromium_src-42a14e86295b7cc7a77618443a6de28da4182672.zip
chromium_src-42a14e86295b7cc7a77618443a6de28da4182672.tar.gz
chromium_src-42a14e86295b7cc7a77618443a6de28da4182672.tar.bz2
c++11: Allow in-class member initialization
Move this feature to the allowed section. Try using it in timer_unittest.cc R=thakis@chromium.org Review URL: https://codereview.chromium.org/866663002 Cr-Commit-Position: refs/heads/master@{#312621}
Diffstat (limited to 'styleguide/c++/c++11.html')
-rw-r--r--styleguide/c++/c++11.html31
1 files changed, 17 insertions, 14 deletions
diff --git a/styleguide/c++/c++11.html b/styleguide/c++/c++11.html
index 6ca2eb8..d1b2680 100644
--- a/styleguide/c++/c++11.html
+++ b/styleguide/c++/c++11.html
@@ -173,6 +173,23 @@ Local types, types without linkage and unnamed types as template arguments</a></
</tr>
<tr>
+<td>Non-Static Class Member Initializers</td>
+<td>
+<code>
+class C {<br />
+ <i>type</i> <i>var</i> = <i>value</i>;<br/>
+ C() // copy-initializes <i>var</i><br/>
+</code>
+<td>Allows non-static class members to be initialized at their definitions (outside constructors)</td>
+<td><a href="http://en.cppreference.com/w/cpp/language/data_members">
+Non-static data members</a></td>
+<td><a href="https://google-styleguide.googlecode.com/svn/trunk/cppguide.html#Initialization">Google
+Style Guide</a>.
+<a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/zqB-DySA4V0">Discussion thread</a>
+</td>
+</tr>
+
+<tr>
<td>Null Pointer Constant</td>
<td><code>nullptr</code></td>
<td>Declares a type-safe null pointer</td>
@@ -434,20 +451,6 @@ std::exception</a></td>
</tr>
<tr>
-<td>Non-Static Class Member Initializers</td>
-<td>
-<code>
-class C {<br />
- <i>type</i> <i>var</i> = <i>value</i>;<br/>
- C() // copy-initializes <i>var</i><br/>
-</code>
-<td>Allows non-static class members to be initialized at their definitions (outside constructors)</td>
-<td><a href="http://en.cppreference.com/w/cpp/language/data_members">
-Non-static data members</a></td>
-<td><a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/zqB-DySA4V0">Discussion thread</a></td>
-</tr>
-
-<tr>
<td>Union Class Members</td>
<td><code>union <i>name</i> { <i>class</i> <i>var</i>}</code></td>
<td>Allows class type members</td>