The NetBSD Project

CVS log for src/tests/usr.bin/xlint/lint1/Attic/msg_340.exp

[BACK] Up to [] / src / tests / usr.bin / xlint / lint1

Request diff between arbitrary revisions

Default branch: MAIN

Revision 1.6, Fri Jun 17 20:23:59 2022 UTC (22 months ago) by rillig
Branch: MAIN
Changes since 1.5: +0 -0 lines

tests/lint: remove .exp files, as they have become redundant

Now that each lint1 test lists all generated diagnostics as 'expect'
comments, the information from the .exp files is no longer needed.  The
only information that gets lost is the order of the diagnostics, which
is mostly relevant for paired messages like 'inconsistent definition' +
'previous definition was here'.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jun 17 06:59:16 2022 UTC (22 months ago) by rillig
Branch: MAIN
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored)

tests/lint: add more details to tests from msg_300 until msg_343

Revision 1.4 / (download) - annotate - [select for diffs], Sat Apr 16 13:25:27 2022 UTC (2 years ago) by rillig
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored)

lint: model C language levels in a future-compatible way

The options -t, -s and -S are confusing because they are used
inconsistently.  The option -S enables C99 features, but when using it
instead of -s, it also doesn't enable all checks required by C90 and
later.  Prepare fixing of these inconsistencies by replacing the flag
variables with language levels that can be extended in a
straight-forward way as new C standards arrive.

| option | allow_trad | allow_c90 | allow_c99 | allow_c11 |
| -t     | x          | -         | -         | -         |
| (none) | x          | x         | -         | -         |
| -s     | -          | x         | -         | -         |
| -S     | -          | x         | x         | -         |
| -Ac11  | -          | x         | x         | x         |

Each usage of the old flag variables will be inspected and migrated
individually, to clean up the subtle variations in the conditions and to
provide a simpler model.

When lint was created in 1995, its focus was migrating traditional C
code to C90 code.  Lint does not help in migrating from C90 to C99 or
from C99 to C11 since there are only few silent changes, and simply
because nobody took the time to implement these migration aids.  If
necessary, such migration modes could be added separately.

There is a small functional change: when the option -s is combined with
either -S or -Ac11, lint now only keeps the last of these options.
Previously, these options could be combined, leading to a mixture of
language levels, halfway between C90, C99 and C11.  Especially combining
traditional C with C11 doesn't make sense, but xlint currently allows

The 3 tests that accidentally specified multiple language levels have
been adjusted to a single language level.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jul 5 19:53:43 2021 UTC (2 years, 9 months ago) by rillig
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

lint: rename message 340 to talk about "GCC extension", not "GNU"

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 21 20:45:00 2021 UTC (3 years ago) by rillig
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

lint: prefix error messages with 'error:'

This makes it easier to find these errors in the build logs.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 7 19:42:54 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN

lint: in strict C mode, warn about initialization with '[a ... b]'

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

CVSweb <>