The NetBSD Project

CVS log for src/tests/usr.bin/xlint/lint1/decl_direct_abstract.c

[BACK] Up to [cvs.NetBSD.org] / src / tests / usr.bin / xlint / lint1

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Jan 28 08:17:27 2024 UTC (11 months, 4 weeks ago) by rillig
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2 lines
tests/lint: sort multiple diagnostics per line chronologically

For now, the chronologic order is not enforced but has to be established
manually, for example by removing all 'expect' comment lines and
regenerating them with 'accept.sh -u'.

While here, clean up a few instances that came up when regenerating the
'expect' comments, such as wrong indentation or needless deviation from
the 'expect+1' form.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Oct 22 21:30:32 2023 UTC (15 months ago) by rillig
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +10 -1 lines
tests/lint: test GCC attributes after abstract function type

Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Aug 2 21:11:35 2023 UTC (17 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +45 -34 lines
lint: fix handling of unnamed function parameters

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Jul 1 20:57:37 2023 UTC (18 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +58 -49 lines
tests/lint: rework tests for type names

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Mar 28 14:44:34 2023 UTC (21 months, 4 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -1 lines
lint: warn about extern declarations outside headers

https://mail-index.netbsd.org/tech-userlevel/2023/03/15/msg013727.html

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Jun 17 18:54:53 2022 UTC (2 years, 7 months ago) by rillig
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +11 -11 lines
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 - view: text, markup, annotated - select for diffs
Fri Apr 1 23:16:32 2022 UTC (2 years, 9 months ago) by rillig
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +111 -4 lines
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 - view: text, markup, annotated - select for diffs
Fri Apr 1 22:28:21 2022 UTC (2 years, 9 months ago) by rillig
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +13 -3 lines
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 - view: text, markup, annotated - select for diffs
Tue Sep 14 19:08:40 2021 UTC (3 years, 4 months ago) by rillig
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -3 lines
tests/lint: fix typo from previous commit

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Sep 14 19:06:27 2021 UTC (3 years, 4 months ago) by rillig
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -5 lines
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 - view: text, markup, annotated - select for diffs
Tue Sep 14 19:02:15 2021 UTC (3 years, 4 months ago) by rillig
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +18 -1 lines
tests/lint: test missing support for int[*][3]

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Sep 13 22:09:06 2021 UTC (3 years, 4 months ago) by rillig
Branches: 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.

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>