History log of /src/tests/usr.bin/xlint/lint1/t_usage.sh |
Revision | | Date | Author | Comments |
1.28 |
| 31-Aug-2025 |
rillig | lint: check for mismatches in snprintb conversions
Seen in sh3/dmacreg.h, SH3_DMAC_CHCR_BITS.
|
1.27 |
| 08-Dec-2024 |
rillig | lint: warn about do-while macros that end with a semicolon
|
1.26 |
| 01-Dec-2024 |
rillig | lint: warn about function definitions that still use identifier lists
|
1.25 |
| 28-Nov-2024 |
rillig | lint: add queries for typedefs to struct/union and their pointers
As suggested in share/misc/style since 1.75 from August 2023.
These are queries instead of warnings as the number of false positives or historical practice is too high; these queries are only intended for detecting these typedefs on newly added types.
|
1.24 |
| 23-Nov-2024 |
rillig | lint: use separate message when discarding a qualifier in call
|
1.23 |
| 10-Jul-2024 |
rillig | lint: add warning for '!(var = constant)'
This catches expressions like 'ATF_CHECK(errno = ENOENT)', which was intended to use '==' instead of '='.
|
1.22 |
| 09-Jun-2024 |
rillig | branches: 1.22.2; lint: warn about lossy floating point constant to integer conversions
|
1.21 |
| 11-May-2024 |
rillig | lint: warn when comparing an integer to a floating point constant
|
1.20 |
| 27-Apr-2024 |
rillig | lint: add query for conversion from void pointer to other pointer
|
1.19 |
| 30-Mar-2024 |
rillig | lint: add query for implicit integer-to-floating conversion
|
1.18 |
| 03-Mar-2024 |
rillig | lint: check for unreachable bits and fields in snprintb formats
While here, clean up a few existing checks.
|
1.17 |
| 02-Mar-2024 |
rillig | lint: check snprintb formats for overlapping bits and fields
|
1.16 |
| 01-Mar-2024 |
rillig | lint: test format strings from snprintb calls
The functions snprintb and snprintb_m are specific to NetBSD, and their format strings are tricky to get correct. Provide some assistance in catching the most common mistakes.
|
1.15 |
| 03-Feb-2024 |
rillig | lint: warn about short octal escape followed by '8' or '9'
These mistakes is typically found in snprintb format directives but is probably a typo everywhere else as well.
|
1.14 |
| 20-Jan-2024 |
rillig | lint: add query for const automatic variables
|
1.13 |
| 07-Jan-2024 |
rillig | lint: allow querying for invisible characters in literals and constants
|
1.12 |
| 10-Dec-2023 |
rillig | lint: allow querying for 'static' followed by non-'static' declaration
|
1.11 |
| 03-Aug-2023 |
rillig | lint: make '_Static_assert' only available in C11 or C23 mode
|
1.10 |
| 02-Jul-2023 |
rillig | lint: add initial support for C23
Required by xsrc/external/mit/MesaLib.old, brw_eu_validate.c, which initializes a struct using empty braces: 'return (struct string){};'.
|
1.9 |
| 30-Jun-2023 |
rillig | lint: add query for assigning an integer 0 to a pointer
|
1.8 |
| 28-Jun-2023 |
rillig | tests/lint: use standard form of ATF tests, test removing output file
|
1.7 |
| 24-Jun-2023 |
rillig | lint: add query for comparing 'char' with plain integers
|
1.6 |
| 24-Jun-2023 |
rillig | lint: add query for redundant 'extern' in function declaration
|
1.5 |
| 22-Jun-2023 |
rillig | lint: add query for comma operator
|
1.4 |
| 03-Jun-2023 |
rillig | lint: add query for static variables in functions
This query allows finding hidden global variables, as an easier-to-read alternative to 'objdump -t'.
|
1.3 |
| 13-May-2023 |
rillig | lint: add query for chained assignments
|
1.2 |
| 23-Apr-2023 |
rillig | lint: be strict when parsing command line for excluded message IDs
Previously, lint accepted -X '1, 2, 3', while the manual page lists the IDs without spaces.
On 32-bit platforms, lint accepted -X -4294967295, and on 64-bit platforms, it accepted the corresponding larger numbers.
The code for parsing message IDs and query IDs conceptually does the same, but the implementations differed for no reason.
|
1.1 |
| 23-Apr-2023 |
rillig | tests/lint: test command line parsing for message and query IDs
The parsing methods differ but shouldn't.
|
1.22.2.1 |
| 02-Aug-2025 |
perseant | Sync with HEAD
|