History log of /src/tests/usr.bin/xlint/lint1/c11.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.11 18-Sep-2025 rillig

lint: in C23 mode, do not warn about an empty parameter list


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base
# 1.10 12-Apr-2025 rillig

lint: s/illegal/invalid/g

Lint does not provide legal advice.


# 1.9 24-Feb-2025 rillig

lint: remove no-op variant of the unary '&' operator

Neither K&R 1978 nor any of the C standards mentions that &function or
&array would be a no-op. This no-op behavior produced wrong warnings in
sbin/gpt.


# 1.8 30-Nov-2024 rillig

tests/lint: add a few more tests to increase code coverage


Revision tags: perseant-exfatfs-base-20240630 perseant-exfatfs-base
# 1.7 07-May-2024 rillig

branches: 1.7.2;
tests/lint: show that in C23 mode, bool is not yet defined

The tests in C11 and C23 mode look the same right now but will change
soon.

The warnings in the C11 test disappeared because after the first error,
warnings about unused variables are suppressed by check_variable_usage,
as they are often wrong.


# 1.6 28-Jan-2024 rillig

tests/lint: sort multiple diagnostics per line chronologically

For now, the chronologic order is not enforced but has to be established
manually, for example by removing all 'expect' comment lines and
regenerating them with 'accept.sh -u'.

While here, clean up a few instances that came up when regenerating the
'expect' comments, such as wrong indentation or needless deviation from
the 'expect+1' form.


# 1.5 03-Aug-2023 rillig

lint: make '_Static_assert' only available in C11 or C23 mode


# 1.4 28-Jul-2023 rillig

tests/lint: test declarations in C11 and C23


# 1.3 13-Jul-2023 rillig

lint: in C23 mode, recognize the keyword 'thread_local'


# 1.2 12-Jul-2023 rillig

lint: reject _Noreturn if it occurs in invalid places

C11 introduced _Noreturn as a function-specifier, not as a type
attribute. The latter may occur in more places.


# 1.1 12-Jul-2023 rillig

tests/lint: add test for _Noreturn from C11