diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-05-03 13:42:47 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-05-15 10:27:51 +0000 |
commit | 8c5c43c7b138c9b4b0bf56d946e61d3bbc111bec (patch) | |
tree | d29d987c4d7b173cf853279b79a51598f104b403 /chromium/styleguide | |
parent | 830c9e163d31a9180fadca926b3e1d7dfffb5021 (diff) | |
download | qtwebengine-chromium-8c5c43c7b138c9b4b0bf56d946e61d3bbc111bec.tar.gz |
BASELINE: Update Chromium to 66.0.3359.156
Change-Id: I0c9831ad39911a086b6377b16f995ad75a51e441
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'chromium/styleguide')
-rw-r--r-- | chromium/styleguide/c++/c++11.html | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/chromium/styleguide/c++/c++11.html b/chromium/styleguide/c++/c++11.html index 6f8ed9518d4..84b2e0d06a1 100644 --- a/chromium/styleguide/c++/c++11.html +++ b/chromium/styleguide/c++/c++11.html @@ -377,14 +377,6 @@ template <typename T><br/>void Function(T&& t) { ... }</code></td> </tr> <tr> -<td>Number literal separators</td> -<td><code>float f = 1'000'000.000'1;</code></td> -<td><code>'</code>s anywhere in int or float literals are ignored</td> -<td><a href="http://en.cppreference.com/w/cpp/language/integer_literal">Integer literals</a>, <a href="http://en.cppreference.com/w/cpp/language/floating_literal">Floating point literals</a></td> -<td><a href="https://groups.google.com/a/chromium.org/d/topic/cxx/exS1aGs1wes/discussion">Discussion thread</a></td> -</tr> - -<tr> <td>Aggregate member initialization</td> <td><code>struct Point { int x, y, z = 0; };<br>Point p = {2, 3};</code></td> <td>Allows classes with default member initializers to be initialized with aggregate initialization, optionally omitting data members with such initializers.</td> @@ -393,6 +385,22 @@ template <typename T><br/>void Function(T&& t) { ... }</code></td> </tr> <tr> +<td>Binary literals</td> +<td><code>int i = 0b1001;</code></td> +<td>Allows defining literals in base two.</td> +<td><a href="http://en.cppreference.com/w/cpp/language/integer_literal">Integer literals</a></td> +<td><a href="https://groups.google.com/a/chromium.org/d/topic/cxx/zsGhgaKLmIk/discussion">Discussion thread</a></td> +</tr> + +<tr> +<td>Number literal separators</td> +<td><code>float f = 1'000'000.000'1;</code></td> +<td><code>'</code>s anywhere in int or float literals are ignored</td> +<td><a href="http://en.cppreference.com/w/cpp/language/integer_literal">Integer literals</a>, <a href="http://en.cppreference.com/w/cpp/language/floating_literal">Floating point literals</a></td> +<td><a href="https://groups.google.com/a/chromium.org/d/topic/cxx/exS1aGs1wes/discussion">Discussion thread</a></td> +</tr> + +<tr> <td>Relaxed constant expressions</td> <td><code>constexpr int Factorial(int n) {<br> int result = 1;<br> while (n > 0)<br> result *= n--;<br> return result;<br>}</code></td> <td>Allows use of more declarations, conditional statements and loops inside <code>constexpr</code> functions.</td> @@ -977,15 +985,6 @@ something, remove all callers and remove the function instead.</td> </tr> <tr> -<td>Binary literals</td> -<td><code>int i = 0b1001;</code></td> -<td>Allows defining literals in base two.</td> -<td><a href="http://en.cppreference.com/w/cpp/language/integer_literal">Integer literals</a></td> -<td>Might confuse syntax highlighting in editors. No standard library support -for printing or reading in this format. Still seems useful in minor ways.</td> -</tr> - -<tr> <td><code>decltype(auto)</code> variable declarations</td> <td><code>decltype(auto) x = 42;</code></td> <td>Allows deducing the type of a variable using <code>decltype</code> rules.</td> |