File tree 2 files changed +12
-12
lines changed 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -175,18 +175,6 @@ void function_call_harness_generatort::handle_option(
175
175
p_impl->function_parameters_to_treat_as_cstrings .insert (
176
176
values.begin (), values.end ());
177
177
}
178
- else if (option == COMMON_HARNESS_GENERATOR_FUNCTION_POINTER_CAN_BE_NULL_OPT)
179
- {
180
- std::transform (
181
- values.begin (),
182
- values.end (),
183
- std::inserter (
184
- p_impl->recursive_initialization_config
185
- .potential_null_function_pointers ,
186
- p_impl->recursive_initialization_config .potential_null_function_pointers
187
- .end ()),
188
- [](const std::string &opt) -> irep_idt { return irep_idt{opt}; });
189
- }
190
178
else
191
179
{
192
180
throw invalid_command_line_argument_exceptiont{
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ Author: Diffblue Ltd.
21
21
#include < util/string2int.h>
22
22
23
23
#include < functional>
24
+ #include < iterator>
24
25
25
26
bool recursive_initialization_configt::handle_option (
26
27
const std::string &option,
@@ -74,6 +75,17 @@ bool recursive_initialization_configt::handle_option(
74
75
COMMON_HARNESS_GENERATOR_MIN_ARRAY_SIZE_OPT, values);
75
76
return true ;
76
77
}
78
+ else if (option == COMMON_HARNESS_GENERATOR_FUNCTION_POINTER_CAN_BE_NULL_OPT)
79
+ {
80
+ std::transform (
81
+ values.begin (),
82
+ values.end (),
83
+ std::inserter (
84
+ potential_null_function_pointers,
85
+ potential_null_function_pointers.end ()),
86
+ [](const std::string &opt) -> irep_idt { return irep_idt{opt}; });
87
+ return true ;
88
+ }
77
89
return false ;
78
90
}
79
91
You can’t perform that action at this time.
0 commit comments