History log of /src/tests/usr.bin/xlint/lint1/d_alignof.c |
Revision | | Date | Author | Comments |
1.12 |
| 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.11 |
| 30-Jun-2023 |
rillig | tests/lint: extend tests for sizeof and alignof
|
1.10 |
| 30-Jun-2023 |
rillig | lint: make alignof(incomplete enum) an error
|
1.9 |
| 30-Jun-2023 |
rillig | tests/lint: add more tests for sizeof, offsetof, alignof
|
1.8 |
| 22-Jun-2022 |
rillig | lint: add quotes around placeholders for the remaining messages
Reword some of the messages slightly, exchanging brevity for clarity.
Message 138 is kept as-is, as it is not yet covered by any tests.
Message 240 is kep as-is, as it is unreachable.
|
1.7 |
| 12-May-2022 |
rillig | lint: merge duplicate grammar rules for __alignof__ expr
This allows expressions like '__alignof__(ptr)->member', just as with 'sizeof'.
The upper rule in the grammar was preferred over the lower rule since it shifted the T_LPAREN instead of reducing unary_expression. Its implementation invoked undefined behavior if the expression was NULL since it didn't assign anything to $$.
|
1.6 |
| 12-May-2022 |
rillig | tests/lint: add more tests for __alignof__
|
1.5 |
| 12-May-2022 |
rillig | lint: add support for __alignof__ expr, a GCC extension
Seen in lib/libc/gmon/gmon.c:153.
|
1.4 |
| 12-May-2022 |
rillig | lint: fix support for __alignof__, add support for __alignof
Broken since lex.c 1.129 from yesterday.
|
1.3 |
| 12-May-2022 |
rillig | tests/lint: adjust tests to reflect missing support of __alignof__
The change in lex.c 1.129 attempted to add support for __alignof, in addition to the existing support for __alignof__. It failed by removing support for __alignof__, while allowing the plain 'alignof' instead.
|
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 |
| 17-Mar-2012 |
jruoho | branches: 1.1.2; Deprecate tests/util.
|
1.1.2.2 |
| 17-Apr-2012 |
yamt | sync with head
|
1.1.2.1 |
| 17-Mar-2012 |
yamt | file d_alignof.c was added on branch yamt-pagecache on 2012-04-17 00:09:22 +0000
|