Up to [local] / src / usr.bin / xlint / lint1
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.17, Sun Apr 8 16:27:00 2012 UTC (12 years, 2 months ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.16: +1 -1 lines
FILE REMOVED
tedu lint ok tedu@ guenther@ krw@ espie@ deraadt@
Revision 1.16 / (download) - annotate - [select for diffs], Sat Jul 24 22:17:03 2010 UTC (13 years, 10 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE,
OPENBSD_5_1,
OPENBSD_5_0_BASE,
OPENBSD_5_0,
OPENBSD_4_9_BASE,
OPENBSD_4_9,
OPENBSD_4_8_BASE,
OPENBSD_4_8
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)
Teach lint about C99's _Bool and _Complex, plus some related gcc extensions: __real__ and __imag__ operators, the use of '~' for complex conjugation, and 'i' or 'j' as a suffix for complex constants. While this doesn't handle folding and overflow detection for complex constants correctly, it's good enough to make it through libm...and found several bugs once it could do so. "no objections" miod@, krw@
Revision 1.15 / (download) - annotate - [select for diffs], Mon May 29 20:47:22 2006 UTC (18 years ago) by cloder
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE,
OPENBSD_4_7,
OPENBSD_4_6_BASE,
OPENBSD_4_6,
OPENBSD_4_5_BASE,
OPENBSD_4_5,
OPENBSD_4_4_BASE,
OPENBSD_4_4,
OPENBSD_4_3_BASE,
OPENBSD_4_3,
OPENBSD_4_2_BASE,
OPENBSD_4_2,
OPENBSD_4_1_BASE,
OPENBSD_4_1,
OPENBSD_4_0_BASE,
OPENBSD_4_0
Changes since 1.14: +1 -2 lines
Diff to previous 1.14 (colored)
Get rid of -t (traditional C) option. Some corrections by moritz.
Revision 1.14 / (download) - annotate - [select for diffs], Sun May 28 23:50:54 2006 UTC (18 years ago) by cloder
Branch: MAIN
Changes since 1.13: +1 -2 lines
Diff to previous 1.13 (colored)
Kill the bflag, which was really just used to shut up a useless warning regarding unreachable breaks, we committed a smarter fix for this a while back, so the flag is not needed anymore. Lint will still accept and silently ignore this flag for now.
Revision 1.13 / (download) - annotate - [select for diffs], Sun May 28 23:42:49 2006 UTC (18 years ago) by cloder
Branch: MAIN
Changes since 1.12: +1 -2 lines
Diff to previous 1.12 (colored)
Kill the -a option for lint, which controlled (inconsistently) warnings regarding narrowing conversions. For now, lint still accepts and ignores the -a option, but soon I will remove it utterly and change the default LINTFLAGS.
Revision 1.12 / (download) - annotate - [select for diffs], Thu Apr 20 16:29:48 2006 UTC (18 years, 1 month ago) by cloder
Branch: MAIN
Changes since 1.11: +3 -1 lines
Diff to previous 1.11 (colored)
Add a LINTUSED special comment which marks the following declared symbol(s) as used so that lint2 doesn't complain. Prodded by deraadt
Revision 1.11 / (download) - annotate - [select for diffs], Tue Apr 18 02:59:40 2006 UTC (18 years, 1 month ago) by cloder
Branch: MAIN
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)
The old way of passing function argument information was to pass an int which corresponded to the argument # (1-based, with 0 meaning it is not an argument). This sucked because it is impossible to include the function name or argument name in warnings when all you have is an argument number. Introduce a new type farg_t which represents a passed function argument. struct farg contains argument number, function name, and argument symbol information from the prototype).
Revision 1.10 / (download) - annotate - [select for diffs], Sun Dec 18 19:21:02 2005 UTC (18 years, 5 months ago) by cloder
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE,
OPENBSD_3_9
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)
Grok NORETURN function prototypes in addition to NORETURN function definitions.
Revision 1.9 / (download) - annotate - [select for diffs], Sat Dec 17 21:08:27 2005 UTC (18 years, 5 months ago) by cloder
Branch: MAIN
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (colored)
Handle __dead functions using lint comments.
Revision 1.8 / (download) - annotate - [select for diffs], Mon Dec 12 23:35:59 2005 UTC (18 years, 6 months ago) by cloder
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)
Cut down on extraneous "constant in conditional context" warnings when lint encounters expressions like do { ... } while (0); and if (1) ... We use these idioms frequently in our tree for scoping purposes and we deem them to be safe. Now lint will not warn if it encounters a constant in a conditional context when the expression consists only of a constant (with no operators) and the constant is 0 or 1. This means that lint will not warn for "if (1)" but will warn for "if (2)" and will also continue to warn for "if (foo && 1)". This cuts down the vast majority of these warnings while still preserving the ability to catch bugs.
Revision 1.7 / (download) - annotate - [select for diffs], Sat Dec 10 18:42:45 2005 UTC (18 years, 6 months ago) by cloder
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)
Lint now warns about sizeof(term) where the operator is anything other than unary *, ->, a name, or a string.
Revision 1.6 / (download) - annotate - [select for diffs], Sat Dec 10 17:51:49 2005 UTC (18 years, 6 months ago) by cloder
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)
Add a new lint flag '-f' which, for each warning or error, prints the offending line from the corresponding source code file. The general idea is OK deraadt
Revision 1.5 / (download) - annotate - [select for diffs], Sat Dec 10 17:41:03 2005 UTC (18 years, 6 months ago) by cloder
Branch: MAIN
Changes since 1.4: +0 -12 lines
Diff to previous 1.4 (colored)
Back out all gcc attribute parsing changes until we can do this the right way some day. The effect of __attribute__ on a LALR C grammar is just too ugly to fix quicklly.
Revision 1.4 / (download) - annotate - [select for diffs], Wed Dec 7 01:55:12 2005 UTC (18 years, 6 months ago) by cloder
Branch: MAIN
Changes since 1.3: +13 -1 lines
Diff to previous 1.3 (colored)
Refactor __attribute__ parsing a bit. This takes us further to being able to not only consume, but also make sense of gcc __attribute__ syntax.
Revision 1.3 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:59 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE,
OPENBSD_3_8,
OPENBSD_3_7_BASE,
OPENBSD_3_7,
OPENBSD_3_6_BASE,
OPENBSD_3_6,
OPENBSD_3_5_BASE,
OPENBSD_3_5,
OPENBSD_3_4_BASE,
OPENBSD_3_4,
OPENBSD_3_3_BASE,
OPENBSD_3_3,
OPENBSD_3_2_BASE,
OPENBSD_3_2,
OPENBSD_3_1_BASE,
OPENBSD_3_1
Changes since 1.2: +153 -153 lines
Diff to previous 1.2 (colored)
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 26 05:44:12 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE,
OPENBSD_3_0,
OPENBSD_2_9_BASE,
OPENBSD_2_9,
OPENBSD_2_8_BASE,
OPENBSD_2_8,
OPENBSD_2_7_BASE,
OPENBSD_2_7,
OPENBSD_2_6_BASE,
OPENBSD_2_6,
OPENBSD_2_5_BASE,
OPENBSD_2_5,
OPENBSD_2_4_BASE,
OPENBSD_2_4,
OPENBSD_2_3_BASE,
OPENBSD_2_3,
OPENBSD_2_2_BASE,
OPENBSD_2_2,
OPENBSD_2_1_BASE,
OPENBSD_2_1,
OPENBSD_2_0_BASE,
OPENBSD_2_0
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)
rcsid
Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:47:02 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)
initial import of NetBSD tree
Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:47:02 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN
Initial revision