The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.8 / (download) - annotate - [select for diffs], Tue Mar 28 14:44:34 2023 UTC (11 months ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +3 -1 lines
Diff to previous 1.7 (colored)

lint: warn about extern declarations outside headers

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

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jan 15 14:22:03 2022 UTC (2 years, 1 month ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (colored)

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.6 / (download) - annotate - [select for diffs], Thu Mar 25 01:42:53 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.5: +19 -5 lines
Diff to previous 1.5 (colored)

lint: fix C99 initialization with expression of type 'struct'

This has been a long-standing limitation of lint.  Now it is almost
ready for C99, see the list of "major changes" in the foreword of C99.

One known remaining bug in the area of initialization is designators
with several levels, such as '.member[2].member.member'.  Oh, and
designators for arrays are only supported in the parser but not in the
type checker.  There's still some work to do.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Mar 18 20:58:02 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
Changes since 1.4: +1 -2 lines
Diff to previous 1.4 (colored)

tests/lint: warning 210 has type information by now

Revision 1.4 / (download) - annotate - [select for diffs], Sun Feb 21 09:07:58 2021 UTC (3 years ago) by rillig
Branch: MAIN
Changes since 1.3: +6 -6 lines
Diff to previous 1.3 (colored)

lint: force each test to declare the expected diagnostics

By listing the expected diagnostics directly at the code that triggers
the diagnostics, it is easier to cross-check whether the diagnostics
make sense.

No functional change to lint itself.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jan 31 14:39:31 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

lint: add common header for all tests

For those tests that didn't use GCC-style line markers such as "# 2",
the line numbers of the diagnostics stay the same.  This is purely
conincidental.  Before, the 3 lines came from lint's built-in
definitions (see 'builtins' in main1.c), and line number counting
continued as if nothing had happened, making the first line of the
actual file line 4.  These 3 built-in lines are now replaced with 3
lines of file header.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Dec 30 13:41:27 2020 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.1: +7 -0 lines
Diff to previous 1.1 (colored)

lint: document purpose of the test d_struct_init_nested

Revision 1.1 / (download) - annotate - [select for diffs], Mon Dec 28 10:22:21 2020 UTC (3 years, 2 months ago) by rillig
Branch: MAIN

lint1: add test for initializing nested structs

Discovered in var.c 1.774 from 2020-12-28.

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>