Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: styleguide/c++/c++11.html

Issue 609963004: Move explicit conversion operators to the banned section. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Really rebase Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright 2014 The Chromium Authors. All rights reserved. 3 Copyright 2014 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 <html> 7 <html>
8 <head> 8 <head>
9 <meta charset="utf-8"> 9 <meta charset="utf-8">
10 <link rel="stylesheet" href="c++11.css"> 10 <link rel="stylesheet" href="c++11.css">
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 <th style='width:240px;'>Description</th> 178 <th style='width:240px;'>Description</th>
179 <th style='width:240px;'>Documentation Link</th> 179 <th style='width:240px;'>Documentation Link</th>
180 <th style='width:240px;'>Notes</th> 180 <th style='width:240px;'>Notes</th>
181 </tr> 181 </tr>
182 182
183 <tr> 183 <tr>
184 <td>Constant Expressions</td> 184 <td>Constant Expressions</td>
185 <td><code>constexpr</code></td> 185 <td><code>constexpr</code></td>
186 <td>Compile-time constant expressions</td> 186 <td>Compile-time constant expressions</td>
187 <td>TODO: documentation link</td> 187 <td>TODO: documentation link</td>
188 <td>Doesn't work in MSVS2013. Reevalute once it does.<a 188 <td>Doesn't work in MSVS2013. Reevalute once it does. <a
189 href="https://google-styleguide.googlecode.com/svn/trunk/cppguide.html#constexpr ">Google 189 href="https://google-styleguide.googlecode.com/svn/trunk/cppguide.html#constexpr ">Google
190 Style Guide on <code>constexpr</code></a></td> 190 Style Guide on <code>constexpr</code></a></td>
191 </tr> 191 </tr>
192 192
193 <tr> 193 <tr>
194 <td>Explicit Conversion Operators</td>
195 <td><code>explicit operator <i>type</i>() {
196 <br />&nbsp;&nbsp;// code<br /> }</code></td>
197 <td>Allows conversion operators that cannot be implicitly invoked</td>
198 <td><a href="http://en.cppreference.com/w/cpp/language/explicit">
199 explicit specifier</a></td>
200 <td><a href="https://connect.microsoft.com/VisualStudio/feedback/details/811334/ bug-in-vs-2013-support-for-explicit-conversion-operators">Doesn't work in MSVS20 13</a>. Reevaluate once it does. <a href="https://groups.google.com/a/chromium.o rg/d/msg/chromium-dev/zGF1SrQ-1HQ/BAiC12vwPeEJ">Discussion thread</a></td>
201 </tr>
202
203 <tr>
194 <td>Function Local Variable</td> 204 <td>Function Local Variable</td>
195 <td><code>__func__</code></td> 205 <td><code>__func__</code></td>
196 <td>Provides a local variable of the name of the enclosing 206 <td>Provides a local variable of the name of the enclosing
197 function for logging purposes</td> 207 function for logging purposes</td>
198 <td><a href="http://www.informit.com/guides/content.aspx?g=cplusplus&amp;seqNum= 338"> 208 <td><a href="http://www.informit.com/guides/content.aspx?g=cplusplus&amp;seqNum= 338">
199 The __func__ Predeclared Identifier is Coming to C++</a></td> 209 The __func__ Predeclared Identifier is Coming to C++</a></td>
200 <td>Doesn't work in MSVS2013. Reevaluate once it does. <a href="https://groups.g oogle.com/a/chromium.org/forum/#!topic/chromium-dev/ojGfcgSDzHM">Discussion thre ad</a></td> 210 <td>Doesn't work in MSVS2013. Reevaluate once it does. <a href="https://groups.g oogle.com/a/chromium.org/forum/#!topic/chromium-dev/ojGfcgSDzHM">Discussion thre ad</a></td>
201 </tr> 211 </tr>
202 212
203 <tr> 213 <tr>
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 <code>current_exception()</code>, <code>rethrow_exception</code>, 349 <code>current_exception()</code>, <code>rethrow_exception</code>,
340 and <code>nested_exception</code></td> 350 and <code>nested_exception</code></td>
341 <td>Enhancements to exception throwing and handling</td> 351 <td>Enhancements to exception throwing and handling</td>
342 <td><a href="http://en.cppreference.com/w/cpp/error/exception"> 352 <td><a href="http://en.cppreference.com/w/cpp/error/exception">
343 std::exception</a></td> 353 std::exception</a></td>
344 <td>Exceptions are banned by the 354 <td>Exceptions are banned by the
345 <a href="https://google-styleguide.googlecode.com/svn/trunk/cppguide.html#Except ions"> C++ Style Guide</a>. <a href="https://groups.google.com/a/chromium.org/fo rum/#!topic/chromium-dev/8i4tMqNpHhg">Discussion thread</a></td> 355 <a href="https://google-styleguide.googlecode.com/svn/trunk/cppguide.html#Except ions"> C++ Style Guide</a>. <a href="https://groups.google.com/a/chromium.org/fo rum/#!topic/chromium-dev/8i4tMqNpHhg">Discussion thread</a></td>
346 </tr> 356 </tr>
347 357
348 <tr> 358 <tr>
349 <td>Explicit Conversion Operators</td>
350 <td><code>explicit operator <i>type</i>() {
351 <br />&nbsp;&nbsp;// code<br /> }</code></td>
352 <td>Allows conversion operators that cannot be implicitly invoked</td>
353 <td><a href="http://en.cppreference.com/w/cpp/language/explicit">
354 explicit specifier</a></td>
355 <td></td>
356 </tr>
357
358 <tr>
359 <td>Function Suppression</td> 359 <td>Function Suppression</td>
360 <td><code><i>Function</i>(<i>arguments</i>) = delete;</code></td> 360 <td><code><i>Function</i>(<i>arguments</i>) = delete;</code></td>
361 <td>Suppresses the implementation of a function, especially a 361 <td>Suppresses the implementation of a function, especially a
362 synthetic function such as a copy constructor</td> 362 synthetic function such as a copy constructor</td>
363 <td>TODO: documentation link</td> 363 <td>TODO: documentation link</td>
364 <td><a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev /i1o7-RNRnMs">Discussion thread</a></td> 364 <td><a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev /i1o7-RNRnMs">Discussion thread</a></td>
365 </tr> 365 </tr>
366 366
367 <tr> 367 <tr>
368 <td>(Uniform) Initialization Syntax</td> 368 <td>(Uniform) Initialization Syntax</td>
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 </tr> 941 </tr>
942 942
943 </tbody> 943 </tbody>
944 </table> 944 </table>
945 945
946 </details> 946 </details>
947 947
948 </div> 948 </div>
949 </body> 949 </body>
950 </html> 950 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698