linux/scripts/lib/kdoc
Jonathan Corbet 64cf83bcd3 docs: kdoc: move the prefix transforms out of dump_struct()
dump_struct is one of the longest functions in the kdoc_parser class,
making it hard to read and reason about.  Move the definition of the prefix
transformations out of the function, join them with the definition of
"attribute" (which was defined at the top of the file but only used here),
and reformat the code slightly for shorter line widths.

Just code movement in the end.

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-5-corbet@lwn.net
2025-08-11 10:25:42 -06:00
..
kdoc_files.py docs: kdoc: simplify the output-item passing 2025-07-02 14:14:31 -06:00
kdoc_item.py docs: kdoc: directly access the always-there KdocItem fields 2025-07-15 13:43:30 -06:00
kdoc_output.py docs: kdoc: directly access the always-there KdocItem fields 2025-07-15 13:43:30 -06:00
kdoc_parser.py docs: kdoc: move the prefix transforms out of dump_struct() 2025-08-11 10:25:42 -06:00
kdoc_re.py docs: kdoc: micro-optimize KernRe 2025-07-08 08:06:25 -06:00