Skip to content

Commit f96efb4

Browse files
Change template parameter name to not clash with existing type
1 parent b0cd57b commit f96efb4

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/goto-programs/rebuild_goto_start_function.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
/// function) and symbol table (to replace the _start function symbol) of the
2323
/// program.
2424
/// \param _message_handler: The message handler to report any messages with
25-
template<typename goto_modelt>
26-
rebuild_goto_start_function_baset<goto_modelt>::
25+
template<typename maybe_lazy_goto_modelt>
26+
rebuild_goto_start_function_baset<maybe_lazy_goto_modelt>::
2727
rebuild_goto_start_function_baset(
2828
const cmdlinet &cmdline,
29-
goto_modelt &goto_model,
29+
maybe_lazy_goto_modelt &goto_model,
3030
message_handlert &message_handler):
3131
messaget(message_handler),
3232
cmdline(cmdline),
@@ -42,8 +42,8 @@ rebuild_goto_start_function_baset(
4242
/// called from _start
4343
/// \return Returns true if either the symbol is not found, or something went
4444
/// wrong with generating the start_function. False otherwise.
45-
template<typename goto_modelt>
46-
bool rebuild_goto_start_function_baset<goto_modelt>::operator()()
45+
template<typename maybe_lazy_goto_modelt>
46+
bool rebuild_goto_start_function_baset<maybe_lazy_goto_modelt>::operator()()
4747
{
4848
const irep_idt &mode=get_entry_point_mode();
4949

@@ -70,9 +70,9 @@ bool rebuild_goto_start_function_baset<goto_modelt>::operator()()
7070
/// Find out the mode of the current entry point to determine the mode of the
7171
/// replacement entry point
7272
/// \return A mode string saying which language to use
73-
template<typename goto_modelt>
74-
irep_idt
75-
rebuild_goto_start_function_baset<goto_modelt>::get_entry_point_mode() const
73+
template<typename maybe_lazy_goto_modelt>
74+
irep_idt rebuild_goto_start_function_baset<maybe_lazy_goto_modelt>::
75+
get_entry_point_mode() const
7676
{
7777
const symbolt &current_entry_point=
7878
*goto_model.symbol_table.lookup(goto_functionst::entry_point());
@@ -81,9 +81,9 @@ rebuild_goto_start_function_baset<goto_modelt>::get_entry_point_mode() const
8181

8282
/// Eliminate the existing entry point function symbol and any symbols created
8383
/// in that scope from the symbol table.
84-
template<typename goto_modelt>
85-
void
86-
rebuild_goto_start_function_baset<goto_modelt>::remove_existing_entry_point()
84+
template<typename maybe_lazy_goto_modelt>
85+
void rebuild_goto_start_function_baset<maybe_lazy_goto_modelt>::
86+
remove_existing_entry_point()
8787
{
8888
// Remove the function itself
8989
goto_model.symbol_table.remove(goto_functionst::entry_point());

src/goto-programs/rebuild_goto_start_function.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ class goto_functionst;
2424
#define HELP_FUNCTIONS \
2525
" --function name set main function name\n"
2626

27-
template<typename goto_modelt>
27+
template<typename maybe_lazy_goto_modelt>
2828
class rebuild_goto_start_function_baset: public messaget
2929
{
3030
public:
3131
rebuild_goto_start_function_baset(
3232
const cmdlinet &cmdline,
33-
goto_modelt &goto_model,
33+
maybe_lazy_goto_modelt &goto_model,
3434
message_handlert &message_handler);
3535

3636
bool operator()();
@@ -41,7 +41,7 @@ class rebuild_goto_start_function_baset: public messaget
4141
void remove_existing_entry_point();
4242

4343
const cmdlinet &cmdline;
44-
goto_modelt &goto_model;
44+
maybe_lazy_goto_modelt &goto_model;
4545
};
4646

4747
// NOLINTNEXTLINE(readability/namespace) using required for templates

0 commit comments

Comments
 (0)