Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint lint: remove redundant comments for command li...
details: https://anonhg.NetBSD.org/src/rev/b5ab17b6f057
branches: trunk
changeset: 377247:b5ab17b6f057
user: rillig <rillig%NetBSD.org@localhost>
date: Mon Jul 03 10:14:31 2023 +0000
description:
lint: remove redundant comments for command line flags
diffstat:
usr.bin/xlint/lint1/main1.c | 62 +++++++-------------------------------------
usr.bin/xlint/xlint/lint.1 | 4 +-
2 files changed, 12 insertions(+), 54 deletions(-)
diffs (107 lines):
diff -r 95921818dd97 -r b5ab17b6f057 usr.bin/xlint/lint1/main1.c
--- a/usr.bin/xlint/lint1/main1.c Mon Jul 03 09:37:14 2023 +0000
+++ b/usr.bin/xlint/lint1/main1.c Mon Jul 03 10:14:31 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main1.c,v 1.68 2023/07/03 09:33:07 rillig Exp $ */
+/* $NetBSD: main1.c,v 1.69 2023/07/03 10:14:31 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID)
-__RCSID("$NetBSD: main1.c,v 1.68 2023/07/03 09:33:07 rillig Exp $");
+__RCSID("$NetBSD: main1.c,v 1.69 2023/07/03 10:14:31 rillig Exp $");
#endif
#include <sys/types.h>
@@ -49,62 +49,20 @@
#include "lint1.h"
-/* set yydebug to 1*/
-bool yflag;
-
-/*
- * Print warnings if an assignment of an integer type to another integer type
- * causes an implicit narrowing conversion. If aflag is 1, these warnings
- * are printed only if the source type is at least as wide as long. If aflag
- * is greater than 1, they are always printed.
- */
int aflag;
-
-/* Print a warning if a break statement cannot be reached. */
bool bflag;
-
-/* Print warnings for pointer casts. */
bool cflag;
-
-/* Perform stricter checking of enum types and operations on enum types. */
bool eflag;
-
-/* Print complete pathnames, not only the basename. */
bool Fflag;
-
-/* Treat warnings as errors */
+bool hflag;
+bool Pflag;
+bool pflag;
+bool rflag;
+bool Tflag;
+bool uflag = true;
+bool vflag = true;
bool wflag;
-
-/*
- * Apply a number of heuristic tests to attempt to intuit bugs, improve
- * style, and reduce waste.
- */
-bool hflag;
-
-/* Attempt to check portability to other dialects of C. */
-bool pflag;
-
-/*
- * In case of redeclarations/redefinitions print the location of the
- * previous declaration/definition.
- */
-bool rflag;
-
-bool Tflag;
-
-/* Picky flag */
-bool Pflag;
-
-/*
- * Complain about functions and external variables used and not defined,
- * or defined and not used.
- */
-bool uflag = true;
-
-/* Complain about unused function arguments. */
-bool vflag = true;
-
-/* Complain about structures which are never defined. */
+bool yflag;
bool zflag = true;
/*
diff -r 95921818dd97 -r b5ab17b6f057 usr.bin/xlint/xlint/lint.1
--- a/usr.bin/xlint/xlint/lint.1 Mon Jul 03 09:37:14 2023 +0000
+++ b/usr.bin/xlint/xlint/lint.1 Mon Jul 03 10:14:31 2023 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: lint.1,v 1.60 2023/07/02 23:40:23 rillig Exp $
+.\" $NetBSD: lint.1,v 1.61 2023/07/03 10:14:31 rillig Exp $
.\"
.\" Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
.\" Copyright (c) 1994, 1995 Jochen Pohl
@@ -251,7 +251,7 @@ types and combinations of
.Sy enum
and integer types.
.It Fl F
-Print pathnames of files.
+Print pathnames of files, not only the basenames.
.Nm
normally prints the filename without the path.
.It Fl g
Home |
Main Index |
Thread Index |
Old Index