CVS log for src/tests/usr.bin/xlint/lint1/decl_arg.c
Up to [cvs.NetBSD.org] / src / tests / usr.bin / xlint / lint1
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Sep 28 15:51:40 2024 UTC (5 weeks, 6 days ago) by rillig
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +1 -3
lines
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.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Sep 28 14:25:04 2024 UTC (5 weeks, 6 days ago) by rillig
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +25 -3
lines
lint: allow more than one __attribute__ on a parameter declaration
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Jan 28 08:17:27 2024 UTC (9 months, 1 week ago) by rillig
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +5 -5
lines
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.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Aug 2 18:51:25 2023 UTC (15 months, 1 week ago) by rillig
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +16 -16
lines
lint: distinguish between arguments and parameters
Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Aug 2 05:44:27 2023 UTC (15 months, 1 week ago) by rillig
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +19 -1
lines
lint: simplify handling of old-style arguments
Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Jul 9 11:18:55 2023 UTC (16 months ago) by rillig
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +6 -6
lines
lint: clean up wording in diagnostics
Use the term 'parameter' as defined in C99 3.15.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Jul 9 11:01:27 2023 UTC (16 months ago) by rillig
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3
lines
lint: clean up the wording of a few diagnostics
Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Mar 28 14:44:34 2023 UTC (19 months, 1 week ago) by rillig
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -1
lines
lint: warn about extern declarations outside headers
https://mail-index.netbsd.org/tech-userlevel/2023/03/15/msg013727.html
Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Jun 20 21:13:36 2022 UTC (2 years, 4 months ago) by rillig
Branches: MAIN
CVS tags: netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +15 -15
lines
lint: add quotes around several placeholders in messages
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Jul 25 06:04:40 2021 UTC (3 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +6 -2
lines
tests/lint: demonstrate internal error in parsing a declaration
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Jul 10 09:24:27 2021 UTC (3 years, 4 months ago) by rillig
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +7 -1
lines
tests/lint: add more tests for covering the grammar
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Jul 10 08:40:36 2021 UTC (3 years, 4 months ago) by rillig
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +17 -2
lines
tests/lint: add code coverage for grammar rule parameter_declaration
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Jul 10 08:01:11 2021 UTC (3 years, 4 months ago) by rillig
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +13 -1
lines
lint: add code coverage for grammar rule direct_notype_param_decl
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Jul 10 06:01:41 2021 UTC (3 years, 4 months ago) by rillig
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +6 -1
lines
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.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Jul 9 20:20:03 2021 UTC (3 years, 4 months ago) by rillig
Branches: MAIN
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.
CVSweb <webmaster@jp.NetBSD.org>