Skip to content

Commit

Permalink
Enable list-goto-functions in goto diff
Browse files Browse the repository at this point in the history
  • Loading branch information
peterschrammel committed Jan 12, 2018
1 parent 7e1110c commit e1227ef
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/goto-diff/goto_diff_parse_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,18 @@ int goto_diff_parse_optionst::doit()
if(get_goto_program_ret!=-1)
return get_goto_program_ret;

if(cmdline.isset("show-goto-functions"))
if(
cmdline.isset("show-goto-functions") ||
cmdline.isset("list-goto-functions"))
{
show_goto_functions(goto_model1, get_ui());
show_goto_functions(goto_model2, get_ui());
show_goto_functions(
goto_model1,
ui_message_handler.get_ui(),
cmdline.isset("list-goto-functions"));
show_goto_functions(
goto_model2,
ui_message_handler.get_ui(),
cmdline.isset("list-goto-functions"));
return 0;
}

Expand Down Expand Up @@ -437,13 +445,6 @@ bool goto_diff_parse_optionst::process_goto_program(
show_loop_ids(get_ui(), goto_model);
return true;
}

// show it?
if(cmdline.isset("show-goto-functions"))
{
show_goto_functions(goto_model, get_ui());
return true;
}
}

catch(const char *e)
Expand Down

0 comments on commit e1227ef

Please sign in to comment.