Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/usr.bin/indent tests/indent: document missing space be...



details:   https://anonhg.NetBSD.org/src/rev/bc57bce69fcf
branches:  trunk
changeset: 1023969:bc57bce69fcf
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Oct 05 17:27:11 2021 +0000

description:
tests/indent: document missing space between '){'

diffstat:

 tests/usr.bin/indent/ps_ind_level.0.stdout |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 9d55b5868f7c -r bc57bce69fcf tests/usr.bin/indent/ps_ind_level.0.stdout
--- a/tests/usr.bin/indent/ps_ind_level.0.stdout        Tue Oct 05 17:14:45 2021 +0000
+++ b/tests/usr.bin/indent/ps_ind_level.0.stdout        Tue Oct 05 17:27:11 2021 +0000
@@ -1,8 +1,12 @@
-/* $NetBSD: ps_ind_level.0.stdout,v 1.2 2021/10/05 17:14:45 rillig Exp $ */
+/* $NetBSD: ps_ind_level.0.stdout,v 1.3 2021/10/05 17:27:11 rillig Exp $ */
 /* $FreeBSD$ */
 /* $ */
                    int             declaration_in_column_25;
 
-/* $ FIXME: The space between '){' is missing. */
+/* $ The space between '){' is missing. This is because the tokenizer only */
+/* $ recognizes function definitions if they start at indentation level 0, */
+/* $ but this declaration starts at indentation level 4, due to the */
+/* $ declaration above. It's an edge case and probably not worth fixing. */
+/* $ See 'in_parameter_declaration = true'. */
                    void            function_in_column_1(void){
                    }



Home | Main Index | Thread Index | Old Index