Up to [cvs.NetBSD.org] / src / tests / usr.bin / xlint / lint1
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.6, Fri Jun 17 20:23:58 2022 UTC (7 months, 2 weeks ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +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.5 / (download) - annotate - [select for diffs], Fri Apr 1 23:16:32 2022 UTC (10 months ago) by rillig
Branch: MAIN
Changes since 1.4: +45 -1
lines
Diff to previous 1.4 (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.4 / (download) - annotate - [select for diffs], Fri Apr 1 22:28:21 2022 UTC (10 months ago) by rillig
Branch: MAIN
Changes since 1.3: +3 -1
lines
Diff to previous 1.3 (colored)
lint: improve determination of abstract typename Still not perfect, but at least a step in the right direction. See decl_direct_abstract.c for the missing edge cases. See PR#22119.
Revision 1.3 / (download) - annotate - [select for diffs], Tue Sep 14 19:06:27 2021 UTC (16 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.2: +2 -4
lines
Diff to previous 1.2 (colored)
lint: support int[*][3] from C99 No warning in pre-C99 mode since this declarator is not used in practice anyway.
Revision 1.2 / (download) - annotate - [select for diffs], Tue Sep 14 19:02:15 2021 UTC (16 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.1: +4 -0
lines
Diff to previous 1.1 (colored)
tests/lint: test missing support for int[*][3]
Revision 1.1 / (download) - annotate - [select for diffs], Mon Sep 13 22:09:06 2021 UTC (16 months, 2 weeks ago) by rillig
Branch: MAIN
tests/lint: add more tests for direct-abstract-declarator Lint's grammar in this area differs a lot from the grammar in C99. GCC's parser has a long comment about special cases in this area. It's tricky to even parse these type names correctly, let alone assign them the correct types, that's why it needs more tests before trying to refactor that code.