summaryrefslogtreecommitdiffstats
path: root/styleguide/c++/c++11.html
diff options
context:
space:
mode:
authordavidben <davidben@chromium.org>2014-10-09 17:15:40 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-10 00:15:59 +0000
commit79aaddd7d044b4d71f7e4330201d737d4c801ab8 (patch)
treead287303df0fc691c41dbd59efbb6778777af868 /styleguide/c++/c++11.html
parent0f8647ec517acc9e80b0529fdb91fbd759ce85c3 (diff)
downloadchromium_src-79aaddd7d044b4d71f7e4330201d737d4c801ab8.zip
chromium_src-79aaddd7d044b4d71f7e4330201d737d4c801ab8.tar.gz
chromium_src-79aaddd7d044b4d71f7e4330201d737d4c801ab8.tar.bz2
c++11: Allow type aliases.
BUG=none Review URL: https://codereview.chromium.org/644833002 Cr-Commit-Position: refs/heads/master@{#299018}
Diffstat (limited to 'styleguide/c++/c++11.html')
-rw-r--r--styleguide/c++/c++11.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/styleguide/c++/c++11.html b/styleguide/c++/c++11.html
index 8cfc013..2bb4540 100644
--- a/styleguide/c++/c++11.html
+++ b/styleguide/c++/c++11.html
@@ -156,6 +156,14 @@ Are Variadic macros nonstandard?</a></td>
<td>Usage should be rare. Use instead of .pump files. <a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/6ItymeMXpMc">Discussion thread</a></td>
</tr>
+<tr>
+<td>Aliases</td>
+<td><code>using <i>new_alias</i> = <i>typename</i></code></td>
+<td>Allow parameterized typedefs</td>
+<td><a href="http://en.cppreference.com/w/cpp/language/type_alias">Type alias (using syntax)</a></td>
+<td>Use instead of typedef, unless the header needs to be compatible with C. <a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/8dOAMzgR4ao">Discussion thread</a></td>
+</tr>
+
</tbody>
</table>
@@ -264,14 +272,6 @@ work in all our compilers yet.</p>
</tr>
<tr>
-<td>Aliases</td>
-<td><code>using <i>new_alias</i> = <i>typename</i></code></td>
-<td>Allow parameterized typedefs</td>
-<td><a href="http://en.cppreference.com/w/cpp/language/type_alias">Type alias (using syntax)</a></td>
-<td><a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/8dOAMzgR4ao">Discussion thread</a></td>
-</tr>
-
-<tr>
<td>Alignment Features</td>
<td>
<code>alignas</code> specifier,