The NetBSD Project

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

[BACK] 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 Jul 7 19:45:22 2023 UTC (7 months, 2 weeks ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

lint: warn about function definitions without header declaration

The existing warning was only issued for function declarations, not for
function definitions.

The interesting change in the tests is in msg_351.c.  Many other tests
use non-static functions due to their syntactic brevity.  In these
tests, the warning is disabled individually, to allow new functions to
be added without generating warning 351.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jul 7 00:25:23 2023 UTC (7 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.5: +82 -33 lines
Diff to previous 1.5 (colored)

tests/lint: test all combinations of {func,obj}_{decl,def}

For a non-static function definition that is not declared in a header,
lint doesn't currently warn.  The previous test didn't notice this.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jun 28 17:53:21 2023 UTC (7 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

tests/lint: fix preprocessor line number validation

When running the tests via ATF, the filename was an absolute filename,
while the preprocessing line in the test file uses a relative filename.
These two didn't match.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Apr 25 19:00:57 2023 UTC (9 months, 4 weeks ago) by rillig
Branch: MAIN
Changes since 1.3: +21 -7 lines
Diff to previous 1.3 (colored)

lint: reword message for missing declaration in header

Suggested by Christos.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Apr 22 20:27:09 2023 UTC (10 months ago) by rillig
Branch: MAIN
Changes since 1.2: +2 -4 lines
Diff to previous 1.2 (colored)

lint: fix wrong warning about 'extern' temporary identifier

Revision 1.2 / (download) - annotate - [select for diffs], Sat Apr 22 20:21:13 2023 UTC (10 months ago) by rillig
Branch: MAIN
Changes since 1.1: +6 -1 lines
Diff to previous 1.1 (colored)

tests/lint: demonstrate wrong warning about extern temporary identifier

Revision 1.1 / (download) - annotate - [select for diffs], Tue Mar 28 14:44:35 2023 UTC (10 months, 3 weeks ago) by rillig
Branch: MAIN

lint: warn about extern declarations outside headers

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

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>