Home | History | Annotate | Download | only in lint1
History log of /src/tests/usr.bin/xlint/lint1/d_c99_union_cast.c
RevisionDateAuthorComments
 1.8  07-Jul-2023  rillig lint: warn about function definitions without header declaration

The existing warning was only issued for function declarations, not for
function definitions.

The interesting change in the tests is in msg_351.c. Many other tests
use non-static functions due to their syntactic brevity. In these
tests, the warning is disabled individually, to allow new functions to
be added without generating warning 351.
 1.7  03-Aug-2021  rillig lint: union casts are only available as a GCC extension, not in C99
 1.6  03-Aug-2021  rillig tests/lint: prepare non-GCC test for union casts
 1.5  03-Aug-2021  rillig tests/lint: test GCC extension for casting to union type
 1.4  21-Feb-2021  rillig 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.
 1.3  31-Jan-2021  rillig lint: format tests in a common style

The lint tests do not focus on the whitespace since that is the most
boring part of code style. Therefore, format the tests to be readable
by following share/misc/style as close as possible.
 1.2  31-Jan-2021  rillig lint: add common header for all tests

For those tests that didn't use GCC-style line markers such as "# 2",
the line numbers of the diagnostics stay the same. This is purely
conincidental. Before, the 3 lines came from lint's built-in
definitions (see 'builtins' in main1.c), and line number counting
continued as if nothing had happened, making the first line of the
actual file line 4. These 3 built-in lines are now replaced with 3
lines of file header.
 1.1  19-Aug-2016  christos branches: 1.1.2;
Add union cast test
 1.1.2.2  14-Sep-2016  pgoyette Sync with HEAD
 1.1.2.1  19-Aug-2016  pgoyette file d_c99_union_cast.c was added on branch pgoyette-localcount on 2016-09-14 03:04:19 +0000

RSS XML Feed