[PATCH v2 0/7] Further kernel-doc tweakery

Jonathan Corbet posted 7 patches 3 months ago
Documentation/sphinx/kerneldoc.py |   2 -
scripts/lib/kdoc/kdoc_parser.py   | 150 +++++++++++++++---------------
scripts/lib/kdoc/kdoc_re.py       |   7 +-
3 files changed, 79 insertions(+), 80 deletions(-)
[PATCH v2 0/7] Further kernel-doc tweakery
Posted by Jonathan Corbet 3 months ago
This is a set of miscellaneous improvements, finishing my pass over the
first parsing pass and getting into the second ("dump_*") pass.

Changes from v1:
 - Apply tags
 - Rework the KernRe microoptimization to avoid exceptions
 - Fix the stupid white-space error in patch 7

Jonathan Corbet (7):
  docs: kdoc: don't reinvent string.strip()
  docs: kdoc: micro-optimize KernRe
  docs: kdoc: remove the brcount floor in process_proto_type()
  docs: kdoc: rework type prototype parsing
  docs: kdoc: some tweaks to process_proto_function()
  docs: kdoc: Remove a Python 2 comment
  docs: kdoc: pretty up dump_enum()

 Documentation/sphinx/kerneldoc.py |   2 -
 scripts/lib/kdoc/kdoc_parser.py   | 150 +++++++++++++++---------------
 scripts/lib/kdoc/kdoc_re.py       |   7 +-
 3 files changed, 79 insertions(+), 80 deletions(-)

-- 
2.49.0
Re: [PATCH v2 0/7] Further kernel-doc tweakery
Posted by Akira Yokosawa 3 months ago
On Thu,  3 Jul 2025 12:43:56 -0600, Jonathan Corbet wrote:
> This is a set of miscellaneous improvements, finishing my pass over the
> first parsing pass and getting into the second ("dump_*") pass.
> 
> Changes from v1:
>  - Apply tags
>  - Rework the KernRe microoptimization to avoid exceptions
>  - Fix the stupid white-space error in patch 7

Tested-by: Akira Yokosawa <akiyks@gmail.com>

Thanks!

> 
> Jonathan Corbet (7):
>   docs: kdoc: don't reinvent string.strip()
>   docs: kdoc: micro-optimize KernRe
>   docs: kdoc: remove the brcount floor in process_proto_type()
>   docs: kdoc: rework type prototype parsing
>   docs: kdoc: some tweaks to process_proto_function()
>   docs: kdoc: Remove a Python 2 comment
>   docs: kdoc: pretty up dump_enum()
> 
>  Documentation/sphinx/kerneldoc.py |   2 -
>  scripts/lib/kdoc/kdoc_parser.py   | 150 +++++++++++++++---------------
>  scripts/lib/kdoc/kdoc_re.py       |   7 +-
>  3 files changed, 79 insertions(+), 80 deletions(-)
>