@@ -79,9 +79,10 @@ class remove_exceptionst
7979 typedef std::vector<std::pair<
8080 irep_idt, goto_programt::targett>> catch_handlerst;
8181 typedef std::vector<catch_handlerst> stack_catcht;
82- typedef std::function<bool (const irep_idt &)> function_may_throwt;
8382
8483public:
84+ typedef std::function<bool (const irep_idt &)> function_may_throwt;
85+
8586 explicit remove_exceptionst (
8687 symbol_table_baset &_symbol_table,
8788 function_may_throwt _function_may_throw,
@@ -570,10 +571,10 @@ void remove_exceptions(
570571 const namespacet ns (symbol_table);
571572 std::map<irep_idt, std::set<irep_idt>> exceptions_map;
572573 uncaught_exceptions (goto_functions, ns, exceptions_map);
573- // NOLINTNEXTLINE
574- auto function_may_throw = [&exceptions_map](const irep_idt &id) {
575- return !exceptions_map[id].empty ();
576- };
574+ remove_exceptionst::function_may_throwt function_may_throw =
575+ [&exceptions_map](const irep_idt &id) { // NOLINT(whitespace/braces)
576+ return !exceptions_map[id].empty ();
577+ };
577578 remove_exceptionst remove_exceptions (
578579 symbol_table,
579580 function_may_throw,
@@ -599,7 +600,8 @@ void remove_exceptions(
599600 symbol_table_baset &symbol_table,
600601 remove_exceptions_typest type)
601602{
602- auto any_function_may_throw = [](const irep_idt &id) { return true ; };
603+ remove_exceptionst::function_may_throwt any_function_may_throw =
604+ [](const irep_idt &id) { return true ; };
603605
604606 remove_exceptionst remove_exceptions (
605607 symbol_table,
0 commit comments