Home | History | Annotate | Download | only in indent
History log of /src/tests/usr.bin/indent/opt_bl_br.c
RevisionDateAuthorComments
 1.10  03-Jan-2025  rillig indent: fix line breaks in else-if sequences

The flag ps.want_newline did not adequately model the conditions under
which a line break should be inserted, thus the redesign.

A welcome side effect is that in statements like 'if (cond);', the
semicolon is now placed on a separate line, thus becoming more visible.
 1.9  21-May-2023  rillig branches: 1.9.2;
tests/indent: fix outdated or wrong comments
 1.8  11-May-2023  rillig indent: add debug output for tracking comments and braces
 1.7  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.
 1.6  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.5  22-Apr-2022  rillig indent: remove FreeBSD IDs

Most of the IDs were empty anyway.
 1.4  20-Nov-2021  rillig indent: clean up lint annotation and tests
 1.3  19-Nov-2021  rillig tests/indent: refine and extend tests
 1.2  07-Nov-2021  rillig indent: fix handling of C99 comments after 'if (expr)'
 1.1  22-Oct-2021  rillig tests/indent: migrate integer options tests to t_options
 1.9.2.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed