Module Name: src Committed By: rillig Date: Wed Nov 24 21:34:34 UTC 2021
Modified Files: src/tests/usr.bin/indent: fmt_decl.c lsym_case_label.c Log Message: 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). To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/tests/usr.bin/indent/fmt_decl.c cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/indent/lsym_case_label.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.