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: test formatting of 'CPU_I...



details:   https://anonhg.NetBSD.org/src/rev/1e03d339c0e1
branches:  trunk
changeset: 1024723:1e03d339c0e1
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Oct 31 23:33:12 2021 +0000

description:
tests/indent: test formatting of 'CPU_INFO_FOREACH(cii, ci)'

diffstat:

 tests/usr.bin/indent/token_for_exprs.c |  15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 932d591ed4be -r 1e03d339c0e1 tests/usr.bin/indent/token_for_exprs.c
--- a/tests/usr.bin/indent/token_for_exprs.c    Sun Oct 31 23:15:44 2021 +0000
+++ b/tests/usr.bin/indent/token_for_exprs.c    Sun Oct 31 23:33:12 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: token_for_exprs.c,v 1.1 2021/10/18 22:30:34 rillig Exp $ */
+/* $NetBSD: token_for_exprs.c,v 1.2 2021/10/31 23:33:12 rillig Exp $ */
 /* $FreeBSD$ */
 
 /*
@@ -56,3 +56,16 @@
 #indent end
 
 #indent run-equals-input
+
+
+/*
+ * Another variant of a 'for' loop, seen in sys/arch/arm/apple/apple_intc.c.
+ */
+#indent input
+{
+       for (CPU_INFO_FOREACH(cii, ci)) {
+       }
+}
+#indent end
+
+#indent run-equals-input



Home | Main Index | Thread Index | Old Index