Skip to content

Commit

Permalink
Remove-exceptions: make lambda types explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
smowton committed Mar 23, 2018
1 parent 356a96c commit 299a5e2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/goto-programs/remove_exceptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -570,10 +570,10 @@ void remove_exceptions(
const namespacet ns(symbol_table);
std::map<irep_idt, std::set<irep_idt>> exceptions_map;
uncaught_exceptions(goto_functions, ns, exceptions_map);
// NOLINTNEXTLINE
auto function_may_throw = [&exceptions_map](const irep_idt &id) {
return !exceptions_map[id].empty();
};
function_may_throwt function_may_throw =
[&exceptions_map](const irep_idt &id) { // NOLINT(*)
return !exceptions_map[id].empty();
};
remove_exceptionst remove_exceptions(
symbol_table,
function_may_throw,
Expand All @@ -599,7 +599,8 @@ void remove_exceptions(
symbol_table_baset &symbol_table,
remove_exceptions_typest type)
{
auto any_function_may_throw = [](const irep_idt &id) { return true; };
function_may_throwt any_function_may_throw =
[](const irep_idt &id) { return true; };

remove_exceptionst remove_exceptions(
symbol_table,
Expand Down

0 comments on commit 299a5e2

Please sign in to comment.