Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/xlint/xlint lint: replace space followed by tab with...



details:   https://anonhg.NetBSD.org/src/rev/893d5b45200e
branches:  trunk
changeset: 1023481:893d5b45200e
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Sep 10 20:02:50 2021 +0000

description:
lint: replace space followed by tab with simply tab

No functional change.

diffstat:

 tests/usr.bin/xlint/lint1/d_gcc_compound_statements2.c |   8 ++--
 tests/usr.bin/xlint/lint1/d_init_array_using_string.c  |  28 +++++++++---------
 tests/usr.bin/xlint/lint1/emit.c                       |   4 +-
 tests/usr.bin/xlint/lint1/t_integration.sh             |   6 +-
 usr.bin/xlint/lint1/cgram.y                            |   8 ++--
 usr.bin/xlint/lint1/ops.def                            |   4 +-
 usr.bin/xlint/xlint/Makefile                           |   4 +-
 7 files changed, 31 insertions(+), 31 deletions(-)

diffs (184 lines):

diff -r ed21ad08159c -r 893d5b45200e tests/usr.bin/xlint/lint1/d_gcc_compound_statements2.c
--- a/tests/usr.bin/xlint/lint1/d_gcc_compound_statements2.c    Fri Sep 10 19:40:18 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_gcc_compound_statements2.c    Fri Sep 10 20:02:50 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: d_gcc_compound_statements2.c,v 1.3 2021/04/23 20:13:29 rillig Exp $    */
+/*     $NetBSD: d_gcc_compound_statements2.c,v 1.4 2021/09/10 20:02:51 rillig Exp $    */
 # 3 "d_gcc_compound_statements2.c"
 
 /* GCC compound statements with non-expressions */
@@ -21,8 +21,8 @@
 {
        struct cpu_info ci = { 0 };
        return ({
-           if (ci.bar > 0)
-               ci.bar++;
-           ci;
+               if (ci.bar > 0)
+                       ci.bar++;
+               ci;
        }).bar;
 }
diff -r ed21ad08159c -r 893d5b45200e tests/usr.bin/xlint/lint1/d_init_array_using_string.c
--- a/tests/usr.bin/xlint/lint1/d_init_array_using_string.c     Fri Sep 10 19:40:18 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_init_array_using_string.c     Fri Sep 10 20:02:50 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: d_init_array_using_string.c,v 1.5 2021/08/14 13:00:55 rillig Exp $     */
+/*     $NetBSD: d_init_array_using_string.c,v 1.6 2021/09/10 20:02:51 rillig Exp $     */
 # 3 "d_init_array_using_string.c"
 
 /*
@@ -28,15 +28,15 @@
        };
 
        struct cs_ws type_match = {
-               "",
-               L"",
+               "",
+               L"",
        };
 
        struct cs_ws type_mismatch = {
                /* expect+1: warning: illegal combination of 'pointer to const char' and 'pointer to int', op 'init' [124] */
-               L"",
-               /* expect+1: warning: illegal combination of 'pointer to const int' and 'pointer to char', op 'init' [124] */
-               "",
+               L"",
+               /* expect+1: warning: illegal combination of 'pointer to const int' and 'pointer to char', op 'init' [124] */
+               "",
        };
 
        struct cs_ws extra_braces = {
@@ -55,23 +55,23 @@
        };
 
        struct cs_ws type_match = {
-               "",
-               L"",
+               "",
+               L"",
        };
 
        struct cs_ws type_mismatch = {
-               L"",            /* expect: cannot initialize */
-               "",             /* expect: cannot initialize */
+               L"",            /* expect: cannot initialize */
+               "",             /* expect: cannot initialize */
        };
 
        struct cs_ws no_terminating_null = {
-               "0123456789",
-               L"0123456789",
+               "0123456789",
+               L"0123456789",
        };
 
        struct cs_ws too_many_characters = {
-               "0123456789X",  /* expect: non-null byte ignored */
-               L"0123456789X", /* expect: non-null byte ignored */
+               "0123456789X",  /* expect: non-null byte ignored */
+               L"0123456789X", /* expect: non-null byte ignored */
        };
 
        struct cs_ws extra_braces = {
diff -r ed21ad08159c -r 893d5b45200e tests/usr.bin/xlint/lint1/emit.c
--- a/tests/usr.bin/xlint/lint1/emit.c  Fri Sep 10 19:40:18 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/emit.c  Fri Sep 10 20:02:50 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: emit.c,v 1.6 2021/09/04 15:13:00 rillig Exp $  */
+/*     $NetBSD: emit.c,v 1.7 2021/09/10 20:02:51 rillig Exp $  */
 # 3 "emit.c"
 
 /*
@@ -45,7 +45,7 @@
  */
 
 extern _Bool                   extern__Bool;
-extern float _Complex          extern__Complex_float;
+extern float _Complex          extern__Complex_float;
 extern double _Complex         extern__Complex_double;
 extern long double _Complex    extern__Complex_long_double;
 extern char                    extern_char;
diff -r ed21ad08159c -r 893d5b45200e tests/usr.bin/xlint/lint1/t_integration.sh
--- a/tests/usr.bin/xlint/lint1/t_integration.sh        Fri Sep 10 19:40:18 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/t_integration.sh        Fri Sep 10 20:02:50 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_integration.sh,v 1.69 2021/08/21 11:50:57 rillig Exp $
+# $NetBSD: t_integration.sh,v 1.70 2021/09/10 20:02:51 rillig Exp $
 #
 # Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -86,8 +86,8 @@
                                for (i = 3; i < NF; i++)
                                        flags = flags " " $i
                        } else if ($2 == "lint1-only-if:") {
-                                if (!platform_has($3))
-                                       skip = "yes"
+                               if (!platform_has($3))
+                                       skip = "yes"
                        } else if ($2 == "lint1-skip-if:") {
                                if (platform_has($3))
                                        skip = "yes"
diff -r ed21ad08159c -r 893d5b45200e usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y       Fri Sep 10 19:40:18 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y       Fri Sep 10 20:02:50 2021 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.360 2021/09/04 12:30:46 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.361 2021/09/10 20:02:50 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: cgram.y,v 1.360 2021/09/04 12:30:46 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.361 2021/09/10 20:02:50 rillig Exp $");
 #endif
 
 #include <limits.h>
@@ -445,8 +445,8 @@
 generic_selection:
          T_GENERIC T_LPAREN assignment_expression T_COMMA
            generic_assoc_list T_RPAREN {
-               /* generic selection requires C11 or later */
-               c11ism(345);
+               /* generic selection requires C11 or later */
+               c11ism(345);
                $$ = build_generic_selection($3, $5);
          }
        ;
diff -r ed21ad08159c -r 893d5b45200e usr.bin/xlint/lint1/ops.def
--- a/usr.bin/xlint/lint1/ops.def       Fri Sep 10 19:40:18 2021 +0000
+++ b/usr.bin/xlint/lint1/ops.def       Fri Sep 10 20:02:50 2021 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: ops.def,v 1.24 2021/08/14 12:46:23 rillig Exp $ */
+/*     $NetBSD: ops.def,v 1.25 2021/09/10 20:02:50 rillig Exp $ */
 
 begin_ops()
 
 /*
  * Operator properties; see mod_t in op.h.
  *
- *     warn if operand '='                                           x
+ *     warn if operand '='                                           x
  *     bad on enum                                                 x
  *     valid on enum                                             x
  *     comparison              - - - - - - - - - - - - - - - - x
diff -r ed21ad08159c -r 893d5b45200e usr.bin/xlint/xlint/Makefile
--- a/usr.bin/xlint/xlint/Makefile      Fri Sep 10 19:40:18 2021 +0000
+++ b/usr.bin/xlint/xlint/Makefile      Fri Sep 10 20:02:50 2021 +0000
@@ -1,10 +1,10 @@
-#      $NetBSD: Makefile,v 1.23 2021/09/05 15:15:58 rillig Exp $
+#      $NetBSD: Makefile,v 1.24 2021/09/10 20:02:50 rillig Exp $
 
 .PATH:         ${.CURDIR}/../../mkdep
 
 PROG=          xlint
 SRCS=          xlint.c mem.c findcc.c
-PROGNAME=      lint
+PROGNAME=      lint
 MAN=           lint.1
 
 CPPFLAGS+=     -I${.CURDIR}/../../mkdep



Home | Main Index | Thread Index | Old Index