-
Notifications
You must be signed in to change notification settings - Fork 277
Added transitive closure to change-impact based on dependancy graph #191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -335,9 +335,13 @@ int goto_diff_parse_optionst::doit() | |
return 0; | ||
} | ||
|
||
if(cmdline.isset("change-impact")) | ||
if(cmdline.isset("change-impact") || cmdline.isset("forward-impact") || cmdline.isset("backward-impact")) | ||
{ | ||
change_impact(goto_model1, goto_model2); | ||
impact_modet impact_mode = | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please check the indent. |
||
cmdline.isset("forward-impact") ? | ||
FORWARD : | ||
(cmdline.isset("backward-impact") ? BACKWARD : BOTH); | ||
change_impact(goto_model1, goto_model2, impact_mode, cmdline.isset("demo-output")); | ||
return 0; | ||
} | ||
|
||
|
@@ -536,7 +540,10 @@ void goto_diff_parse_optionst::help() | |
" --show-functions show functions (default)\n" | ||
" --syntactic do syntactic diff (default)\n" | ||
" -u | --unified output unified diff\n" | ||
" --change-impact output unified diff with dependencies\n" | ||
" --change-impact output unified diff with forward and backward dependencies\n" | ||
" --forward-impact output unified diff with forward dependencies\n" | ||
" --backward-impact output unified diff with backward dependencies\n" | ||
" --demo-output output dependencies in demo mode\n" | ||
"\n" | ||
"Other options:\n" | ||
" --version show version and exit\n" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,8 @@ class optionst; | |
"(json-ui)" \ | ||
"(show-goto-functions)" \ | ||
"(verbosity):(version)" \ | ||
"u(unified)(change-impact)" | ||
"u(unified)(change-impact)(forward-impact)(backward-impact)" \ | ||
"(demo-output)" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure "demo-output" is a good choice: command-line options are for eternity, make sure they are almost self-explanatory. |
||
|
||
class goto_diff_parse_optionst: | ||
public parse_options_baset, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies in advance for nit-picking, but to keep the code base clean: lines should, where reasonably possible, be no longer than 70 characters.