History log of /src/tests/usr.bin/indent/opt_pcs.c |
Revision | | Date | Author | Comments |
1.18 |
| 16-Jun-2023 |
rillig | indent: fix spacing between postfix operator and left parenthesis
|
1.17 |
| 14-Jun-2023 |
rillig | indent: allow more than 20 nested parentheses or brackets
|
1.16 |
| 18-May-2023 |
rillig | indent: document the funcname token
|
1.15 |
| 15-May-2023 |
rillig | indent: fix type cast in function definition
|
1.14 |
| 15-May-2023 |
rillig | indent: fix spacing between function prototype and attributes
|
1.13 |
| 24-Apr-2022 |
rillig | tests/indent: change directive from '#' to '//'
Using a '//' instead of '#' turns the directives into well-formed C code, resulting in fewer error markers in the editor.
|
1.12 |
| 22-Apr-2022 |
rillig | indent: remove FreeBSD IDs
Most of the IDs were empty anyway.
|
1.11 |
| 25-Nov-2021 |
rillig | tests/indent: remove unnecessary option for testing '-pcs'
Before lexi.c 1.157 from 2021-11-25, the option '-npsl' had been necessary to prevent a wrong line break, as indent wrongly interpreted the function declaration as a function definition, just because the first ')' in the declaration line was not immediately followed by a ',' or ';'.
|
1.10 |
| 25-Nov-2021 |
rillig | indent: fix space after function name for option '-pcs'
|
1.9 |
| 20-Nov-2021 |
rillig | tests/indent: normalize empty lines in tests
|
1.8 |
| 31-Oct-2021 |
rillig | indent: for '-pcs', add blank between function and '('
Before indent-2021.09.30.21.48.12, the blank had always been added, even in '-npcs' mode. Since then, the blank had never been added.
Now, add the blank in '-pcs' mode and omit it in '-npcs' mode.
|
1.7 |
| 31-Oct-2021 |
rillig | tests/indent: test function declaration with '-pcs' and '-npcs'
The conditions in want_blank_before_lparen are not ordered correctly. opt.proc_calls_space should override ')('.
|
1.6 |
| 31-Oct-2021 |
rillig | tests/indent: test indirect function call with '-pcs' and '-npcs'
|
1.5 |
| 24-Oct-2021 |
rillig | tests/indent: test interaction between -pcs and -bs
|
1.4 |
| 24-Oct-2021 |
rillig | tests/indent: add test for sizeof and offsetof with -pcs
|
1.3 |
| 16-Oct-2021 |
rillig | tests/lint: document and extend the tests for options
|
1.2 |
| 16-Oct-2021 |
rillig | tests/indent: remove duplicate data from options tests
|
1.1 |
| 16-Oct-2021 |
rillig | tests/indent: condense tests for bool options
Previously, each bool option such as '-bacc/-nbacc' had 6 test files: input, options, output for the positive and negative option. Splitting this test data into separate files made it harder than necessary to quickly compare the test output from '-bacc' with that of '-nbacc'.
Have a single test for the positive and negative option, allowing several tests to run on the same input with different options.
This commit only contains the rather mechanic changes of concatenating the previous test files and inserting the '#indent' directives, which are documented in t_options.sh. Removing duplicate input sections, as well as other cleanups will follow soon.
No functional change.
|