Up to [cvs.NetBSD.org] / src / tests / usr.bin / xlint / lint1
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.4, Fri Jun 17 20:23:58 2022 UTC (7 months, 2 weeks ago) by rillig
CVS Tags: HEAD
Changes since 1.3: +0 -0 lines
tests/lint: remove .exp files, as they have become redundant Now that each lint1 test lists all generated diagnostics as 'expect' comments, the information from the .exp files is no longer needed. The only information that gets lost is the order of the diagnostics, which is mostly relevant for paired messages like 'inconsistent definition' + 'previous definition was here'.
Revision 1.3 / (download) - annotate - [select for diffs], Thu Apr 28 21:38:38 2022 UTC (9 months ago) by rillig
Changes since 1.2: +0 -2 lines
Diff to previous 1.2 (colored)
lint: revert resolving grammar conflicts for labeled statements Restore the grammar rule for labeled_statement as it was before cgram.y 1.400 from 2022-04-24. This allows labels with attributes again. Fix the wrong interpretation in the tests; the attributes belong to the label, not to the statement. Today in the morning, when I thought that the change in cgram.y 1.400 were innocent, I accidentally ran lint only with the options '-Sw' but forgot the option '-g' for GNU mode. Without that option, the token '__attribute__' is unknown, which unsurprisingly leads to lots of syntax errors, and these didn't change with that commit. The actual change was only visible in GNU mode.
Revision 1.2 / (download) - annotate - [select for diffs], Thu Apr 28 07:10:39 2022 UTC (9 months ago) by rillig
Changes since 1.1: +2 -0 lines
Diff to previous 1.1 (colored)
tests/lint: add test for GCC unused statement Seen in xsrc/LRGB.c:799. Even though it looks like this lint error may have been introduced by cgram.y 1.400 from 2022-04-24 (since LRGB.c has been unchanged for a month), earlier versions of lint produce the same parse errors.
Revision 1.1 / (download) - annotate - [select for diffs], Tue Jul 6 17:33:07 2021 UTC (18 months, 3 weeks ago) by rillig
tests/lint: add tests for GCC __attribute__ Before fixing the wrong handling of __attribute__ that is demonstrated at the end of gcc_attribute.c, ensure that the attribute handling works in the most basic cases. Lint currently accepts __attribute__ in more places than it should. This leads to some ambiguities in the grammar.
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.