Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Commit 52ab721

Browse files
author
Kim Barrett
committedDec 8, 2020
8254733: HotSpot Style Guide should permit using range-based for loops
Reviewed-by: dholmes, pliden, jrose, dcubed, iklam, eosterlund, tschatzl, kvn
1 parent 1d0adbb commit 52ab721

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
 

‎doc/hotspot-style.html

+1
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ <h3 id="additional-permitted-features">Additional Permitted Features</h3>
304304
<li><p>Dynamic initialization and destruction with concurrency (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2660.htm">n2660</a>)</p></li>
305305
<li><p><code>final</code> virtual specifiers for classes and virtual functions (<a href="http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2928.htm">n2928</a>), (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3206.htm">n3206</a>), (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3272.htm">n3272</a>)</p></li>
306306
<li><p>Local and unnamed types as template parameters (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2657.htm">n2657</a>)</p></li>
307+
<li><p>Range-based <code>for</code> loops (<a href="http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2930.html">n2930</a>) (<a href="https://en.cppreference.com/w/cpp/language/range-for">range-for</a>)</p></li>
307308
</ul>
308309
<h3 id="excluded-features">Excluded Features</h3>
309310
<ul>

‎doc/hotspot-style.md

+4
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,10 @@ part of the avoidance of the C++ Standard Library in HotSpot code.
750750
* Local and unnamed types as template parameters
751751
([n2657](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2657.htm))
752752

753+
* Range-based `for` loops
754+
([n2930](http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2930.html))
755+
([range-for](https://en.cppreference.com/w/cpp/language/range-for))
756+
753757
### Excluded Features
754758

755759
* New string and character literals

0 commit comments

Comments
 (0)