History log of /netbsd-src/tests/usr.bin/xlint/lint1/gcc_attribute_enum.c (Results 1 – 5 of 5)
Revision Date Author Comments
# c83f7def 17-Jun-2022 rillig <rillig@NetBSD.org>

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 mean

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.

show more ...


# 5aebc23c 25-Jul-2021 rillig <rillig@NetBSD.org>

lint: fix parsing of enumerators with __attribute__


# b48b6323 25-Jul-2021 rillig <rillig@NetBSD.org>

lint: fix parsing of __attribute__ before enum tag

The __attribute__ after the enumerators will be fixed in a follow-up
commit since lint exits after the 5th syntax error in a translation
unit, whic

lint: fix parsing of __attribute__ before enum tag

The __attribute__ after the enumerators will be fixed in a follow-up
commit since lint exits after the 5th syntax error in a translation
unit, which up to now shadowed the error messages about the enumerators.

show more ...


# b538fc2d 25-Jul-2021 rillig <rillig@NetBSD.org>

tests/lint: test __attribute__ with enum


# b4c7d7a7 06-Jul-2021 rillig <rillig@NetBSD.org>

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

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.

show more ...