]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
docs: kdoc: consolidate some of the macro-processing logic
authorJonathan Corbet <corbet@lwn.net>
Mon, 8 Sep 2025 22:01:15 +0000 (16:01 -0600)
committerJonathan Corbet <corbet@lwn.net>
Thu, 18 Sep 2025 16:19:53 +0000 (10:19 -0600)
commit370f430527ecd35938ad94167e45fc784f6e4d95
tree87b29dccbd2864365da90c7e88b2e8ce595da8ec
parentff1f2af341b72bd5b6b5d432da55faf2f6d24cfe
docs: kdoc: consolidate some of the macro-processing logic

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 <corbet@lwn.net>
scripts/lib/kdoc/kdoc_parser.py