The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.4, Fri Jul 7 00:20:39 2023 UTC (9 months, 1 week ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED

tests/lint: merge duplicate tests for C11 _Atomic

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jan 21 13:48:40 2023 UTC (14 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.2: +11 -1 lines
Diff to previous 1.2 (colored)

lint: add support for C11 '_Atomic' as atomic-type-specifier

Following the C11 grammar, the keyword '_Atomic' needs to be a separate
syntactic category, to avoid further conflicts in the grammar.

The two newly added conflicts in the grammar would come into play when
mixing traditional C with C11, in a type name without an implicit 'int'.
If the type '_Atomic(int)*' were parsed as '_Atomic int(int)*', the
trailing '*' would be a syntax error.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jan 21 13:07:22 2023 UTC (14 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.1: +3 -6 lines
Diff to previous 1.1 (colored)

lint: add support for the C11 type qualifier '_Atomic'

That keyword can be used as a type specifier as well, support for that
will be added later.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jan 21 11:57:03 2023 UTC (14 months, 3 weeks ago) by rillig
Branch: MAIN

tests/lint: test _Atomic, added in C11

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>