mirror of
https://github.com/verilator/verilator.git
synced 2026-09-03 16:28:53 +02:00
Use C++11 for loops, from clang-migrate. No functional change intended
This commit is contained in:
+4
-4
@@ -188,15 +188,15 @@ private:
|
||||
const LinenoSet& lines = m_handleLines[state.m_handle];
|
||||
int first = 0;
|
||||
int last = 0;
|
||||
for (LinenoSet::iterator it = lines.begin(); it != lines.end(); ++it) {
|
||||
for (int linen : lines) {
|
||||
if (!first) {
|
||||
first = last = *it;
|
||||
} else if (*it == last + 1) {
|
||||
first = last = linen;
|
||||
} else if (linen == last + 1) {
|
||||
++last;
|
||||
} else {
|
||||
if (!out.empty()) out += ",";
|
||||
out += linesFirstLast(first, last);
|
||||
first = last = *it;
|
||||
first = last = linen;
|
||||
}
|
||||
}
|
||||
if (first) {
|
||||
|
||||
Reference in New Issue
Block a user