The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.6 / (download) - annotate - [select for diffs], Sun Apr 24 09:04:12 2022 UTC (9 months ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.5: +15 -15 lines
Diff to previous 1.5 (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.5 / (download) - annotate - [select for diffs], Fri Apr 22 21:21:20 2022 UTC (9 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.4: +1 -2 lines
Diff to previous 1.4 (colored)

indent: remove FreeBSD IDs

Most of the IDs were empty anyway.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Nov 28 16:05:59 2021 UTC (14 months ago) by rillig
Branch: MAIN
Changes since 1.3: +60 -5 lines
Diff to previous 1.3 (colored)

tests/indent: migrate test token_case_label to lsym_case_label

Revision 1.3 / (download) - annotate - [select for diffs], Wed Nov 24 21:34:34 2021 UTC (14 months ago) by rillig
Branch: MAIN
Changes since 1.2: +39 -1 lines
Diff to previous 1.2 (colored)

tests/indent: demonstrate several real-life formatting bugs

Collected by indenting usr.bin/make with the default profile.

The heuristic for distinguishing between type names and other
identifiers is way too primitive, it seems to have stopped evolving
somewhere before function prototypes were standardized in C90, at least
it handles function prototypes poorly.

indent-2014.09.04.04.06.07 added seemingly random spaces to
declarations, which were fixed in indent-2019.04.04.15.27.35, which came
5 years later. The latter commit introduced many new bugs, but it also
fixed this one.

The wrongly indented struct member declaration for HashTable has been
there since at least indent-2000.10.11.14.46.04.

The wrongly indented initializer expression was added in
indent-2019.04.04.15.27.35 (see above).

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

tests/indent: clean up and extend tests

Revision 1.1 / (download) - annotate - [select for diffs], Thu Nov 18 21:19:19 2021 UTC (14 months, 1 week ago) by rillig
Branch: MAIN

tests/indent: add skeletons for testing tokens and parser symbols

The constants that were previously defined in indent_codes.h were a wild
mixture of tokens from the lexer and symbols on the parser stack.  They
were split into separate types starting at indent.h 1.49 from 2021-10-25
and finishing at 1.73 from 2021-10-31.

To match the tests with the new token names, the old tests need to be
migrated to the newly added tests.  This will take some time so first
add the skeletons and migrate them in smaller steps, cleaning them up
and extending them on the way.

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>