Home | History | Annotate | Download | only in indent
History log of /src/tests/usr.bin/indent/opt_ci.c
RevisionDateAuthorComments
 1.11  10-Jun-2023  rillig indent: fix indentation of continuation lines in initializers
 1.10  09-Jun-2023  rillig indent: indent multi-line expressions according to parentheses

This reverts the FreeBSD change from 2004-02-12 that had been imported
on 2019-04-04.
 1.9  18-May-2023  rillig indent: manually wrap overly long lines

No functional change.
 1.8  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.7  24-Apr-2022  rillig tests/indent: normalize amount of empty lines between test cases
 1.6  22-Apr-2022  rillig indent: remove FreeBSD IDs

Most of the IDs were empty anyway.
 1.5  20-Nov-2021  rillig tests/indent: clean up and extend tests
 1.4  20-Nov-2021  rillig tests/indent: normalize empty lines in tests
 1.3  01-Nov-2021  rillig indent: fix missing blank after 'return' (since 2021-10-31)

In indent.c 1.200 from 2021-10-31, the subtypes of identifier tokens
were removed since they were redundant. An unintended side effect was
that a parenthesized expression after 'return' was no longer separated
by a blank.

Before that change, 'return' was tokenized as an lsym_ident with subtype
kw_other, and want_space_before_lparen handled this case in the last
line. After the change, 'return' was treated as an ordinary identifier,
and unless the option '-pcs' (blank after function call) was given, the
blank was removed.

The other keywords that had kw_other are not affected since they do not
expect a '(' afterwards. These keywords are 'break', 'continue', 'goto',
'inline' and 'restrict'.

Curiously, there was not a single test case that covered 'return(expr)'.

While here, remove the trailing ',' from the enum lexer_symbol, which is
not allowed in standard C, it is a GNU extension. Lint doesn't complain
about this since the default LINTFLAGS include '-g' for GCC mode.
 1.2  01-Nov-2021  rillig tests/indent: test option '-ci'

There are quite a few tricky special cases, but as they are all listed
in the manual page, they are not surprising.
 1.1  22-Oct-2021  rillig tests/indent: migrate integer options tests to t_options

RSS XML Feed