The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.14 / (download) - annotate - [select for diffs], Sat Oct 1 09:42:40 2022 UTC (4 months ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

lint: add hyphen to adjective 'old-style'

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jun 22 19:23:18 2022 UTC (7 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

lint: add quotes around placeholders for the remaining messages

Reword some of the messages slightly, exchanging brevity for clarity.

Message 138 is kept as-is, as it is not yet covered by any tests.

Message 240 is kep as-is, as it is unreachable.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jun 11 11:52:13 2022 UTC (7 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

lint: add quotes around a few more placeholders in messages

Revision 1.11 / (download) - annotate - [select for diffs], Sun Apr 24 19:21:01 2022 UTC (9 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

lint: error out on missing type in declarations

Revision 1.10 / (download) - annotate - [select for diffs], Sat Jan 15 14:22:03 2022 UTC (12 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.9: +7 -4 lines
Diff to previous 1.9 (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.9 / (download) - annotate - [select for diffs], Sun Nov 28 10:11:15 2021 UTC (14 months ago) by rillig
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

tests/lint: update history of exporting unnamed objects

Revision 1.8 / (download) - annotate - [select for diffs], Sun Nov 28 09:47:18 2021 UTC (14 months ago) by rillig
Branch: MAIN
Changes since 1.7: +20 -1 lines
Diff to previous 1.7 (colored)

tests/lint1: reproduce parse error for accidentally exported name

Seen in usr.sbin/cpuctl/aarch64.c line 118.

error: aarch64.ln:857:
    not alnum or _:  (for '118d-1.0d1200000000_tmpA16PcC')

The name 00000000_tmp was not supposed to be exported.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Sep 10 20:02:51 2021 UTC (16 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

lint: replace space followed by tab with simply tab

No functional change.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Sep 4 15:13:00 2021 UTC (17 months ago) by rillig
Branch: MAIN
Changes since 1.5: +24 -2 lines
Diff to previous 1.5 (colored)

tests/lint: test emitting format strings

Revision 1.5 / (download) - annotate - [select for diffs], Mon Aug 30 21:23:37 2021 UTC (17 months ago) by rillig
Branch: MAIN
Changes since 1.4: +15 -1 lines
Diff to previous 1.4 (colored)

tests/lint: test writing and reading .ln files

The test case for reading varargs functions is no longer necessary, the
code is covered by the newly added tests as well.

Test inline function and return value usage.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Aug 30 19:48:21 2021 UTC (17 months ago) by rillig
Branch: MAIN
Changes since 1.3: +73 -3 lines
Diff to previous 1.3 (colored)

tests/lint: test varargs, printflike, scanflike

Revision 1.3 / (download) - annotate - [select for diffs], Sat Aug 28 16:21:24 2021 UTC (17 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.2: +19 -3 lines
Diff to previous 1.2 (colored)

tests/lint: demonstrate that GCC builtins are emitted by default

They will be skipped in a follow-up commit, but to see the effects of
that, they first need to be emitted.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Aug 8 11:07:19 2021 UTC (17 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.1: +20 -1 lines
Diff to previous 1.1 (colored)

tests/lint: test passing of printf-like strings between lint1 and lint2

Revision 1.1 / (download) - annotate - [select for diffs], Sun Apr 18 20:02:56 2021 UTC (21 months, 2 weeks 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

lint: test emitting of symbol information in the .ln files

Even though the new test is quite large, it didn't find any bugs in the
code.  The only thing I'm unsure about is why static functions are
exported as well, since they are supposed to be local to the translation
unit.

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>