CVS log for src/tests/usr.bin/xlint/lint1/expr_precedence.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.12: download - view: text, markup, annotated - select for diffs
Wed May 1 07:40:11 2024 UTC (8 months, 3 weeks ago) by rillig
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
HEAD
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -4
lines
lint: support _Alignas and __attribute__((__aligned(4)))
Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Mar 28 14:44:34 2023 UTC (21 months, 4 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -1
lines
lint: warn about extern declarations outside headers
https://mail-index.netbsd.org/tech-userlevel/2023/03/15/msg013727.html
Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Aug 25 19:03:48 2022 UTC (2 years, 5 months ago) by rillig
Branches: MAIN
CVS tags: netbsd-10-base,
netbsd-10-1-RELEASE,
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.9: preferred, colored
Changes since revision 1.9: +1 -2
lines
lint: remove explicit list of known GCC attributes
Most GCC attributes consist of a single identifier. Up to now, it was
necessary to list each of these identifiers in the grammar, even those
that only apply to a single target architecture.
Instead, parse the general form of attributes, matching the few
attributes that lint handles by name instead. While here, rename the
grammar rules to use the GCC terms.
To avoid conflicts between the global function 'printf' and the GCC
attribute of the same name, do not add GCC attributes to the symbol
table, and don't make these symbols 'extern' either.
ok christos@.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Jun 17 18:54:53 2022 UTC (2 years, 7 months ago) by rillig
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2
lines
tests/lint: make 'expect+-' comments stricter
Previously, the expectations from these comments were already satisfied
if the expectation occurred somewhere in the actual message from lint.
This meant that the prefix 'error:' or 'warning:' could be omitted from
the 'expect' comment. These omissions were hard to see in a manual
review. Now any omissions must be visually marked with '...'.
The test msg_342 now reports its messages properly as being in the file
msg_342.c, rather than msg_341.c. This had been a copy-and-paste
mistake.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Nov 16 17:41:23 2021 UTC (3 years, 2 months ago) by rillig
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2
lines
lint: rename attron to in_gcc_attribute
No functional change.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Jul 26 18:10:14 2021 UTC (3 years, 6 months ago) by rillig
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -2
lines
lint: fix parse error in conditional expression (since 2021-07-15)
Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Jul 26 18:06:43 2021 UTC (3 years, 6 months ago) by rillig
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +25 -1
lines
tests/lint: show bug in conditional expression (since 2021-07-15)
Since cgram.y 1.325 from 2021-07-15, conditional expressions did not
accept a comma-expression in the then-branch anymore. In practice, this
is an edge case though since comma expressions are rare.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Jul 26 17:27:22 2021 UTC (3 years, 6 months ago) by rillig
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +6 -3
lines
lint: fix parsing of chained assignments (since 2021-07-15)
The grammar rule for assignment_expression is quite different from those
of the other expressions, for 2 reasons: first, its precedence is
right-to-left. Second, its left-hand side must be an lvalue, which
rules out all binary operators. K&R C even had a grammar rule named
'lvalue' for this purpose. Later C standards made the kinds of
expressions more fine-grained and used 'unary_expression' in this place.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Jul 26 17:09:46 2021 UTC (3 years, 6 months ago) by rillig
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +13 -1
lines
tests/lint: demonstrate bug in chained assignment (since 2021-07-15)
Since cgram.y 1.325 from 2021-07-15, lint has been parsing assignment
expressions correctly. It got the associativity wrong.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Jul 15 17:48:10 2021 UTC (3 years, 6 months ago) by rillig
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +10 -2
lines
tests/lint: explain global variables in __attribute__
Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Jul 15 17:20:58 2021 UTC (3 years, 6 months ago) by rillig
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -3
lines
lint: in the grammar, replace %prec with explicit rules
This way, in the arguments of __attribute__, where only constant
expressions are expected, a '=' leads to a syntax error. Previously,
this was not detected.
No noticeable change in practice since these cases are already handled
by the compilers.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Jul 15 17:09:08 2021 UTC (3 years, 6 months ago) by rillig
Branches: MAIN
tests/lint: test precedence of operators
CVSweb <webmaster@jp.NetBSD.org>