2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/scripts/lib/kdoc
Jonathan Corbet 362ec251a6 docs: kdoc: don't reinvent string.strip()
process_proto_type() and process_proto_function() reinventing the strip()
string method with a whole series of separate regexes; take all that out
and just use strip().

The previous implementation also (in process_proto_type()) removed C++
comments *after* the above dance, leaving trailing whitespace in that case;
now we do the stripping afterward.  This results in exactly one output
change: the removal of a spurious space in the definition of
BACKLIGHT_POWER_REDUCED - see
https://docs.kernel.org/gpu/backlight.html#c.backlight_properties.

I note that we are putting semicolons after #define lines that really
shouldn't be there - a task for another day.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2025-06-27 13:35:46 -06:00
..
kdoc_files.py scripts: kernel-doc: prevent a KeyError when checking output 2025-05-21 03:53:40 -06:00
kdoc_output.py scripts/lib/kdoc: change mode to 0644 2025-04-28 17:28:14 -06:00
kdoc_parser.py docs: kdoc: don't reinvent string.strip() 2025-06-27 13:35:46 -06:00
kdoc_re.py scripts/lib/kdoc: change mode to 0644 2025-04-28 17:28:14 -06:00