mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-28 06:44:36 -05:00
docs: kdoc: a few final dump_struct() touches
Add a couple more comments so that each phase of the process is now clearly marked. Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20250807211639.47286-13-corbet@lwn.net
This commit is contained in:
@@ -802,14 +802,15 @@ class KernelDoc:
|
||||
nested = NestedMatch()
|
||||
for search, sub in struct_nested_prefixes:
|
||||
members = nested.sub(search, sub, members)
|
||||
|
||||
# Keeps the original declaration as-is
|
||||
#
|
||||
# Deal with embedded struct and union members, and drop enums entirely.
|
||||
#
|
||||
declaration = members
|
||||
members = self.rewrite_struct_members(members)
|
||||
|
||||
# Ignore other nested elements, like enums
|
||||
members = re.sub(r'(\{[^\{\}]*\})', '', members)
|
||||
|
||||
#
|
||||
# Output the result and we are done.
|
||||
#
|
||||
self.create_parameter_list(ln, decl_type, members, ';',
|
||||
declaration_name)
|
||||
self.check_sections(ln, declaration_name, decl_type)
|
||||
|
||||
Reference in New Issue
Block a user