The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.28 / (download) - annotate - [select for diffs], Sun Jan 28 08:17:27 2024 UTC (2 months, 2 weeks ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

tests/lint: sort multiple diagnostics per line chronologically

For now, the chronologic order is not enforced but has to be established
manually, for example by removing all 'expect' comment lines and
regenerating them with 'accept.sh -u'.

While here, clean up a few instances that came up when regenerating the
'expect' comments, such as wrong indentation or needless deviation from
the 'expect+1' form.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Jan 23 19:44:28 2024 UTC (2 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

lint: rename symt_t to symbol_kind

It was confusing to have two kinds of "symbol type" (s_type and s_symt),
so rename all related identifiers to be more distinctive.

No functional change.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Aug 1 19:52:15 2023 UTC (8 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.25: +13 -1 lines
Diff to previous 1.25 (colored)

tests/lint: test packed and in-parameter declarations

Revision 1.25 / (download) - annotate - [select for diffs], Mon Jul 31 20:52:26 2023 UTC (8 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.24: +19 -1 lines
Diff to previous 1.24 (colored)

tests/lint: test symbol lookup in unnamed bit-field member declaration

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jul 31 20:31:58 2023 UTC (8 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.23: +22 -1 lines
Diff to previous 1.23 (colored)

lint: fix assertion failure after unnamed bit-field member

Since 2023-07-15.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jul 13 22:44:10 2023 UTC (9 months ago) by rillig
Branch: MAIN
Changes since 1.22: +8 -1 lines
Diff to previous 1.22 (colored)

tests/lint: test duplicate type qualifiers in pointer types

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jul 7 06:03:31 2023 UTC (9 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

lint: only skip 'unused' warnings after errors, not other warnings

Previously, in -w mode, any warning suppressed further 'unused'
warnings, even though there was no need to do that.  This can be seen in
the test gcc_attribute_var.c, where only the last unused variable from a
function was marked as unused, the others slipped through.

Fixed by counting the errors and the warnings separately and only
combining them if actually desired.

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

lint: warn about extern declarations outside headers

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

Revision 1.20 / (download) - annotate - [select for diffs], Sat Oct 1 09:42:40 2022 UTC (18 months, 1 week 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.19: +5 -5 lines
Diff to previous 1.19 (colored)

lint: add hyphen to adjective 'old-style'

Revision 1.19 / (download) - annotate - [select for diffs], Sun Aug 28 08:41:06 2022 UTC (19 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

lint: rename dcs manipulation functions to be clearer

No functional change.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jun 22 19:23:18 2022 UTC (21 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

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.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jun 17 18:54:53 2022 UTC (21 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.16: +9 -9 lines
Diff to previous 1.16 (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.16 / (download) - annotate - [select for diffs], Sat Jun 11 11:52:13 2022 UTC (22 months ago) by rillig
Branch: MAIN
Changes since 1.15: +4 -4 lines
Diff to previous 1.15 (colored)

lint: add quotes around a few more placeholders in messages

Revision 1.15 / (download) - annotate - [select for diffs], Sun Apr 24 20:08:23 2022 UTC (23 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.14: +4 -1 lines
Diff to previous 1.14 (colored)

lint: error out on declarations with implicit int type

Revision 1.14 / (download) - annotate - [select for diffs], Sun Apr 24 19:21:01 2022 UTC (23 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

lint: error out on missing type in declarations

Revision 1.13 / (download) - annotate - [select for diffs], Sun Apr 3 10:05:23 2022 UTC (2 years ago) by rillig
Branch: MAIN
Changes since 1.12: +9 -1 lines
Diff to previous 1.12 (colored)

lint: fix crash after syntax error in array declaration

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jul 25 22:03:42 2021 UTC (2 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.11: +7 -1 lines
Diff to previous 1.11 (colored)

tests/lint: cover every code line in the grammar

Revision 1.11 / (download) - annotate - [select for diffs], Sun Jul 25 08:42:28 2021 UTC (2 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.10: +1 -8 lines
Diff to previous 1.10 (colored)

tests/lint: test parsing of type_name

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jul 23 15:21:47 2021 UTC (2 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.9: +7 -1 lines
Diff to previous 1.9 (colored)

tests/lint: test lexer for the GCC extension __thread

Revision 1.9 / (download) - annotate - [select for diffs], Thu Jul 15 23:07:05 2021 UTC (2 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.8: +6 -2 lines
Diff to previous 1.8 (colored)

lint: extract dcs_merge_declaration_specifiers from end_type

No functional change.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jul 15 21:56:51 2021 UTC (2 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.7: +31 -5 lines
Diff to previous 1.7 (colored)

lint: fix internal error for sizeof(typeof)

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

tests/lint: cover abstract_declaration, discover internal error

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

tests/lint: cover more edge cases in the parser

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jul 14 20:39:13 2021 UTC (2 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.4: +26 -1 lines
Diff to previous 1.4 (colored)

tests/lint: add several tests for edge cases in the grammar

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jul 11 15:07:39 2021 UTC (2 years, 9 months ago) by rillig
Branch: MAIN
Changes since 1.3: +5 -4 lines
Diff to previous 1.3 (colored)

lint: fix bug when parsing unused variable (since 2021-07-10)

Partially revert to cgram.y 1.248 from 2021-06-29.

This fixes the parse error for variables whose declaration starts with
__attribute__((unused)).  In the many refactorings of the last days this
bug has slipped in, and since there were several refactorings in that
area, there may be have been further bugs that are not caught by the
current test suite.  Revert for now and maybe apply them later again
when there are more tests.

Things kept from the current version are:

The names of most of the rules, as they correspond more closely to C99
and do not affect the behavior in any way.

In type_direct_decl, the replacement of type_attribute_list with
type_attribute since that nonterminal is already part of a repetition
(saves 4 conflicts).

In block_item, the order of the rules corresponds to C99.  This has no
influence on the generated parser, except for the rule numbers, which
are informative.

The merge of the duplicate code for struct_tag, enum_tag and
enum_constant, as they all contained exactly the same code.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jul 11 12:12:30 2021 UTC (2 years, 9 months ago) by rillig
Branch: MAIN
Changes since 1.2: +13 -1 lines
Diff to previous 1.2 (colored)

tests/lint: parse error for unused variable (since 2021-07-10)

Since cgram.y 1.294 from 2021-07-10.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jul 10 19:30:19 2021 UTC (2 years, 9 months ago) by rillig
Branch: MAIN
Changes since 1.1: +16 -1 lines
Diff to previous 1.1 (colored)

tests/lint: test error handling in enum-specifier

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jul 10 18:25:57 2021 UTC (2 years, 9 months ago) by rillig
Branch: MAIN

tests/lint: test declarations

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>