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


Keyword substitution: kv
Default branch: MAIN


Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Dec 17 10:02:09 2023 UTC (11 months, 3 weeks ago) by rillig
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +1 -2 lines
tests/indent: don't create an unneeded file

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Dec 10 17:45:35 2023 UTC (12 months ago) by rillig
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +10 -8 lines
indent: be strict about options from profile files

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

Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Jun 5 10:12:21 2023 UTC (18 months, 1 week ago) by rillig
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +4 -4 lines
indent: do not report broken lines, report configuration on stderr

Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon Jun 5 07:23:03 2023 UTC (18 months, 1 week ago) by rillig
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +12 -1 lines
indent: clean up handling of whitespace

No functional change.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon May 15 17:38:56 2023 UTC (18 months, 4 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -2 lines
indent: remove accidental space before tab

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat May 13 08:33:39 2023 UTC (19 months ago) by rillig
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2 lines
indent: preserve indentation of preprocessor directives

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat May 13 06:52:48 2023 UTC (19 months ago) by rillig
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2 lines
tests/indent: explain, clean up and add some tests

Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri May 12 10:53:33 2023 UTC (19 months ago) by rillig
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +1 -3 lines
indent: remove statistics

The numbers from the statistics were wrong.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu May 11 09:28:53 2023 UTC (19 months ago) by rillig
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +12 -1 lines
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 - view: text, markup, annotated - select for diffs
Fri Apr 22 21:21:20 2022 UTC (2 years, 7 months ago) by rillig
Branches: 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
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +1 -3 lines
indent: remove FreeBSD IDs

Most of the IDs were empty anyway.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Nov 25 21:45:28 2021 UTC (3 years ago) by rillig
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -4 lines
tests/indent: use escape sequence for newline characters

No functional change.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Nov 25 21:39:21 2021 UTC (3 years ago) by rillig
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +20 -1 lines
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 - view: text, markup, annotated - select for diffs
Sat Nov 20 09:59:53 2021 UTC (3 years ago) by rillig
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -2 lines
indent: clean up lint annotation and tests

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Nov 19 22:24:29 2021 UTC (3 years ago) by rillig
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +21 -1 lines
tests/indent: refine and extend tests

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Nov 7 19:18:56 2021 UTC (3 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +1 -19 lines
indent: fix handling of C99 comments after 'if (expr)'

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Nov 7 19:04:46 2021 UTC (3 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +19 -1 lines
indent: demonstrate controlled buffer overflow in C99 comment

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Nov 7 15:01:50 2021 UTC (3 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +17 -1 lines
tests/indent: test options without '-' in profile files

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Oct 30 09:32:46 2021 UTC (3 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +16 -1 lines
tests/indent: test several options '-P'

Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Oct 29 19:22:55 2021 UTC (3 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +14 -1 lines
indent: clean up main_init_globals

No functional change.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Oct 29 16:54:51 2021 UTC (3 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2 lines
indent: spell 'parentheses' properly in messages and comments

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Oct 28 21:02:05 2021 UTC (3 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -8 lines
indent: parse option '-cli' strictly

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Oct 24 17:19:49 2021 UTC (3 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +7 -7 lines
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 - view: text, markup, annotated - select for diffs
Sun Oct 24 16:51:44 2021 UTC (3 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +5 -3 lines
indent: fix line number counting at beginning of function body

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Oct 24 16:46:12 2021 UTC (3 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +21 -1 lines
indent/tests: demonstrate wrong line number counting

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Oct 23 21:45:14 2021 UTC (3 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +120 -1 lines
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 - view: text, markup, annotated - select for diffs
Fri Oct 22 20:54:36 2021 UTC (3 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +20 -1 lines
tests/indent: migrate integer options tests to t_options

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Oct 22 19:27:53 2021 UTC (3 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +83 -1 lines
tests/indent: migrate a few more tests to t_options

Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Oct 14 18:55:41 2021 UTC (3 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +23 -1 lines
tests/indent: cover more error cases and inline indentation

Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Oct 14 17:42:13 2021 UTC (3 years, 1 month ago) by rillig
Branches: MAIN
tests/indent: provide full line coverage for argument handling

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>