OpenBSD CVS

CVS log for src/usr.bin/xlint/lint1/Attic/cgram.y


[BACK] Up to [local] / src / usr.bin / xlint / lint1

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.25, Sun Apr 8 16:27:00 2012 UTC (12 years, 2 months ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.24: +1 -1 lines
FILE REMOVED

tedu lint
ok tedu@ guenther@ krw@ espie@ deraadt@

Revision 1.24 / (download) - annotate - [select for diffs], Wed Sep 21 18:08:07 2011 UTC (12 years, 8 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.23: +1 -5 lines
Diff to previous 1.23 (colored)

remove rcsids which escaped the purge of 2009

Revision 1.23 / (download) - annotate - [select for diffs], Tue May 31 22:00:07 2011 UTC (13 years ago) by martynas
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.22: +36 -8 lines
Diff to previous 1.22 (colored)

Warn on empty non-compound selection statements, such as "if (foo);".

- "empty body of the if statement",
- "empty body of the else statement".

millert@ thought it's useful.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Sep 8 17:49:18 2007 UTC (16 years, 9 months ago) by cloder
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, 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
Changes since 1.21: +3 -2 lines
Diff to previous 1.21 (colored)

Fix false negatives in dealing with unreachable code after calls to __dead
functions. Prodded by fgs@, but a different diff than his.
"Makes sense" fgs@

Revision 1.21 / (download) - annotate - [select for diffs], Tue Apr 24 16:47:36 2007 UTC (17 years, 1 month ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

exeption -> exception

Revision 1.20 / (download) - annotate - [select for diffs], Mon May 29 20:47:22 2006 UTC (18 years ago) by cloder
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.19: +5 -13 lines
Diff to previous 1.19 (colored)

Get rid of -t (traditional C) option. Some corrections by moritz.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Apr 21 23:17:10 2006 UTC (18 years, 1 month ago) by cloder
Branch: MAIN
Changes since 1.18: +2 -9 lines
Diff to previous 1.18 (colored)

Kill warning 54, trailing comma in enum, because this is allowed in C99.

Revision 1.18 / (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.17: +5 -2 lines
Diff to previous 1.17 (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.17 / (download) - annotate - [select for diffs], Sat Dec 10 18:42:45 2005 UTC (18 years, 6 months ago) by cloder
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

Lint now warns about sizeof(term) where the operator is anything other
than unary *, ->, a name, or a string.

Revision 1.16 / (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.15: +24 -79 lines
Diff to previous 1.15 (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.15 / (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.14: +46 -10 lines
Diff to previous 1.14 (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.14 / (download) - annotate - [select for diffs], Sat Dec 3 00:27:54 2005 UTC (18 years, 6 months ago) by cloder
Branch: MAIN
Changes since 1.13: +43 -24 lines
Diff to previous 1.13 (colored)

Lint can now parse every variation of gcc's __attribute__ that I could find
either in our tree or in the gcc docs.  See regression test 11 for examples
of this.  Right now, our cdefs.h actually defines __attribute__(x) to blank
when lint runs.  We can change this whenever we choose.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Nov 30 18:47:11 2005 UTC (18 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

spacing

Revision 1.12 / (download) - annotate - [select for diffs], Wed Nov 30 06:33:49 2005 UTC (18 years, 6 months ago) by cloder
Branch: MAIN
Changes since 1.11: +6 -10 lines
Diff to previous 1.11 (colored)

KNF

Revision 1.11 / (download) - annotate - [select for diffs], Tue Nov 29 19:50:33 2005 UTC (18 years, 6 months ago) by cloder
Branch: MAIN
Changes since 1.10: +2 -13 lines
Diff to previous 1.10 (colored)

Remove XXX_BROKEN_GCC ifdefs, which were used to work around an ancient
(from 1995) gcc bug on i386.  From NetBSD.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Nov 23 22:57:36 2005 UTC (18 years, 6 months ago) by cloder
Branch: MAIN
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored)

Deal with empty array initializers (a gcc-ism), but warn.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Nov 23 22:25:36 2005 UTC (18 years, 6 months ago) by cloder
Branch: MAIN
Changes since 1.8: +10 -2 lines
Diff to previous 1.8 (colored)

Deal somewhat with case ranges, which is a gcc extension.
"fine" deraadt, with his suggested modifications

Revision 1.8 / (download) - annotate - [select for diffs], Wed Nov 23 18:47:40 2005 UTC (18 years, 6 months ago) by cloder
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Grok __restrict__ and __restrict keywords.  OK deraadt

Revision 1.7 / (download) - annotate - [select for diffs], Wed Nov 23 09:05:42 2005 UTC (18 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +39 -11 lines
Diff to previous 1.6 (colored)

add a fake C construct __lint_equal__ which will be used to generate
alias entries for weak symbols and such
also let ; at the top scope be legal

Revision 1.6 / (download) - annotate - [select for diffs], Wed Nov 23 08:53:37 2005 UTC (18 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +11 -7 lines
Diff to previous 1.5 (colored)

support __attribute__

Revision 1.5 / (download) - annotate - [select for diffs], Sat Nov 8 19:17:29 2003 UTC (20 years, 7 months ago) by jmc
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
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

typos from Jonathon Gray;

Revision 1.4 / (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_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.3: +5 -5 lines
Diff to previous 1.3 (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.3 / (download) - annotate - [select for diffs], Wed Jun 26 05:44:08 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.2: +2 -1 lines
Diff to previous 1.2 (colored)

rcsid

Revision 1.2 / (download) - annotate - [select for diffs], Tue Mar 5 08:48:15 1996 UTC (28 years, 3 months ago) by tholo
Branch: MAIN
Changes since 1.1: +12 -1 lines
Diff to previous 1.1 (colored)

Work around a GCC code generation bug if XXX_BROKEN_GCC; fixed NetBSD
PR 2097

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:47:01 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:01 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.