Home | History | Annotate | Download | only in lint1
History log of /src/tests/usr.bin/xlint/lint1/decl_arg.c
RevisionDateAuthorComments
 1.17  03-Jan-2025  rillig lint: add detail to message about obsolete identifier list
 1.16  01-Dec-2024  rillig lint: warn about function definitions that still use identifier lists
 1.15  28-Sep-2024  rillig lint: handle __attribute__((__unused__)) for functions and variables

Previously, lint ignored the '__unused' marker, requiring its own /*
ARGSUSED */ marker instead.

Previously, attributes were interpreted as soon as the closing
parenthesis was parsed. For a function definition such as '__unused
static void f(void) {}', this was too early, as the attribute was not
connected to the function, as the function was not parsed yet.

Now, the 'unused' attribute is passed around by the parser, until it is
merged into the declarator where it belongs. Due to an inaccuracy in
the grammar, the 'used' attribute has to be passed through a
parameter_list, even though a parameter list is not related to
attributes. Still, it's better than before.
 1.14  28-Sep-2024  rillig lint: allow more than one __attribute__ on a parameter declaration
 1.13  28-Jan-2024  rillig branches: 1.13.2;
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.12  02-Aug-2023  rillig lint: distinguish between arguments and parameters
 1.11  02-Aug-2023  rillig lint: simplify handling of old-style arguments
 1.10  09-Jul-2023  rillig lint: clean up wording in diagnostics

Use the term 'parameter' as defined in C99 3.15.
 1.9  09-Jul-2023  rillig lint: clean up the wording of a few diagnostics
 1.8  28-Mar-2023  rillig lint: warn about extern declarations outside headers

https://mail-index.netbsd.org/tech-userlevel/2023/03/15/msg013727.html
 1.7  20-Jun-2022  rillig lint: add quotes around several placeholders in messages
 1.6  25-Jul-2021  rillig tests/lint: demonstrate internal error in parsing a declaration
 1.5  10-Jul-2021  rillig tests/lint: add more tests for covering the grammar
 1.4  10-Jul-2021  rillig tests/lint: add code coverage for grammar rule parameter_declaration
 1.3  10-Jul-2021  rillig lint: add code coverage for grammar rule direct_notype_param_decl
 1.2  10-Jul-2021  rillig tests/lint: move test for __attribute__ out of msg_124.c

That test case didn't belong there since there was no chance of getting
an 'illegal pointer combination' by applying an operator.
 1.1  09-Jul-2021  rillig tests/lint: add test for unrealistic edge cases in declarations

The example code for triggering these grammar rules looks completely
contrived. Even if lint had not implemented these cases, hopefully
nobody would have ever noticed.
 1.13.2.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed