@@ -79,9 +79,10 @@ class remove_exceptionst
79
79
typedef std::vector<std::pair<
80
80
irep_idt, goto_programt::targett>> catch_handlerst;
81
81
typedef std::vector<catch_handlerst> stack_catcht;
82
- typedef std::function<bool (const irep_idt &)> function_may_throwt;
83
82
84
83
public:
84
+ typedef std::function<bool (const irep_idt &)> function_may_throwt;
85
+
85
86
explicit remove_exceptionst (
86
87
symbol_table_baset &_symbol_table,
87
88
function_may_throwt _function_may_throw,
@@ -570,10 +571,10 @@ void remove_exceptions(
570
571
const namespacet ns (symbol_table);
571
572
std::map<irep_idt, std::set<irep_idt>> exceptions_map;
572
573
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
+ };
577
578
remove_exceptionst remove_exceptions (
578
579
symbol_table,
579
580
function_may_throw,
@@ -599,7 +600,8 @@ void remove_exceptions(
599
600
symbol_table_baset &symbol_table,
600
601
remove_exceptions_typest type)
601
602
{
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 ; };
603
605
604
606
remove_exceptionst remove_exceptions (
605
607
symbol_table,
0 commit comments