diff options
author | mdempsky <mdempsky@chromium.org> | 2014-10-20 10:31:27 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-20 17:32:15 +0000 |
commit | 4f2d41011677efe8bae6b1139a49baea5ce15bf3 (patch) | |
tree | ad5ecaf4177ab46e775cf29e1ad537e3d7f66340 /styleguide/c++ | |
parent | 0eae344c5c51d5f2375f0ff28793ceba62dd2cde (diff) | |
download | chromium_src-4f2d41011677efe8bae6b1139a49baea5ce15bf3.zip chromium_src-4f2d41011677efe8bae6b1139a49baea5ce15bf3.tar.gz chromium_src-4f2d41011677efe8bae6b1139a49baea5ce15bf3.tar.bz2 |
styleguide: Allow C++11 "enum class"
Review URL: https://codereview.chromium.org/667483003
Cr-Commit-Position: refs/heads/master@{#300291}
Diffstat (limited to 'styleguide/c++')
-rw-r--r-- | styleguide/c++/c++11.html | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/styleguide/c++/c++11.html b/styleguide/c++/c++11.html index d579de0..1cbe001 100644 --- a/styleguide/c++/c++11.html +++ b/styleguide/c++/c++11.html @@ -84,6 +84,18 @@ Style Guide on <code>auto</code></a>. <a href="https://groups.google.com/a/chrom </tr> <tr> +<td>Enumerated Type Classes</td> +<td><code>enum class <i>classname</i></code></td> +<td>Provide enums as full classes, with no implicit +conversion to booleans or integers</td> +<td><a href="http://stackoverflow.com/questions/6936030/do-we-really-need-enum-class-in-c11"> +enum-class</a></td> +<td>Enum classes are still enums and follow enum naming rules +(which means SHOUTY_CASE in the <a href="http://www.chromium.org/developers/coding-style#Naming">current style guide</a>). +<a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/Q5WmkAImanc">Discussion thread</a></td> +</tr> + +<tr> <td>Final Specifier</td> <td><code>final</code></td> <td> Indicates that a class or function is final and cannot be overridden</td> @@ -334,16 +346,6 @@ Introduction to the C++11 feature: delegating constructors</a></td> </tr> <tr> -<td>Enumerated Type Classes</td> -<td><code>enum class <i>classname</i></code></td> -<td>Provide enums as full classes, with no implicit -conversion to booleans or integers</td> -<td><a href="http://stackoverflow.com/questions/6936030/do-we-really-need-enum-class-in-c11"> -enum-class</a></td> -<td><a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/Q5WmkAImanc">Discussion thread</a></td> -</tr> - -<tr> <td>Exception Features</td> <td><code>noexcept</code>, <code>exception_ptr</code>, <code>current_exception()</code>, <code>rethrow_exception</code>, |