Skip to content

Commit 00b46e9

Browse files
author
Daniel Kroening
authored
Merge pull request #3684 from tautschnig/vs-shadow-unit
Avoid shadowing in directory unit/ [blocks: #2310]
2 parents b326498 + 162220d commit 00b46e9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

unit/path_strategies.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,9 @@ void _check_with_strategy(
377377
ret = cbmc_parse_optionst::get_goto_program(gm, opts, cmdline, log, mh);
378378
REQUIRE(ret == -1);
379379

380-
solver_factoryt solvers(opts, gm.get_symbol_table(), mh, false);
381-
std::unique_ptr<solver_factoryt::solvert> cbmc_solver = solvers.get_solver();
380+
solver_factoryt initial_solvers(opts, gm.get_symbol_table(), mh, false);
381+
std::unique_ptr<solver_factoryt::solvert> cbmc_solver =
382+
initial_solvers.get_solver();
382383
prop_convt &initial_pc = cbmc_solver->prop_conv();
383384
std::function<bool(void)> callback = []() { return false; };
384385

unit/util/range.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ SCENARIO("range tests", "[core][util][range]")
1919
list.emplace_back("abc");
2020
list.emplace_back("cdef");
2121
list.emplace_back("acdef");
22-
auto range = make_range(list);
23-
std::size_t total_length = 0;
2422
THEN("Use range-for to compute the total length")
2523
{
24+
auto range = make_range(list);
25+
std::size_t total_length = 0;
2626
for(const auto &s : range)
2727
total_length += s.length();
2828
REQUIRE(total_length == 12);

0 commit comments

Comments
 (0)