History log of /src/tests/usr.bin/xlint/lint1/gcc_attribute.c |
Revision | | Date | Author | Comments |
1.13 |
| 28-Mar-2023 |
rillig | lint: warn about extern declarations outside headers
https://mail-index.netbsd.org/tech-userlevel/2023/03/15/msg013727.html
|
1.12 |
| 25-Aug-2022 |
rillig | 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@.
|
1.11 |
| 17-Jun-2022 |
rillig | 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.
|
1.10 |
| 15-Jul-2021 |
rillig | tests/lint: cover more edge cases in the parser
|
1.9 |
| 09-Jul-2021 |
rillig | tests/lint: ensure that GCC __attribute__ can be parsed
|
1.8 |
| 06-Jul-2021 |
rillig | tests/lint: add test for empty __attribute__(())
|
1.7 |
| 06-Jul-2021 |
rillig | tests/lint: add tests for GCC __attribute__
Before fixing the wrong handling of __attribute__ that is demonstrated at the end of gcc_attribute.c, ensure that the attribute handling works in the most basic cases.
Lint currently accepts __attribute__ in more places than it should. This leads to some ambiguities in the grammar.
|
1.6 |
| 06-Jul-2021 |
rillig | tests/lint: document wrong handling of GCC __attribute__
|
1.5 |
| 03-May-2021 |
rillig | lint: allow variables to be named 'pcs'
|
1.4 |
| 03-May-2021 |
rillig | tests/lint: demonstrate bug in the lexer for GCC attributes
|
1.3 |
| 01-May-2021 |
rillig | tests/lint: add test for __attribute__((nonnull()))
|
1.2 |
| 01-May-2021 |
rillig | lint: support all documented variants of __attribute__((nonnull))
|
1.1 |
| 30-Apr-2021 |
rillig | tests/lint: add very basic tests for GCC __attribute__
|