The NetBSD Project

CVS log for src/tests/usr.bin/xlint/lint1/decl_struct_member.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.19: download - view: text, markup, annotated - select for diffs
Fri Jan 3 03:14:47 2025 UTC (11 days, 16 hours ago) by rillig
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +1 -2 lines
lint: add detail to message about obsolete identifier list

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Dec 1 18:37:54 2024 UTC (6 weeks, 2 days ago) by rillig
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -1 lines
lint: warn about function definitions that still use identifier lists

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon May 22 12:55:04 2023 UTC (19 months, 3 weeks ago) by rillig
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -2 lines
lint: rename constant NOTSPEC to NO_TSPEC

It was too easy to misread the old name as NOT_SPEC instead of the
intended NO_TSPEC.

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

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

Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Jun 17 18:54:53 2022 UTC (2 years, 6 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.14: preferred, colored
Changes since revision 1.14: +2 -2 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.14: download - view: text, markup, annotated - select for diffs
Sat Jan 15 14:22:03 2022 UTC (3 years ago) by rillig
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +5 -3 lines
tests/lint: expect complete messages in feature tests

Previously, the tests contained many comments like /* expect: 123 */,
which were useless to a casual reader since nobody is expected to learn
lint's message IDs by heart.  Replace these with the complete
diagnostics, to show what lint is complaining about.

The tests named msg_*.c have been left unmodified since they mention the
full message text in their header comment.

No functional change.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Dec 22 14:49:11 2021 UTC (3 years ago) by rillig
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3 lines
lint: remove spaces around bit-field colon

As seen in /usr/share/misc/style.

No binary change.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Sep 5 11:42:32 2021 UTC (3 years, 4 months ago) by rillig
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +5 -3 lines
tests/lint: document the fixed assertion failure for struct

The change to cgram.y 1.328 from 2021-07-15 didn't fix the crash on
purpose, it was merely a side effect.  The grammar rule that probably
fixed this was that the error handling now skips to the next T_SEMI,
which it didn't do before.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Aug 25 22:04:52 2021 UTC (3 years, 4 months ago) by rillig
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +17 -1 lines
tests/lint: test conversion from long long to intptr_t on ilp32

Seen in usr.bin/make/var.c:1608.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Jul 21 21:17:57 2021 UTC (3 years, 5 months ago) by rillig
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
lint: rename grammar rules for specifier-qualifier-list

No functional change.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Jul 15 21:00:05 2021 UTC (3 years, 6 months ago) by rillig
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +10 -1 lines
tests/lint: cover more edge cases in the parser

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Jul 15 20:05:49 2021 UTC (3 years, 6 months ago) by rillig
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
lint: remove message 66 about missing semicolon in struct-declaration

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Jul 15 19:51:29 2021 UTC (3 years, 6 months ago) by rillig
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +10 -1 lines
tests/lint: test struct declarations

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Jul 14 20:39:13 2021 UTC (3 years, 6 months ago) by rillig
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +22 -1 lines
tests/lint: add several tests for edge cases in the grammar

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Jul 10 22:46:02 2021 UTC (3 years, 6 months ago) by rillig
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +1 -2 lines
lint: fix parsing of __attribute__ for member (since 2021-07-10)

Since cgram.y 1.280 from 2021-07-10, lint could not parse struct members
that have multiple __attribute__ in front of their type.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Jul 10 22:34:02 2021 UTC (3 years, 6 months ago) by rillig
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +9 -2 lines
tests/lint: demonstrate parse error for __attribute__ member

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Jul 10 17:35:54 2021 UTC (3 years, 6 months ago) by rillig
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2 lines
lint: rename clrtyp/deftyp to begin_type/end_type

The abbreviations clr/def did not make it obvious that these two
functions or grammar rules form pairs.

No functional change.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Jun 20 11:24:32 2021 UTC (3 years, 6 months ago) by rillig
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +14 -1 lines
lint: fix assertion failure on malformed struct declaration

Found using afl.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Jun 19 19:49:15 2021 UTC (3 years, 6 months ago) by rillig
Branches: MAIN
lint: fix assertion failure in struct with unnamed member

Found using afl.

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>