<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-linux/scripts/lib/kdoc, branch stable</title>
<subtitle>WireGuard for the Linux kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-linux/atom/scripts/lib/kdoc?h=stable</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-linux/atom/scripts/lib/kdoc?h=stable'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/'/>
<updated>2025-09-18T16:19:54Z</updated>
<entry>
<title>docs: kdoc: a few more dump_typedef() tweaks</title>
<updated>2025-09-18T16:19:54Z</updated>
<author>
<name>Jonathan Corbet</name>
<email>corbet@lwn.net</email>
</author>
<published>2025-09-08T23:12:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=c01878437739f86851da76235f394346c6bd8ce3'/>
<id>urn:sha1:c01878437739f86851da76235f394346c6bd8ce3</id>
<content type='text'>
Merge "typedef" into the typedef_type pattern rather than repeating it
later, and add some comments.

Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
<entry>
<title>docs: kdoc: remove redundant comment stripping in dump_typedef()</title>
<updated>2025-09-18T16:19:54Z</updated>
<author>
<name>Jonathan Corbet</name>
<email>corbet@lwn.net</email>
</author>
<published>2025-09-08T22:49:58Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=00fa9bc4e93cb336575a5f2c1da90d2443ff14c8'/>
<id>urn:sha1:00fa9bc4e93cb336575a5f2c1da90d2443ff14c8</id>
<content type='text'>
By the time we get here, comments have long since been stripped out; there
is no need to do it again.

Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
<entry>
<title>docs: kdoc: remove some dead code in dump_typedef()</title>
<updated>2025-09-18T16:19:53Z</updated>
<author>
<name>Jonathan Corbet</name>
<email>corbet@lwn.net</email>
</author>
<published>2025-09-08T22:32:10Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=999a642d7e7d4241cc7dba942a13c67d0685284b'/>
<id>urn:sha1:999a642d7e7d4241cc7dba942a13c67d0685284b</id>
<content type='text'>
The regex in this block of code makes no sense, and a quick test shows that
it never matches anything; simply delete the code.

No output changes.

Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
<entry>
<title>docs: kdoc: final dump_function() cleanups</title>
<updated>2025-09-18T16:19:53Z</updated>
<author>
<name>Jonathan Corbet</name>
<email>corbet@lwn.net</email>
</author>
<published>2025-09-08T22:21:28Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=3dff54410e56ddee2dad8824ea77e60cd5b16d5b'/>
<id>urn:sha1:3dff54410e56ddee2dad8824ea77e60cd5b16d5b</id>
<content type='text'>
Add some more comments to dump_function(), add some comments, and trim out
an unneeded duplicate output_declaration() call.

Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
<entry>
<title>docs: kdoc: consolidate some of the macro-processing logic</title>
<updated>2025-09-18T16:19:53Z</updated>
<author>
<name>Jonathan Corbet</name>
<email>corbet@lwn.net</email>
</author>
<published>2025-09-08T22:01:15Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=370f430527ecd35938ad94167e45fc784f6e4d95'/>
<id>urn:sha1:370f430527ecd35938ad94167e45fc784f6e4d95</id>
<content type='text'>
The logic to handle macros is split in dump_function(); bring it all
together into a single place and add a comment saying what's going on.
Remove the unneeded is_define_proto variable, and tighten up the code
a bit.

Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
<entry>
<title>docs: kdoc: Simplify the dump_function() prototype regexes</title>
<updated>2025-09-18T16:19:53Z</updated>
<author>
<name>Jonathan Corbet</name>
<email>corbet@lwn.net</email>
</author>
<published>2025-09-08T19:22:42Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=ff1f2af341b72bd5b6b5d432da55faf2f6d24cfe'/>
<id>urn:sha1:ff1f2af341b72bd5b6b5d432da55faf2f6d24cfe</id>
<content type='text'>
The regexes for the parsing of function prototypes were more complicated
than they needed to be and difficult to understand -- at least, I spent a
fair amount of time bashing my head against them.  Simplify them, and add
some documentation comments as well.

Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
<entry>
<title>docs: kdoc: remove a useless empty capture group</title>
<updated>2025-09-18T16:19:53Z</updated>
<author>
<name>Jonathan Corbet</name>
<email>corbet@lwn.net</email>
</author>
<published>2025-09-05T22:30:48Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=08b5228cf455d46a23bfb341766563d1a48e3c8f'/>
<id>urn:sha1:08b5228cf455d46a23bfb341766563d1a48e3c8f</id>
<content type='text'>
The is_define_proto case in dump_function() uses a regex with an empty
capture group - () - that has no use; just take it out.

Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
<entry>
<title>docs: kdoc: remove a couple of spurious regex characters</title>
<updated>2025-09-18T16:19:53Z</updated>
<author>
<name>Jonathan Corbet</name>
<email>corbet@lwn.net</email>
</author>
<published>2025-09-05T21:53:05Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=fee63c8f10c2fe77f618f9955c2f5521ff9cc622'/>
<id>urn:sha1:fee63c8f10c2fe77f618f9955c2f5521ff9cc622</id>
<content type='text'>
The "name" regex in dump_function() includes both the tilde and colon
characters, but neither has any place in function prototypes.  Remove the
characters, after which the regex simplifies to "\w+"

No output changes.

Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
<entry>
<title>doc: kdoc: unify transform handling</title>
<updated>2025-09-18T16:19:53Z</updated>
<author>
<name>Jonathan Corbet</name>
<email>corbet@lwn.net</email>
</author>
<published>2025-09-04T22:49:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=a2752f8c631201e189f501fc4d320354efa3e72e'/>
<id>urn:sha1:a2752f8c631201e189f501fc4d320354efa3e72e</id>
<content type='text'>
Both functions and structs are passed through a set of regex-based
transforms, but the two were structured differently, despite being the same
thing.  Create a utility function to apply transformations and use it in
both cases.

Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
<entry>
<title>docs: kdoc: move the function transform patterns out of dump_function()</title>
<updated>2025-09-18T16:19:53Z</updated>
<author>
<name>Jonathan Corbet</name>
<email>corbet@lwn.net</email>
</author>
<published>2025-09-04T22:40:49Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=4c232a81b0831e7bfa7518968e431d5db29b2cac'/>
<id>urn:sha1:4c232a81b0831e7bfa7518968e431d5db29b2cac</id>
<content type='text'>
Move these definitions to file level, where they are executed once, and
don't clutter the function itself.

Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
</feed>
