Up to [cvs.NetBSD.org] / src / tests / usr.bin / xlint / lint1
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.7 / (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.6: +11 -11
lines
Diff to previous 1.6 (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.6 / (download) - annotate - [select for diffs], Fri Apr 1 23:16:32 2022 UTC (10 months ago) by rillig
Branch: MAIN
Changes since 1.5: +111 -4
lines
Diff to previous 1.5 (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.5 / (download) - annotate - [select for diffs], Fri Apr 1 22:28:21 2022 UTC (10 months ago) by rillig
Branch: MAIN
Changes since 1.4: +13 -3
lines
Diff to previous 1.4 (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.4 / (download) - annotate - [select for diffs], Tue Sep 14 19:08:40 2021 UTC (16 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.3: +3 -3
lines
Diff to previous 1.3 (colored)
tests/lint: fix typo from previous commit
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: +3 -5
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: +18 -1
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.