The NetBSD Project

CVS log for src/tests/usr.bin/indent/t_misc.sh

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.29 / (download) - annotate - [select for diffs], Sun Dec 17 10:02:09 2023 UTC (3 months, 4 weeks ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.28: +1 -2 lines
Diff to previous 1.28 (colored)

tests/indent: don't create an unneeded file

Revision 1.28 / (download) - annotate - [select for diffs], Sun Dec 10 17:45:35 2023 UTC (4 months ago) by rillig
Branch: MAIN
Changes since 1.27: +10 -8 lines
Diff to previous 1.27 (colored)

indent: be strict about options from profile files

Previously, the "option" 'xdi0' was treated the same as '-xdi0'.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Jun 5 10:12:21 2023 UTC (10 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.26: +4 -4 lines
Diff to previous 1.26 (colored)

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

Revision 1.26 / (download) - annotate - [select for diffs], Mon Jun 5 07:23:03 2023 UTC (10 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.25: +12 -1 lines
Diff to previous 1.25 (colored)

indent: clean up handling of whitespace

No functional change.

Revision 1.25 / (download) - annotate - [select for diffs], Mon May 15 17:38:56 2023 UTC (11 months ago) by rillig
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

indent: remove accidental space before tab

Revision 1.24 / (download) - annotate - [select for diffs], Sat May 13 08:33:39 2023 UTC (11 months ago) by rillig
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

indent: preserve indentation of preprocessor directives

Revision 1.23 / (download) - annotate - [select for diffs], Sat May 13 06:52:48 2023 UTC (11 months ago) by rillig
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

tests/indent: explain, clean up and add some tests

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

indent: remove statistics

The numbers from the statistics were wrong.

Revision 1.21 / (download) - annotate - [select for diffs], Thu May 11 09:28:53 2023 UTC (11 months ago) by rillig
Branch: MAIN
Changes since 1.20: +12 -1 lines
Diff to previous 1.20 (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.20 / (download) - annotate - [select for diffs], Fri Apr 22 21:21:20 2022 UTC (23 months, 3 weeks ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.19: +1 -3 lines
Diff to previous 1.19 (colored)

indent: remove FreeBSD IDs

Most of the IDs were empty anyway.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Nov 25 21:45:28 2021 UTC (2 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.18: +2 -4 lines
Diff to previous 1.18 (colored)

tests/indent: use escape sequence for newline characters

No functional change.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Nov 25 21:39:21 2021 UTC (2 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.17: +20 -1 lines
Diff to previous 1.17 (colored)

tests/indent: test in-place formatting with parse errors

The file gets formatted until the end, despite the parse error. This may
destroy layout details of the code but usually preserves the overall
structure. Since all source code is supposed to be under version
control, this is not a problem.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Nov 20 09:59:53 2021 UTC (2 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

indent: clean up lint annotation and tests

Revision 1.16 / (download) - annotate - [select for diffs], Fri Nov 19 22:24:29 2021 UTC (2 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.15: +21 -1 lines
Diff to previous 1.15 (colored)

tests/indent: refine and extend tests

Revision 1.15 / (download) - annotate - [select for diffs], Sun Nov 7 19:18:56 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.14: +1 -19 lines
Diff to previous 1.14 (colored)

indent: fix handling of C99 comments after 'if (expr)'

Revision 1.14 / (download) - annotate - [select for diffs], Sun Nov 7 19:04:46 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.13: +19 -1 lines
Diff to previous 1.13 (colored)

indent: demonstrate controlled buffer overflow in C99 comment

Revision 1.13 / (download) - annotate - [select for diffs], Sun Nov 7 15:01:50 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.12: +17 -1 lines
Diff to previous 1.12 (colored)

tests/indent: test options without '-' in profile files

Revision 1.12 / (download) - annotate - [select for diffs], Sat Oct 30 09:32:46 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.11: +16 -1 lines
Diff to previous 1.11 (colored)

tests/indent: test several options '-P'

Revision 1.11 / (download) - annotate - [select for diffs], Fri Oct 29 19:22:55 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.10: +14 -1 lines
Diff to previous 1.10 (colored)

indent: clean up main_init_globals

No functional change.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Oct 29 16:54:51 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

indent: spell 'parentheses' properly in messages and comments

Revision 1.9 / (download) - annotate - [select for diffs], Thu Oct 28 21:02:05 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.8: +4 -8 lines
Diff to previous 1.8 (colored)

indent: parse option '-cli' strictly

Revision 1.8 / (download) - annotate - [select for diffs], Sun Oct 24 17:19:49 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.7: +7 -7 lines
Diff to previous 1.7 (colored)

indent: clean up format of warnings and errors

Previously, warnings and errors had the form of C block comments. Before
NetBSD io.c 1.20 from 2019-10-19, this format made sense because the
diagnostics could end up in the same output stream as the formatted
output.

Since NetBSD io.c 1.20 from 2019-10-19, all diagnostics are redirected
to stderr. This change was not mentioned in the commit message back
then, it makes sense nevertheless. Since stdout and stderr now are
properly separated, there is no need anymore to keep the weird format
for warnings and errors. Switch to the standard 'error: file:line'
format.

Move the function 'diag' to indent.c to have access to the name of the
current input file.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Oct 24 16:51:44 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.6: +5 -3 lines
Diff to previous 1.6 (colored)

indent: fix line number counting at beginning of function body

Revision 1.6 / (download) - annotate - [select for diffs], Sun Oct 24 16:46:12 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.5: +21 -1 lines
Diff to previous 1.5 (colored)

indent/tests: demonstrate wrong line number counting

Revision 1.5 / (download) - annotate - [select for diffs], Sat Oct 23 21:45:14 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.4: +120 -1 lines
Diff to previous 1.4 (colored)

tests/indent: migrate remaining tests from t_indent to t_options

The test types_from_file was a subset of opt_U and thus has been
removed.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Oct 22 20:54:36 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.3: +20 -1 lines
Diff to previous 1.3 (colored)

tests/indent: migrate integer options tests to t_options

Revision 1.3 / (download) - annotate - [select for diffs], Fri Oct 22 19:27:53 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.2: +83 -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], Thu Oct 14 18:55:41 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.1: +23 -1 lines
Diff to previous 1.1 (colored)

tests/indent: cover more error cases and inline indentation

Revision 1.1 / (download) - annotate - [select for diffs], Thu Oct 14 17:42:13 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN

tests/indent: provide full line coverage for argument handling

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>