File tree Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Expand file tree Collapse file tree 2 files changed +11
-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 @@ -74,6 +74,17 @@ bool recursive_initialization_configt::handle_option(
74
74
COMMON_HARNESS_GENERATOR_MIN_ARRAY_SIZE_OPT, values);
75
75
return true ;
76
76
}
77
+ else if (option == COMMON_HARNESS_GENERATOR_FUNCTION_POINTER_CAN_BE_NULL_OPT)
78
+ {
79
+ std::transform (
80
+ values.begin (),
81
+ values.end (),
82
+ std::inserter (
83
+ potential_null_function_pointers,
84
+ potential_null_function_pointers.end ()),
85
+ [](const std::string &opt) -> irep_idt { return irep_idt{opt}; });
86
+ return true ;
87
+ }
77
88
return false ;
78
89
}
79
90
You can’t perform that action at this time.
0 commit comments