The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.13 / (download) - annotate - [select for diffs], Mon Jun 5 10:12:21 2023 UTC (8 months, 2 weeks ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +5 -11 lines
Diff to previous 1.12 (colored)

indent: do not report broken lines, report configuration on stderr

Revision 1.12 / (download) - annotate - [select for diffs], Fri May 12 10:53:33 2023 UTC (9 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.11: +10 -47 lines
Diff to previous 1.11 (colored)

indent: remove statistics

The numbers from the statistics were wrong.

Revision 1.11 / (download) - annotate - [select for diffs], Thu May 11 19:01:35 2023 UTC (9 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

indent: don't touch comments in preprocessing lines

The indentation of multi-line comments was wrong, and the code for
handling them was too complicated.

Revision 1.10 / (download) - annotate - [select for diffs], Thu May 11 18:13:55 2023 UTC (9 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

indent: remove broken code for handling blank lines

This fixes several bugs where blank lines were erroneously added or
removed, treating these old bugs for new bugs in different places.
These new bugs are expected to be easier to fix, as the old bugs will
not interfere anymore.

Revision 1.9 / (download) - annotate - [select for diffs], Thu May 11 09:28:53 2023 UTC (9 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.8: +3 -2 lines
Diff to previous 1.8 (colored)

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 1.8 / (download) - annotate - [select for diffs], Sun Apr 24 09:04:12 2022 UTC (22 months ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.7: +17 -17 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], Fri Apr 22 21:21:20 2022 UTC (22 months ago) by rillig
Branch: MAIN
Changes since 1.6: +1 -2 lines
Diff to previous 1.6 (colored)

indent: remove FreeBSD IDs

Most of the IDs were empty anyway.

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

tests/indent: clean up and extend tests

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

tests/indent: normalize empty lines in tests

Revision 1.4 / (download) - annotate - [select for diffs], Sun Nov 7 15:44:28 2021 UTC (2 years, 3 months ago) by rillig
Branch: MAIN
Changes since 1.3: +31 -1 lines
Diff to previous 1.3 (colored)

tests/indent: test cast, line counting, comment in struct

Revision 1.3 / (download) - annotate - [select for diffs], Fri Oct 22 19:27:53 2021 UTC (2 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.2: +26 -1 lines
Diff to previous 1.2 (colored)

tests/indent: migrate a few more tests to t_options

Revision 1.2 / (download) - annotate - [select for diffs], Sat Oct 16 21:32:10 2021 UTC (2 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.1: +12 -1 lines
Diff to previous 1.1 (colored)

tests/lint: document and extend the tests for options

Revision 1.1 / (download) - annotate - [select for diffs], Sat Oct 16 03:20:13 2021 UTC (2 years, 4 months ago) by rillig
Branch: MAIN

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.

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>