docs: kdoc: consolidate the "begin section" logic
authorJonathan Corbet <corbet@lwn.net>
Sat, 21 Jun 2025 20:35:05 +0000 (14:35 -0600)
committerJonathan Corbet <corbet@lwn.net>
Wed, 25 Jun 2025 17:30:26 +0000 (11:30 -0600)
commitdf2755269456d9ed02ad689aa8eaa50f7ac4217e
tree510d745bcbcda6584611294a12002d140f62d307
parent823d6f956605cb2f009f75de138622fcd7e03817
docs: kdoc: consolidate the "begin section" logic

Pull the repeated "begin a section" logic into a single place and hide it
within the KernelEntry class.

Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20250621203512.223189-3-corbet@lwn.net
scripts/lib/kdoc/kdoc_parser.py