Skip to content

Commit a56d059

Browse files
author
martin
committed
Fix formatting issues in the --help output text
1 parent 818fdf2 commit a56d059

File tree

7 files changed

+21
-17
lines changed

7 files changed

+21
-17
lines changed

src/goto-checker/bmc_util.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ void run_property_decider(
202202
#define HELP_BMC \
203203
" --paths [strategy] explore paths one at a time\n" \
204204
" --show-symex-strategies list strategies for use with --paths\n" \
205-
" --show-goto-symex-steps show which steps symex travels, includes " \
205+
" --show-goto-symex-steps show which steps symex travels, includes\n" \
206206
" diagnostic information\n" \
207207
" --show-points-to-sets show points-to sets for\n" \
208208
" pointer dereference. Requires --json-ui.\n" \
@@ -243,8 +243,7 @@ void run_property_decider(
243243
" --no-self-loops-to-assumptions\n" \
244244
" do not simplify while(1){} to assume(0)\n" \
245245
" --no-pretty-names do not simplify identifiers\n" \
246-
" --symex-complexity-limit N" \
247-
" how complex (N) a path can become before\n" \
246+
" --symex-complexity-limit N how complex (N) a path can become before\n" \
248247
" symex abandons it. Currently uses guard\n" \
249248
" size to calculate complexity. \n" \
250249
" --symex-complexity-failed-child-loops-limit N\n" \

src/goto-diff/goto_diff_parse_options.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ void goto_diff_parse_optionst::help()
329329
"Program instrumentation options:\n"
330330
HELP_GOTO_CHECK
331331
HELP_COVER
332+
"\n"
332333
"Other options:\n"
333334
" --version show version and exit\n"
334335
" --json-ui use JSON-formatted output\n"

src/goto-instrument/cover.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class optionst;
3535
" (this is the default for --cover " \
3636
"assertions)\n" \
3737
" --show-test-suite print test suite for coverage criterion " \
38-
"(requires --cover)"
38+
"(requires --cover)\n"
3939

4040
enum class coverage_criteriont
4141
{

src/goto-instrument/replace_calls.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ class replace_callst
4848
#define OPT_REPLACE_CALLS "(replace-calls):"
4949

5050
#define HELP_REPLACE_CALLS \
51-
" --replace-calls f:g replace calls to f with calls to g\n"
51+
" --replace-calls f:g replace calls to f with calls to g\n"
5252

5353
#endif // CPROVER_GOTO_PROGRAMS_REPLACE_CALLS_H

src/goto-programs/remove_const_function_pointers.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ class remove_const_function_pointerst
109109
#define OPT_REMOVE_CONST_FUNCTION_POINTERS \
110110
"(remove-const-function-pointers)"
111111

112-
#define HELP_REMOVE_CONST_FUNCTION_POINTERS \
113-
" --remove-const-function-pointers Remove function pointers that are constant or constant part of an array\n" // NOLINT(*)
114-
112+
#define HELP_REMOVE_CONST_FUNCTION_POINTERS \
113+
" --remove-const-function-pointers\n" \
114+
" remove function pointers that are constant" \
115+
" or constant part of an array\n"
115116

116117
#endif // CPROVER_GOTO_PROGRAMS_REMOVE_CONST_FUNCTION_POINTERS_H

src/goto-programs/restrict_function_pointers.h

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,18 @@ Author: Diffblue Ltd.
4040
"(" RESTRICT_FUNCTION_POINTER_BY_NAME_OPT "):"
4141

4242
#define HELP_RESTRICT_FUNCTION_POINTER \
43-
"--" RESTRICT_FUNCTION_POINTER_OPT \
43+
" --" RESTRICT_FUNCTION_POINTER_OPT \
4444
" <pointer_name>/<target[,targets]*>\n" \
45-
" restrict a function pointer to a set of possible targets\n" \
46-
" targets must all exist in the symbol table with a matching " \
47-
"type\n" \
48-
" works for globals and function parameters right now\n" \
49-
"--" RESTRICT_FUNCTION_POINTER_FROM_FILE_OPT \
45+
" restrict a function pointer to a set of " \
46+
"possible targets\n" \
47+
" targets must all exist in the symbol table" \
48+
" with a matching type\n" \
49+
" works for globals and function parameters" \
50+
" right now\n" \
51+
" --" RESTRICT_FUNCTION_POINTER_FROM_FILE_OPT \
5052
" <file_name>\n" \
51-
" add function pointer restrictions from file"
53+
" add function pointer restrictions from " \
54+
"file\n"
5255

5356
void parse_function_pointer_restriction_options_from_cmdline(
5457
const cmdlinet &cmdline,

src/json/json_interface.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ void json_interface(cmdlinet &, message_handlert &);
4343
"(json-interface)"
4444

4545
#define HELP_JSON_INTERFACE \
46-
" --json-ui use JSON-formatted output\n" \
47-
" --json-interface bi-directional JSON interface\n"
46+
" --json-ui use JSON-formatted output\n" \
47+
" --json-interface bi-directional JSON interface\n"
4848
// clang-format on
4949

5050
#endif // CPROVER_JSON_JSON_INTERFACE_H

0 commit comments

Comments
 (0)