CVS log for src/tests/usr.bin/xlint/lint1/d_c99_bool.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.11: download - view: text, markup, annotated - select for diffs
Mon Jul 3 09:37:14 2023 UTC (21 months, 2 weeks ago) by rillig
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
HEAD
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +47 -83
lines
tests/lint: clean up tests for C99 bool
Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Mar 28 14:44:34 2023 UTC (2 years ago) by rillig
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -1
lines
lint: warn about extern declarations outside headers
https://mail-index.netbsd.org/tech-userlevel/2023/03/15/msg013727.html
Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Jan 16 08:40:31 2022 UTC (3 years, 3 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.8: preferred, colored
Changes since revision 1.8: +4 -3
lines
tests/lint: update comment to reality
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Jan 15 14:22:03 2022 UTC (3 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +23 -12
lines
tests/lint: expect complete messages in feature tests
Previously, the tests contained many comments like /* expect: 123 */,
which were useless to a casual reader since nobody is expected to learn
lint's message IDs by heart. Replace these with the complete
diagnostics, to show what lint is complaining about.
The tests named msg_*.c have been left unmodified since they mention the
full message text in their header comment.
No functional change.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Mar 30 14:25:28 2021 UTC (4 years ago) by rillig
Branches: MAIN
CVS tags: cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2
lines
lint: rewrite handling of initializations, fixing several bugs
The previous implementation had a wrong model of how initialization
happens in C99, its assertions failed in all kind of edge cases and it
was not possible to fix the remaining bugs one at a time without running
into even more obscure assertion failures.
The debug logging was detailed but did not help to clarify the
situation. After about 20 failed attempts at fixing the small details I
decided to start all over and rewrite the initialization code from
scratch. I left the low-level parts of handling designators, the code
that is independent of brace_level and the high-level parts of how the
parser calls into this module. Everything else is completely new.
The concept of a brace level stays since that is how C99 describes
initialization. The previous code could not handle multi-level
designations (see d_init_pop_member.c). There are no more assertion
failures in the initialization code.
Some TODO comments have been left in the tests to keep the line numbers
the same in this commit. These will be cleaned up in a follow-up
commit.
The new implementation does not handle initialization with "missing"
braces. This is an edge case that both GCC and Clang warn about, so it
is not widely used. If necessary, it may be added later.
The new implementation does not use any global variables in the vast
majority of the functions, to make all dependencies and possible
modifications obvious.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Feb 21 09:07:58 2021 UTC (4 years, 2 months ago) by rillig
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +12 -12
lines
lint: force each test to declare the expected diagnostics
By listing the expected diagnostics directly at the code that triggers
the diagnostics, it is easier to cross-check whether the diagnostics
make sense.
No functional change to lint itself.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Jan 10 13:17:24 2021 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +14 -5
lines
lint: explain missing error for _Bool constant expressions
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Jan 10 12:46:38 2021 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +5 -5
lines
lint: fix conversion of non-constant scalar to _Bool
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Jan 10 12:34:56 2021 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +9 -9
lines
lint: fix conversion of constant expressions to _Bool
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Jan 10 12:29:46 2021 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +53 -1
lines
lint: add test for converting non-constant expressions to _Bool
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Jan 10 11:24:42 2021 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
lint: demonstrate wrong handling of conversion to _Bool
CVSweb <webmaster@jp.NetBSD.org>