History log of /src/tests/usr.bin/xlint/lint1/emit.c |
Revision | | Date | Author | Comments |
1.18 |
| 09-Jun-2024 |
rillig | tests/lint: demonstrate wrong result for nested function calls
|
1.17 |
| 22-May-2023 |
rillig | lint: fix emitted type for arrays of unknown size
|
1.16 |
| 22-May-2023 |
rillig | tests/lint: demonstrate wrong emitted array length in initialization
Seen in usr.bin/indent/debug.c, in the various 'name' arrays.
|
1.15 |
| 28-Mar-2023 |
rillig | lint: warn about extern declarations outside headers
https://mail-index.netbsd.org/tech-userlevel/2023/03/15/msg013727.html
|
1.14 |
| 01-Oct-2022 |
rillig | lint: add hyphen to adjective 'old-style'
|
1.13 |
| 22-Jun-2022 |
rillig | 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.
|
1.12 |
| 11-Jun-2022 |
rillig | lint: add quotes around a few more placeholders in messages
|
1.11 |
| 24-Apr-2022 |
rillig | lint: error out on missing type in declarations
|
1.10 |
| 15-Jan-2022 |
rillig | 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.
|
1.9 |
| 28-Nov-2021 |
rillig | tests/lint: update history of exporting unnamed objects
|
1.8 |
| 28-Nov-2021 |
rillig | 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.
|
1.7 |
| 10-Sep-2021 |
rillig | lint: replace space followed by tab with simply tab
No functional change.
|
1.6 |
| 04-Sep-2021 |
rillig | tests/lint: test emitting format strings
|
1.5 |
| 30-Aug-2021 |
rillig | 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.
|
1.4 |
| 30-Aug-2021 |
rillig | tests/lint: test varargs, printflike, scanflike
|
1.3 |
| 28-Aug-2021 |
rillig | 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.
|
1.2 |
| 08-Aug-2021 |
rillig | tests/lint: test passing of printf-like strings between lint1 and lint2
|
1.1 |
| 18-Apr-2021 |
rillig | 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.
|