Up to [cvs.NetBSD.org] / src / tests / usr.bin / xlint / lint1
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.8, Fri Jun 17 20:23:59 2022 UTC (7 months, 2 weeks ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +0 -0
lines
FILE REMOVED
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.7 / (download) - annotate - [select for diffs], Fri Apr 1 23:16:32 2022 UTC (10 months ago) by rillig
Branch: MAIN
Changes since 1.6: +1 -1
lines
Diff to previous 1.6 (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.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: +4 -4
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: +4 -4
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: +7 -6
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: +5 -6
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: +6 -5
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