File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -160,13 +160,16 @@ void goto_analyzer_parse_optionst::get_command_line_options(optionst &options)
160
160
" simplify-slicing" ,
161
161
!(cmdline.isset (" no-simplify-slicing" )));
162
162
}
163
+ // Legacy options
163
164
else if (cmdline.isset (" show-intervals" ))
164
165
{
165
166
// For backwards compatibility
166
167
options.set_option (" show" , true );
167
168
options.set_option (" general-analysis" , true );
168
169
options.set_option (" intervals" , true );
169
170
options.set_option (" domain set" , true );
171
+ log.status () << " --show-intervals is deprecated,"
172
+ << " please use --show --intervals" << messaget::eom;
170
173
}
171
174
else if (cmdline.isset (" show-non-null" ))
172
175
{
@@ -175,6 +178,8 @@ void goto_analyzer_parse_optionst::get_command_line_options(optionst &options)
175
178
options.set_option (" general-analysis" , true );
176
179
options.set_option (" non-null" , true );
177
180
options.set_option (" domain set" , true );
181
+ log.status () << " --show-non-null is deprecated,"
182
+ << " please use --show --non-null" << messaget::eom;
178
183
}
179
184
else if (cmdline.isset (" intervals" ) || cmdline.isset (" non-null" ))
180
185
{
Original file line number Diff line number Diff line change @@ -144,6 +144,9 @@ class optionst;
144
144
" (taint):(show-taint)" \
145
145
" (show-local-may-alias)"
146
146
147
+ #define GOTO_ANALYZER_OPTIONS_LEGACY \
148
+ " (show-intervals)(show-non-null)" \
149
+
147
150
#define GOTO_ANALYSER_OPTIONS \
148
151
OPT_FUNCTIONS \
149
152
OPT_CONFIG_C_CPP \
@@ -159,7 +162,6 @@ class optionst;
159
162
OPT_VALIDATE \
160
163
GOTO_ANALYSER_OPTIONS_TASKS \
161
164
" (no-simplify-slicing)" \
162
- " (show-intervals)(show-non-null)" \
163
165
GOTO_ANALYSER_OPTIONS_AI \
164
166
" (location-sensitive)(concurrent)" \
165
167
GOTO_ANALYSER_OPTIONS_HISTORY \
@@ -168,6 +170,7 @@ class optionst;
168
170
GOTO_ANALYSER_OPTIONS_STORAGE \
169
171
GOTO_ANALYSER_OPTIONS_OUTPUT \
170
172
GOTO_ANALYSER_OPTIONS_SPECIFIC_ANALYSES \
173
+ GOTO_ANALYZER_OPTIONS_LEGACY \
171
174
// clang-format on
172
175
173
176
class goto_analyzer_parse_optionst : public parse_options_baset
You can’t perform that action at this time.
0 commit comments