#
1.10 |
|
05-Jun-2023 |
rillig |
indent: don't remove blank line after 'if (expr) {'
|
#
1.9 |
|
02-Jun-2023 |
rillig |
indent: clean up
Only print the 'token' buffer in debug mode if it is interesting, group the blocks in handling of '(' tokens by topic, remove obsolete comment from test.
|
#
1.8 |
|
23-May-2023 |
rillig |
tests/indent: add code snippets found in make and lint1
|
#
1.7 |
|
22-May-2023 |
rillig |
indent: implement suppressing optional blank lines
|
#
1.6 |
|
11-May-2023 |
rillig |
indent: remove buggy code for swapping tokens
It is not the job of an indenter to swap tokens, even if it's only about placing comments elsewhere. The code that swapped the tokens was complicated, buggy and impossible to understand.
In -br (brace right) mode, indent no longer moves a '{' from the beginning of a line to the end of the previous line, as that was handled by the token swapping code as well. This change is unintended, but it will be easier to re-add that now that the code is simpler.
|
Revision tags: netbsd-10-base
|
#
1.5 |
|
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.4 |
|
22-Apr-2022 |
rillig |
indent: remove FreeBSD IDs
Most of the IDs were empty anyway.
|
#
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.
|
#
1.5 |
|
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.4 |
|
22-Apr-2022 |
rillig |
indent: remove FreeBSD IDs
Most of the IDs were empty anyway.
|
#
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.
|
#
1.4 |
|
22-Apr-2022 |
rillig |
indent: remove FreeBSD IDs
Most of the IDs were empty anyway.
|
#
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.
|
#
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.
|