mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Use C++11 for loops, from clang-migrate. No functional change intended
This commit is contained in:
+2
-2
@@ -1549,8 +1549,8 @@ int V3PreProcImp::getFinalToken(string& buf) {
|
||||
}
|
||||
}
|
||||
// Track newlines in prep for next token
|
||||
for (string::iterator cp = buf.begin(); cp != buf.end(); ++cp) {
|
||||
if (*cp == '\n') {
|
||||
for (char& c : buf) {
|
||||
if (c == '\n') {
|
||||
m_finAtBol = true;
|
||||
m_finFilelinep->linenoInc();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user