<feed xmlns='http://www.w3.org/2005/Atom'>
<title>passt/.clangd, branch 2026_09_25.df90211</title>
<subtitle>Plug A Simple Socket Transport</subtitle>
<link rel='alternate' type='text/html' href='https://passt.top/passt/'/>
<entry>
<title>clangd: Add _GNU_SOURCE to default clangd options</title>
<updated>2026-09-08T14:11:21+00:00</updated>
<author>
<name>David Gibson</name>
<email>david@gibson.dropbear.id.au</email>
</author>
<published>2026-08-21T05:03:59+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=aa2c8f0add5c9b2a492305de41191ec2beddd3bb'/>
<id>aa2c8f0add5c9b2a492305de41191ec2beddd3bb</id>
<content type='text'>
We always insert -D_GNU_SOURCE and -D_XOPEN_SOURCE=700 when compiling from
the Makefile, and we rely on it.  Without these listed in .clangd, clangd
will generate numerous spurious warnings.

Signed-off-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We always insert -D_GNU_SOURCE and -D_XOPEN_SOURCE=700 when compiling from
the Makefile, and we rely on it.  Without these listed in .clangd, clangd
will generate numerous spurious warnings.

Signed-off-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>clang: Add rudimentary clangd configuration</title>
<updated>2024-11-07T11:47:07+00:00</updated>
<author>
<name>David Gibson</name>
<email>david@gibson.dropbear.id.au</email>
</author>
<published>2024-11-05T23:25:27+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=1d7cff3779e4bff944ce17c86471a87141c352d2'/>
<id>1d7cff3779e4bff944ce17c86471a87141c352d2</id>
<content type='text'>
clangd's default configuration seems to try to treat .h files as C++ not
C.  There are many more spurious warnings generated at present, but this
removes some of the most egregious ones.

Signed-off-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
clangd's default configuration seems to try to treat .h files as C++ not
C.  There are many more spurious warnings generated at present, but this
removes some of the most egregious ones.

Signed-off-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
