Description
Convert the more verbose syntax:
for (vmIntrinsicsIterator it = vmIntrinsicsRange.begin(); it != vmIntrinsicsRange.end(); ++it) {
vmIntrinsicID index = *it;
nt[as_int(index)] = string;
}
to
for (vmIntrinsicID index : EnumRange<vmIntrinsicID>{}) {
nt[as_int(index)] = string;
}
for (vmIntrinsicsIterator it = vmIntrinsicsRange.begin(); it != vmIntrinsicsRange.end(); ++it) {
vmIntrinsicID index = *it;
nt[as_int(index)] = string;
}
to
for (vmIntrinsicID index : EnumRange<vmIntrinsicID>{}) {
nt[as_int(index)] = string;
}
Attachments
Issue Links
- relates to
-
JDK-8253402 Convert vmSymbols::SID to enum class
-
- Resolved
-
-
JDK-8254733 HotSpot Style Guide should permit using range-based for loops
-
- Resolved
-
-
JDK-8257466 Improve enum iteration
-
- Resolved
-
-
JDK-8258075 Use auto variable declarations for enum iteration
-
- Resolved
-
(1 links to)