Module Name: src Committed By: rillig Date: Tue Oct 12 19:05:23 UTC 2021
Modified Files: src/tests/usr.bin/indent: token-comment.0 token-comment.0.stdout Log Message: tests/indent: test formatting of long single-line code comments To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/tests/usr.bin/indent/token-comment.0 cvs rdiff -u -r1.10 -r1.11 src/tests/usr.bin/indent/token-comment.0.stdout Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/usr.bin/indent/token-comment.0 diff -u src/tests/usr.bin/indent/token-comment.0:1.8 src/tests/usr.bin/indent/token-comment.0:1.9 --- src/tests/usr.bin/indent/token-comment.0:1.8 Tue Oct 12 18:54:56 2021 +++ src/tests/usr.bin/indent/token-comment.0 Tue Oct 12 19:05:22 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: token-comment.0,v 1.8 2021/10/12 18:54:56 rillig Exp $ */ +/* $NetBSD: token-comment.0,v 1.9 2021/10/12 19:05:22 rillig Exp $ */ /* $FreeBSD$ */ /* @@ -97,6 +97,13 @@ function(void) code(); /* code comment ____________ to line length 81 */ code(); /* code comment _____________ to line length 82 */ +/* $ In the following comments, the line length is measured after formatting. */ + code(); /* code comment _________ to line length 78*/ + code(); /* code comment __________ to line length 79*/ + code(); /* code comment ___________ to line length 80*/ + code(); /* code comment ____________ to line length 81*/ + code(); /* code comment _____________ to line length 82*/ + code(); /* short * multi-line * code Index: src/tests/usr.bin/indent/token-comment.0.stdout diff -u src/tests/usr.bin/indent/token-comment.0.stdout:1.10 src/tests/usr.bin/indent/token-comment.0.stdout:1.11 --- src/tests/usr.bin/indent/token-comment.0.stdout:1.10 Tue Oct 12 18:54:56 2021 +++ src/tests/usr.bin/indent/token-comment.0.stdout Tue Oct 12 19:05:22 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: token-comment.0.stdout,v 1.10 2021/10/12 18:54:56 rillig Exp $ */ +/* $NetBSD: token-comment.0.stdout,v 1.11 2021/10/12 19:05:22 rillig Exp $ */ /* $FreeBSD$ */ /* @@ -102,6 +102,14 @@ function(void) code(); /* code comment _____________ to line length * 82 */ +/* $ In the following comments, the line length is measured after formatting. */ + code(); /* code comment _________ to line length 78 */ + code(); /* code comment __________ to line length 79 */ + code(); /* code comment ___________ to line length 80 */ + code(); /* code comment ____________ to line length 81 */ + code(); /* code comment _____________ to line length + * 82 */ + code(); /* short multi-line code comment */ code(); /* long single-line code comment that is