The NetBSD Project

CVS log for src/tests/usr.bin/xlint/lint1/gcc_attribute.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.13 / (download) - annotate - [select for diffs], Tue Mar 28 14:44:34 2023 UTC (12 months, 3 weeks ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +3 -1 lines
Diff to previous 1.12 (colored)

lint: warn about extern declarations outside headers

https://mail-index.netbsd.org/tech-userlevel/2023/03/15/msg013727.html

Revision 1.12 / (download) - annotate - [select for diffs], Thu Aug 25 19:03:48 2022 UTC (19 months, 3 weeks ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.11: +5 -2 lines
Diff to previous 1.11 (colored)

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@.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jun 17 18:54:53 2022 UTC (22 months ago) by rillig
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

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.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jul 15 21:00:05 2021 UTC (2 years, 9 months ago) by rillig
Branch: MAIN
Changes since 1.9: +11 -1 lines
Diff to previous 1.9 (colored)

tests/lint: cover more edge cases in the parser

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jul 9 18:55:28 2021 UTC (2 years, 9 months ago) by rillig
Branch: MAIN
Changes since 1.8: +34 -1 lines
Diff to previous 1.8 (colored)

tests/lint: ensure that GCC __attribute__ can be parsed

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jul 6 18:43:27 2021 UTC (2 years, 9 months ago) by rillig
Branch: MAIN
Changes since 1.7: +20 -1 lines
Diff to previous 1.7 (colored)

tests/lint: add test for empty __attribute__(())

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jul 6 17:33:07 2021 UTC (2 years, 9 months ago) by rillig
Branch: MAIN
Changes since 1.6: +1 -7 lines
Diff to previous 1.6 (colored)

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.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jul 6 06:38:29 2021 UTC (2 years, 9 months ago) by rillig
Branch: MAIN
Changes since 1.5: +19 -1 lines
Diff to previous 1.5 (colored)

tests/lint: document wrong handling of GCC __attribute__

Revision 1.5 / (download) - annotate - [select for diffs], Mon May 3 07:08:54 2021 UTC (2 years, 11 months 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.4: +6 -4 lines
Diff to previous 1.4 (colored)

lint: allow variables to be named 'pcs'

Revision 1.4 / (download) - annotate - [select for diffs], Mon May 3 06:24:18 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
Changes since 1.3: +14 -1 lines
Diff to previous 1.3 (colored)

tests/lint: demonstrate bug in the lexer for GCC attributes

Revision 1.3 / (download) - annotate - [select for diffs], Sat May 1 07:56:20 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
Changes since 1.2: +9 -1 lines
Diff to previous 1.2 (colored)

tests/lint: add test for __attribute__((nonnull()))

Revision 1.2 / (download) - annotate - [select for diffs], Sat May 1 07:25:07 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
Changes since 1.1: +7 -3 lines
Diff to previous 1.1 (colored)

lint: support all documented variants of __attribute__((nonnull))

Revision 1.1 / (download) - annotate - [select for diffs], Fri Apr 30 23:49:36 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN

tests/lint: add very basic tests for GCC __attribute__

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 <webmaster@jp.NetBSD.org>