<feed xmlns='http://www.w3.org/2005/Atom'>
<title>netbsd/tests/usr.bin/xlint/lint1/c11_atomic.c, branch trunk</title>
<subtitle>NetBSD fork for lockdoc analysis</subtitle>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/'/>
<entry>
<title>lint: warn about function definitions without header declaration</title>
<updated>2023-07-07T19:45:22+00:00</updated>
<author>
<name>rillig</name>
<email>rillig@NetBSD.org</email>
</author>
<published>2023-07-07T19:45:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=4175df945b048e5aeed932baf36d22ba89310121'/>
<id>4175df945b048e5aeed932baf36d22ba89310121</id>
<content type='text'>
The existing warning was only issued for function declarations, not for
function definitions.

The interesting change in the tests is in msg_351.c.  Many other tests
use non-static functions due to their syntactic brevity.  In these
tests, the warning is disabled individually, to allow new functions to
be added without generating warning 351.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The existing warning was only issued for function declarations, not for
function definitions.

The interesting change in the tests is in msg_351.c.  Many other tests
use non-static functions due to their syntactic brevity.  In these
tests, the warning is disabled individually, to allow new functions to
be added without generating warning 351.</pre>
</div>
</content>
</entry>
<entry>
<title>tests/lint: merge duplicate tests for C11 _Atomic</title>
<updated>2023-07-07T00:20:39+00:00</updated>
<author>
<name>rillig</name>
<email>rillig@NetBSD.org</email>
</author>
<published>2023-07-07T00:20:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=28cce1189498d41c900ae4cc400508f0c35f8493'/>
<id>28cce1189498d41c900ae4cc400508f0c35f8493</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>lint: add support for C11 '_Atomic' as atomic-type-specifier</title>
<updated>2023-01-21T13:48:40+00:00</updated>
<author>
<name>rillig</name>
<email>rillig@NetBSD.org</email>
</author>
<published>2023-01-21T13:48:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=b0765269fe9414114607c8274b1acf9db92a3cc2'/>
<id>b0765269fe9414114607c8274b1acf9db92a3cc2</id>
<content type='text'>
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.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.</pre>
</div>
</content>
</entry>
<entry>
<title>lint: add support for the C11 type qualifier '_Atomic'</title>
<updated>2023-01-21T13:07:21+00:00</updated>
<author>
<name>rillig</name>
<email>rillig@NetBSD.org</email>
</author>
<published>2023-01-21T13:07:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=49bedb07ae3a33aff5139d439c5708f7e0110645'/>
<id>49bedb07ae3a33aff5139d439c5708f7e0110645</id>
<content type='text'>
That keyword can be used as a type specifier as well, support for that
will be added later.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
That keyword can be used as a type specifier as well, support for that
will be added later.</pre>
</div>
</content>
</entry>
<entry>
<title>tests/lint: test _Atomic, added in C11</title>
<updated>2023-01-21T11:57:03+00:00</updated>
<author>
<name>rillig</name>
<email>rillig@NetBSD.org</email>
</author>
<published>2023-01-21T11:57:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=b59954393cb68cc3aaddf32bb6088982e4023b76'/>
<id>b59954393cb68cc3aaddf32bb6088982e4023b76</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
