Skip to content

Commit d80f6b3

Browse files
author
Daniel Kroening
authored
Merge pull request #3324 from tautschnig/vs-shadow-7
Rename shadowing variable line [blocks: #2310]
2 parents c28c59a + 33883e2 commit d80f6b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/util/cout_message.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,12 @@ void gcc_message_handlert::print(
201201
if(in)
202202
{
203203
const auto line_number = std::stoull(id2string(line));
204-
std::string line;
204+
std::string source_line;
205205
for(std::size_t l = 0; l < line_number; l++)
206-
std::getline(in, line);
206+
std::getline(in, source_line);
207207

208208
if(in)
209-
out << ' ' << line << '\n'; // gcc adds a space, clang doesn't
209+
out << ' ' << source_line << '\n'; // gcc adds a space, clang doesn't
210210
}
211211
}
212212

0 commit comments

Comments
 (0)