Skip to content

Instantly share code, notes, and snippets.

@AMDmi3
Created May 12, 2023 16:03
Show Gist options
  • Save AMDmi3/4868914d319744307bd295f466402ebf to your computer and use it in GitHub Desktop.
Save AMDmi3/4868914d319744307bd295f466402ebf to your computer and use it in GitHub Desktop.
Start testing: May 12 15:06 UTC
----------------------------------------------------------
1/14 Testing: c-sharp
1/14 Test: c-sharp
Command: "/usr/local/bin/python3.9" "run_format_tests.py" "c-sharp" "--executable" "/work/usr/ports/textproc/uncrustify/work/.build/uncrustify" "-d" "--git" "GIT_EXECUTABLE-NOTFOUND" "--result-dir" "/work/usr/ports/textproc/uncrustify/work/.build/tests"
Directory: /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests
"c-sharp" start time: May 12 15:06 UTC
Output:
----------------------------------------------------------
Tests: ['c-sharp']
Processing /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests/c-sharp.test
108 / 108 tests passed
<end of output>
Test time = 28.16 sec
----------------------------------------------------------
Test Passed.
"c-sharp" end time: May 12 15:06 UTC
"c-sharp" time elapsed: 00:00:28
----------------------------------------------------------
2/14 Testing: c
2/14 Test: c
Command: "/usr/local/bin/python3.9" "run_format_tests.py" "c" "--executable" "/work/usr/ports/textproc/uncrustify/work/.build/uncrustify" "-d" "--git" "GIT_EXECUTABLE-NOTFOUND" "--result-dir" "/work/usr/ports/textproc/uncrustify/work/.build/tests"
Directory: /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests
"c" start time: May 12 15:06 UTC
Output:
----------------------------------------------------------
Tests: ['c']
Processing /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests/c.test
431 / 431 tests passed
<end of output>
Test time = 166.95 sec
----------------------------------------------------------
Test Passed.
"c" end time: May 12 15:09 UTC
"c" time elapsed: 00:02:46
----------------------------------------------------------
3/14 Testing: cpp
3/14 Test: cpp
Command: "/usr/local/bin/python3.9" "run_format_tests.py" "cpp" "--executable" "/work/usr/ports/textproc/uncrustify/work/.build/uncrustify" "-d" "--git" "GIT_EXECUTABLE-NOTFOUND" "--result-dir" "/work/usr/ports/textproc/uncrustify/work/.build/tests"
Directory: /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests
"cpp" start time: May 12 15:09 UTC
Output:
----------------------------------------------------------
Tests: ['cpp']
Processing /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests/cpp.test
1001 / 1001 tests passed
<end of output>
Test time = 404.06 sec
----------------------------------------------------------
Test Passed.
"cpp" end time: May 12 15:16 UTC
"cpp" time elapsed: 00:06:44
----------------------------------------------------------
4/14 Testing: d
4/14 Test: d
Command: "/usr/local/bin/python3.9" "run_format_tests.py" "d" "--executable" "/work/usr/ports/textproc/uncrustify/work/.build/uncrustify" "-d" "--git" "GIT_EXECUTABLE-NOTFOUND" "--result-dir" "/work/usr/ports/textproc/uncrustify/work/.build/tests"
Directory: /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests
"d" start time: May 12 15:16 UTC
Output:
----------------------------------------------------------
Tests: ['d']
Processing /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests/d.test
45 / 45 tests passed
<end of output>
Test time = 79.53 sec
----------------------------------------------------------
Test Passed.
"d" end time: May 12 15:17 UTC
"d" time elapsed: 00:01:19
----------------------------------------------------------
5/14 Testing: ecma
5/14 Test: ecma
Command: "/usr/local/bin/python3.9" "run_format_tests.py" "ecma" "--executable" "/work/usr/ports/textproc/uncrustify/work/.build/uncrustify" "-d" "--git" "GIT_EXECUTABLE-NOTFOUND" "--result-dir" "/work/usr/ports/textproc/uncrustify/work/.build/tests"
Directory: /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests
"ecma" start time: May 12 15:17 UTC
Output:
----------------------------------------------------------
Tests: ['ecma']
Processing /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests/ecma.test
1 / 1 tests passed
<end of output>
Test time = 0.22 sec
----------------------------------------------------------
Test Passed.
"ecma" end time: May 12 15:17 UTC
"ecma" time elapsed: 00:00:00
----------------------------------------------------------
6/14 Testing: imported
6/14 Test: imported
Command: "/usr/local/bin/python3.9" "run_format_tests.py" "imported" "--executable" "/work/usr/ports/textproc/uncrustify/work/.build/uncrustify" "-d" "--git" "GIT_EXECUTABLE-NOTFOUND" "--result-dir" "/work/usr/ports/textproc/uncrustify/work/.build/tests"
Directory: /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests
"imported" start time: May 12 15:17 UTC
Output:
----------------------------------------------------------
Tests: ['imported']
Processing /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests/imported.test
0 / 0 tests passed
<end of output>
Test time = 0.20 sec
----------------------------------------------------------
Test Passed.
"imported" end time: May 12 15:17 UTC
"imported" time elapsed: 00:00:00
----------------------------------------------------------
7/14 Testing: java
7/14 Test: java
Command: "/usr/local/bin/python3.9" "run_format_tests.py" "java" "--executable" "/work/usr/ports/textproc/uncrustify/work/.build/uncrustify" "-d" "--git" "GIT_EXECUTABLE-NOTFOUND" "--result-dir" "/work/usr/ports/textproc/uncrustify/work/.build/tests"
Directory: /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests
"java" start time: May 12 15:17 UTC
Output:
----------------------------------------------------------
Tests: ['java']
Processing /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests/java.test
35 / 35 tests passed
<end of output>
Test time = 6.58 sec
----------------------------------------------------------
Test Passed.
"java" end time: May 12 15:17 UTC
"java" time elapsed: 00:00:06
----------------------------------------------------------
8/14 Testing: objective-c
8/14 Test: objective-c
Command: "/usr/local/bin/python3.9" "run_format_tests.py" "objective-c" "--executable" "/work/usr/ports/textproc/uncrustify/work/.build/uncrustify" "-d" "--git" "GIT_EXECUTABLE-NOTFOUND" "--result-dir" "/work/usr/ports/textproc/uncrustify/work/.build/tests"
Directory: /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests
"objective-c" start time: May 12 15:17 UTC
Output:
----------------------------------------------------------
Tests: ['objective-c']
Processing /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests/objective-c.test
160 / 160 tests passed
<end of output>
Test time = 62.92 sec
----------------------------------------------------------
Test Passed.
"objective-c" end time: May 12 15:18 UTC
"objective-c" time elapsed: 00:01:02
----------------------------------------------------------
9/14 Testing: pawn
9/14 Test: pawn
Command: "/usr/local/bin/python3.9" "run_format_tests.py" "pawn" "--executable" "/work/usr/ports/textproc/uncrustify/work/.build/uncrustify" "-d" "--git" "GIT_EXECUTABLE-NOTFOUND" "--result-dir" "/work/usr/ports/textproc/uncrustify/work/.build/tests"
Directory: /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests
"pawn" start time: May 12 15:18 UTC
Output:
----------------------------------------------------------
Tests: ['pawn']
Processing /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests/pawn.test
13 / 13 tests passed
<end of output>
Test time = 3.83 sec
----------------------------------------------------------
Test Passed.
"pawn" end time: May 12 15:18 UTC
"pawn" time elapsed: 00:00:03
----------------------------------------------------------
10/14 Testing: vala
10/14 Test: vala
Command: "/usr/local/bin/python3.9" "run_format_tests.py" "vala" "--executable" "/work/usr/ports/textproc/uncrustify/work/.build/uncrustify" "-d" "--git" "GIT_EXECUTABLE-NOTFOUND" "--result-dir" "/work/usr/ports/textproc/uncrustify/work/.build/tests"
Directory: /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests
"vala" start time: May 12 15:18 UTC
Output:
----------------------------------------------------------
Tests: ['vala']
Processing /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests/vala.test
15 / 15 tests passed
<end of output>
Test time = 2.33 sec
----------------------------------------------------------
Test Passed.
"vala" end time: May 12 15:18 UTC
"vala" time elapsed: 00:00:02
----------------------------------------------------------
11/14 Testing: staging
11/14 Test: staging
Command: "/usr/local/bin/python3.9" "run_format_tests.py" "staging" "--executable" "/work/usr/ports/textproc/uncrustify/work/.build/uncrustify" "-d" "--git" "GIT_EXECUTABLE-NOTFOUND" "--result-dir" "/work/usr/ports/textproc/uncrustify/work/.build/tests"
Directory: /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests
"staging" start time: May 12 15:18 UTC
Output:
----------------------------------------------------------
Tests: ['staging']
Processing /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests/staging.test
2 / 2 tests passed
<end of output>
Test time = 0.38 sec
----------------------------------------------------------
Test Passed.
"staging" end time: May 12 15:18 UTC
"staging" time elapsed: 00:00:00
----------------------------------------------------------
12/14 Testing: sources_format
12/14 Test: sources_format
Command: "/usr/local/bin/python3.9" "run_sources_tests.py" "--executable" "/work/usr/ports/textproc/uncrustify/work/.build/uncrustify" "-d" "--git" "GIT_EXECUTABLE-NOTFOUND" "--result-dir" "/work/usr/ports/textproc/uncrustify/work/.build/tests"
Directory: /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests
"sources_format" start time: May 12 15:18 UTC
Output:
----------------------------------------------------------
187 / 187 tests passed
<end of output>
Test time = 559.34 sec
----------------------------------------------------------
Test Passed.
"sources_format" end time: May 12 15:28 UTC
"sources_format" time elapsed: 00:09:19
----------------------------------------------------------
13/14 Testing: cli_options
13/14 Test: cli_options
Command: "/usr/local/bin/python3.9" "test_cli_options.py" "--config" "Release" "--build" "/work/usr/ports/textproc/uncrustify/work/.build" "--diff" "--test" "/work/usr/ports/textproc/uncrustify/work/.build/tests/cli"
Directory: /work/usr/ports/textproc/uncrustify/work/uncrustify-uncrustify-0.77.0/tests/cli
"cli_options" start time: May 12 15:28 UTC
Output:
----------------------------------------------------------
Uncrustify binary found: /work/usr/ports/textproc/uncrustify/work/.build/uncrustify
************************************
Problem (1) with /work/usr/ports/textproc/uncrustify/work/.build/tests/cli/results/Debug_tracking_space.html
************************************
' <html>'
' <head>'
' <meta http-equiv="content-type" content="text/html; charset=utf-8"/>'
' <title>Uncrustify: where do the Spaces options work</title>'
' </head>'
' <body lang="en-US">'
' <p>'
' </p>'
' <pre>'
' {<a title="REMOVE: 1"><font color="red">M</font></a>'
(' a<a title="sp_assign: 2"><font color="red">M</font></a>=<a title="sp_assign: 3, 86"><font color="red">M</font></a>b<a title="sp_arith: 4, 87, 93"><font color="red">M</font></a>+<a title="sp_arith: 5, 88, 94, 99"><font color="red">M</font></a>111<a title="sp_arith: 6, 89, '
'95, 100, 104"><font color="red">M</font></a>-<a title="sp_arith: 7, 90, 96, 101, 105, 108"><font color="red">M</font></a>55<a title="sp_before_semi: 8, 91, 97, 102, 106, 109, 111"><font color="red">M</font></a>;<a title="REMOVE: 9, 92, 98, 103, 107, 110, 112, 113"><font '
'color="red">M</font></a>')
' }<a title="REMOVE: 10"><font color="red">M</font></a>'
(' template<a title="sp_before_angle: 11"><font color="red">M</font></a>&lt;<a title="sp_inside_angle: 12, 114"><font color="red">M</font></a>typename<a title="ADD from add_space_table: 13, 115, 123"><font color="red">M</font></a>...<a title="sp_ellipsis_parameter_pack: 14, '
'116, 124, 131"><font color="red">M</font></a>A<a title="sp_before_comma: 15, 117, 125, 132, 138"><font color="red">M</font></a>,<a title="sp_after_comma: 16, 118, 126, 133, 139, 144"><font color="red">M</font></a>int<a title="sp_type_ellipsis: 17, 119, 127, 134, 140, 145, '
'149"><font color="red">M</font></a>...<a title="FORCE: 18, 120, 128, 135, 141, 146, 150, 153"><font color="red">M</font></a>B<a title="sp_inside_angle: 19, 121, 129, 136, 142, 147, 151, 154, 156"><font color="red">M</font></a>&gt;<a title="REMOVE: 20, 122, 130, 137, 143, 148, '
'152, 155, 157, 158"><font color="red">M</font></a>')
('- struct<a title="ADD from add_space_table: 21"><font color="red">M</font></a>foo1<a title="sp_after_type: 22, 159"><font color="red">M</font></a>:<a title="ADD from add_space_table: 23, 160, 177"><font color="red">M</font></a>foo1<a title="sp_before_angle: 24, 161, 178, '
'194"><font color="red">M</font></a>&lt;<a title="sp_inside_angle: 25, 162, 179, 195, 210"><font color="red">M</font></a>A<a title="sp_parameter_pack_ellipsis: 26, 163, 180, 196, 211, 225"><font color="red">M</font></a>...<a title="sp_before_comma: 27, 164, 181, 197, 212, 226, '
'239"><font color="red">M</font></a>,<a title="sp_after_comma: 28, 165, 182, 198, 213, 227, 240, 252"><font color="red">M</font></a>(<a title="sp_inside_paren: 29, 166, 183, 199, 214, 228, 241, 253, 264"><font color="red">M</font></a>sizeof<a title="sp_sizeof_ellipsis: 30, '
'167, 184, 200, 215, 229, 242, 254, 265, 275"><font color="red">M</font></a>...<a title="sp_sizeof_ellipsis_paren: 31, 168, 185, 201, 216, 230, 243, 255, 266, 276, 285"><font color="red">M</font></a>(<a title="sp_inside_paren: 32, 169, 186, 202, 217, 231, 244, 256, 267, 277, '
'286, 294"><font color="red">M</font></a>A<a title="sp_inside_paren: 33, 170, 187, 203, 218, 232, 245, 257, 268, 278, 287, 295, 302"><font color="red">M</font></a>)<a title="sp_arith: 34, 171, 188, 204, 219, 233, 246, 258, 269, 279, 288, 296, 303, 309"><font '
'color="red">M</font></a>+<a title="sp_arith: 35, 172, 189, 205, 220, 234, 247, 259, 270, 280, 289, 297, 304, 310, 315"><font color="red">M</font></a>B<a title="sp_inside_paren: 36, 173, 190, 206, 221, 235, 248, 260, 271, 281, 290, 298, 305, 311, 316, 320"><font '
'color="red">M</font></a>)<a title="sp_paren_ellipsis: 37, 174, 191, 207, 222, 236, 249, 261, 272, 282, 291, 299, 306, 312, 317, 321, 324"><font color="red">M</font></a>...<a title="sp_inside_angle: 38, 175, 192, 208, 223, 237, 250, 262, 273, 283, 292, 300, 307, 313, 318, 322, '
'325, 327"><font color="red">M</font></a>&gt;<a title="REMOVE: 39, 176, 193, 209, 224, 238, 251, 263, 274, 284, 293, 301, 308, 314, 319, 323, 326, 328, 329"><font color="red">M</font></a>')
('? '
'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ '
'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n')
('+ struct<a title="ADD from add_space_table: 21"><font color="red">M</font></a>foo1<a title="sp_after_type: 22, 159"><font color="red">M</font></a>:<a title="ADD from add_space_table: 23, 160, 177"><font color="red">M</font></a>foo1<a title="sp_before_angle: 24, 161, 178, '
'194"><font color="red">M</font></a>&lt;<a title="sp_inside_angle: 25, 162, 179, 195, 210"><font color="red">M</font></a>A<a title="sp_parameter_pack_ellipsis: 26, 163, 180, 196, 211, 225"><font color="red">M</font></a>...<a title="sp_before_comma: 27, 164, 181, 197, 212, 226, '
'239"><font color="red">M</font></a>,<a title="sp_after_comma: 28, 165, 182, 198, 213, 227, 240, 252"><font color="red">M</font></a>(<a title="sp_inside_paren: 29, 166, 183, 199, 214, 228, 241, 253, 264"><font color="red">M</font></a>sizeof<a title="sp_sizeof_ellipsis: 30, '
'167, 184, 200, 215, 229, 242, 254, 265, 275"><font color="red">M</font></a>...<a title="sp_sizeof_ellipsis_paren: 31, 168, 185, 201, 216, 230, 243, 255, 266, 276, 285"><font color="red">M</font></a>(<a title="sp_inside_paren: 32, 169, 186, 202, 217, 231, 244, 256, 267, 277, '
'286, 294"><font color="red">M</font></a>A<a title="sp_inside_paren: 33, 170, 187, 203, 218, 232, 245, 257, 268, 278, 287, 295, 302"><font color="red">M</font></a>)<a title="sp_arith: 34, 171, 188, 204, 219, 233, 246, 258, 269, 279, 288, 296, 303, 309"><font '
'color="red">M</font></a>+<a title="sp_arith: 35, 172, 189, 205, 220, 234, 247, 259, 270, 280, 289, 297, 304, 310, 315"><font color="red">M</font></a>B<a title="sp_inside_paren: 36, 173, 190, 206, 221, 235, 248, 260, 271, 281, 290, 298, 305, 311, 316, 320"><font '
'color="red">M</font></a>)<a title="sp_paren_ellipsis: 272, 324, 321, 317, 312, 306, 299, 291, 282, 37, 261, 249, 236, 222, 207, 191, 174"><font color="red">M</font></a>...<a title="sp_inside_angle: 283, 327, 325, 322, 318, 313, 307, 300, 292, 38, 273, 262, 250, 237, 223, 208, '
'192, 175"><font color="red">M</font></a>&gt;<a title="REMOVE: 284, 329, 328, 326, 323, 319, 314, 308, 301, 293, 39, 274, 263, 251, 238, 224, 209, 193, 176"><font color="red">M</font></a>')
('? '
'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ '
'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n')
' {<a title="REMOVE: 40"><font color="red">M</font></a>'
(' foo1<a title="sp_func_class_paren: 41, 64"><font color="red">M</font></a>(<a title="sp_inside_fparens: 42, 65, 330"><font color="red">M</font></a>)<a title="sp_fparen_brace: 43, 66, 331, 333"><font color="red">M</font></a>{<a title="REMOVE: 44, 67, 332, 334, 335"><font '
'color="red">M</font></a>')
(' int<a title="sp_after_type: 45, 68"><font color="red">M</font></a>x<a title="sp_assign: 46, 69, 336"><font color="red">M</font></a>=<a title="sp_assign: 47, 70, 337, 344"><font color="red">M</font></a>sizeof<a title="sp_sizeof_ellipsis: 48, 71, 338, 345, 351"><font '
'color="red">M</font></a>...<a title="sp_sizeof_ellipsis_paren: 49, 72, 339, 346, 352, 357"><font color="red">M</font></a>(<a title="sp_inside_paren: 50, 73, 340, 347, 353, 358, 362"><font color="red">M</font></a>A<a title="sp_inside_paren: 51, 74, 341, 348, 354, 359, 363, '
'366"><font color="red">M</font></a>)<a title="sp_before_semi: 52, 75, 342, 349, 355, 360, 364, 367, 369"><font color="red">M</font></a>;<a title="REMOVE: 53, 76, 343, 350, 356, 361, 365, 368, 370, 371"><font color="red">M</font></a>')
(' bool<a title="sp_after_type: 54, 77"><font color="red">M</font></a>b<a title="sp_assign: 55, 78, 372"><font color="red">M</font></a>=<a title="sp_assign: 56, 79, 373, 378"><font color="red">M</font></a>x<a title="sp_compare: 57, 80, 374, 379, 383"><font '
'color="red">M</font></a>><a title="sp_compare: 58, 81, 375, 380, 384, 387"><font color="red">M</font></a>1<a title="sp_before_semi: 59, 82, 376, 381, 385, 388, 390"><font color="red">M</font></a>;<a title="REMOVE: 60, 83, 377, 382, 386, 389, 391, 392"><font '
'color="red">M</font></a>')
' }<a title="REMOVE: 61, 84"><font color="red">M</font></a>'
' }<a title="sp_before_semi: 62"><font color="red">M</font></a>;<a title="REMOVE: 63, 393"><font color="red">M</font></a>'
' </pre>'
' </body>'
' </html>'
some problem(s) are still present
<end of output>
Test time = 0.50 sec
----------------------------------------------------------
Test Failed.
"cli_options" end time: May 12 15:28 UTC
"cli_options" time elapsed: 00:00:00
----------------------------------------------------------
14/14 Testing: sanity
14/14 Test: sanity
Command: "/work/usr/ports/textproc/uncrustify/work/.build/uncrustify" "--help"
Directory: /work/usr/ports/textproc/uncrustify/work/.build/tests
"sanity" start time: May 12 15:28 UTC
Output:
----------------------------------------------------------
Usage:
uncrustify [options] [files ...]
If no input files are specified, the input is read from stdin
If reading from stdin, you should specify the language using -l
or specify a filename using --assume for automatic language detection.
If -F is used or files are specified on the command line,
the output filename is 'prefix/filename' + suffix
When reading from stdin or doing a single file via the '-f' option,
the output is dumped to stdout, unless redirected with -o FILE.
Errors are always dumped to stderr
The '-f' and '-o' options may not be used with '-F' or '--replace'.
The '--prefix' and '--suffix' options may not be used with '--replace'.
Basic Options:
-c CFG : Use the config file CFG, or defaults if CFG is set to '-'.
-f FILE : Process the single file FILE (output to stdout, use with -o).
-o FILE : Redirect stdout to FILE.
-F FILE : Read files to process from FILE, one filename per line (- is stdin).
--check : Do not output the new text, instead verify that nothing changes when
the file(s) are processed.
The status of every file is printed to stderr.
The exit code is EXIT_SUCCESS if there were no changes, EXIT_FAILURE otherwise.
files : Files to process (can be combined with -F).
--suffix SFX : Append SFX to the output filename. The default is '.uncrustify'
--prefix PFX : Prepend PFX to the output filename path.
--replace : Replace source files (creates a backup).
--no-backup : Do not create backup and md5 files. Useful if files are under source control.
--if-changed : Write to stdout (or create output FILE) only if a change was detected.
--mtime : Preserve mtime on replaced files.
-l : Language override: C, CPP, D, CS, JAVA, PAWN, OC, OC+, VALA.
-t : Load a file with types (usually not needed).
-q : Quiet mode - no output on stderr (-L will override).
--frag : Code fragment, assume the first line is indented correctly.
--assume FN : Uses the filename FN for automatic language detection if reading
from stdin unless -l is specified.
Config/Help Options:
-h -? --help --usage : Print this message and exit.
--version : Print the version and exit.
--count-options : Print the number of available options and exit.
--show-config : Print out option documentation and exit.
--update-config : Output a new config file. Use with -o FILE.
--update-config-with-doc : Output a new config file. Use with -o FILE.
--universalindent : Output a config file for Universal Indent GUI.
--detect : Detects the config from a source file. Use with '-f FILE'.
Detection is fairly limited.
--set <option>=<value> : Sets a new value to a config option.
Debug Options:
-p FILE : Dump debug info into FILE, or to stdout if FILE is set to '-'.
Must be used in combination with '-f FILE'
-ds FILE : Dump parsing info at various moments of the formatting process.
--dump-steps FILE This creates a series of files named 'FILE_nnn.log', each
corresponding to a formatting step in uncrustify.
The file 'FILE_000.log' lists the formatting options in use.
Must be used in combination with '-f FILE'
-L SEV : Set the log severity (see log_levels.h; note 'A' = 'all')
-s : Show the log severity in the logs.
--decode : Decode remaining args (chunk flags) and exit.
--tracking_space FILE : Prepare space tracking information for debugging.
--tracking_nl FILE : Prepare newline tracking information for debugging.
Cannot be used with the -o option'
Usage Examples
cat foo.d | uncrustify -q -c my.cfg -l d
uncrustify -c my.cfg -f foo.d
uncrustify -c my.cfg -f foo.d -L0-2,20-23,51
uncrustify -c my.cfg -f foo.d -o foo.d
uncrustify -c my.cfg -f foo.d -o foo.d -ds dump
uncrustify -c my.cfg foo.d
uncrustify -c my.cfg --replace foo.d
uncrustify -c my.cfg --no-backup foo.d
uncrustify -c my.cfg --prefix=out -F files.txt
Note: Use comments containing ' *INDENT-OFF*' and ' *INDENT-ON*' to disable
processing of parts of the source file (these can be overridden with
enable_processing_cmt and disable_processing_cmt).
There are currently 837 options and minimal documentation.
Try UniversalIndentGUI and good luck.
<end of output>
Test time = 0.01 sec
----------------------------------------------------------
Test Passed.
"sanity" end time: May 12 15:28 UTC
"sanity" time elapsed: 00:00:00
----------------------------------------------------------
End testing: May 12 15:28 UTC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment