The NetBSD Project

CVS log for src/tests/usr.bin/indent/opt_ci.c

[BACK] Up to [cvs.NetBSD.org] / src / tests / usr.bin / indent

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.8 / (download) - annotate - [select for diffs], Sun Apr 24 09:04:12 2022 UTC (9 months, 1 week ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.7: +42 -42 lines
Diff to previous 1.7 (colored)

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.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Apr 24 08:52:44 2022 UTC (9 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.6: +7 -1 lines
Diff to previous 1.6 (colored)

tests/indent: normalize amount of empty lines between test cases

Revision 1.6 / (download) - annotate - [select for diffs], Fri Apr 22 21:21:20 2022 UTC (9 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.5: +1 -2 lines
Diff to previous 1.5 (colored)

indent: remove FreeBSD IDs

Most of the IDs were empty anyway.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Nov 20 16:54:17 2021 UTC (14 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.4: +41 -1 lines
Diff to previous 1.4 (colored)

tests/indent: clean up and extend tests

Revision 1.4 / (download) - annotate - [select for diffs], Sat Nov 20 11:13:18 2021 UTC (14 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

tests/indent: normalize empty lines in tests

Revision 1.3 / (download) - annotate - [select for diffs], Mon Nov 1 23:44:08 2021 UTC (15 months ago) by rillig
Branch: MAIN
Changes since 1.2: +12 -12 lines
Diff to previous 1.2 (colored)

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.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Nov 1 22:48:56 2021 UTC (15 months ago) by rillig
Branch: MAIN
Changes since 1.1: +172 -2 lines
Diff to previous 1.1 (colored)

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.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Oct 22 20:54:36 2021 UTC (15 months, 1 week ago) by rillig
Branch: MAIN

tests/indent: migrate integer options tests to t_options

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>