Up to [cvs.NetBSD.org] / src / tests / usr.bin / xlint / lint1
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.9 / (download) - annotate - [select for diffs], Fri Jun 17 18:54:53 2022 UTC (7 months, 2 weeks ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base,
netbsd-10,
HEAD
Changes since 1.8: +4 -4
lines
Diff to previous 1.8 (colored)
tests/lint: make 'expect+-' comments stricter Previously, the expectations from these comments were already satisfied if the expectation occurred somewhere in the actual message from lint. This meant that the prefix 'error:' or 'warning:' could be omitted from the 'expect' comment. These omissions were hard to see in a manual review. Now any omissions must be visually marked with '...'. The test msg_342 now reports its messages properly as being in the file msg_342.c, rather than msg_341.c. This had been a copy-and-paste mistake.
Revision 1.8 / (download) - annotate - [select for diffs], Fri Apr 1 23:16:32 2022 UTC (10 months ago) by rillig
Branch: MAIN
Changes since 1.7: +2 -2
lines
Diff to previous 1.7 (colored)
lint: add type details to message about 'sizeof(function)' The code in add_function is severely broken, it mixes up the return type of the function with the argument types. For now, at least show the guessed type in the diagnostic, to allow human readers quickly spot the bug. Extend the test cases in decl_direct_abstract.c to show that the behavior differs unreasonably if the first parameter of the function is equal to its return type.
Revision 1.7 / (download) - annotate - [select for diffs], Sun Jul 25 22:03:42 2021 UTC (18 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.6: +2 -2
lines
Diff to previous 1.6 (colored)
tests/lint: cover every code line in the grammar
Revision 1.6 / (download) - annotate - [select for diffs], Sun Jul 25 19:41:33 2021 UTC (18 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.5: +5 -6
lines
Diff to previous 1.5 (colored)
tests/lint: explain where the second __attribute__ comes from
Revision 1.5 / (download) - annotate - [select for diffs], Sun Jul 25 19:22:08 2021 UTC (18 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.4: +12 -36
lines
Diff to previous 1.4 (colored)
tests/lint: fix unintended line breaks
Revision 1.4 / (download) - annotate - [select for diffs], Sun Jul 25 15:48:58 2021 UTC (18 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.3: +2 -1
lines
Diff to previous 1.3 (colored)
lint: fix parsing of 'typeof(double(typeof(0.0)))' By removing the misplaced grammar rule 'abstract_declarator: T_TYPEOF', the type expression 'typeof(double(typeof(0.0)))' is no longer interpreted as a declarator, but rather as a type specifier, just as in the GCC parser. This resolves 7 shift/reduce conflicts.
Revision 1.3 / (download) - annotate - [select for diffs], Sun Jul 25 09:53:01 2021 UTC (18 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.2: +2 -10
lines
Diff to previous 1.2 (colored)
tests/lint: try harder to reduce 'abstract_declarator: T_TYPEOF' At the top level of a type_name, declaration-specifiers take precedence, but these cannot look inside the parentheses of a direct-abstract-declarator.
Revision 1.2 / (download) - annotate - [select for diffs], Sun Jul 25 09:47:08 2021 UTC (18 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.1: +10 -2
lines
Diff to previous 1.1 (colored)
tests/lint: document unreachable 'abstract_declarator: T_TYPEOF'
Revision 1.1 / (download) - annotate - [select for diffs], Sun Jul 25 08:42:28 2021 UTC (18 months, 1 week ago) by rillig
Branch: MAIN
tests/lint: test parsing of type_name