docs: kdoc: move the declaration regexes out of process_name()
authorJonathan Corbet <corbet@lwn.net>
Fri, 6 Jun 2025 16:34:37 +0000 (10:34 -0600)
committerJonathan Corbet <corbet@lwn.net>
Mon, 9 Jun 2025 20:37:17 +0000 (14:37 -0600)
commit0682bde2c7f44320c621b765f31a0cf24e01b23f
tree24b4b670e0c787ea201eca47b5d41a14ff7a09da
parentb23c71080b6cb0c12d4962321e5266814f980da1
docs: kdoc: move the declaration regexes out of process_name()

Move two complex regexes up with the other patterns, decluttering this
function and allowing the compilation to be done once rather than for every
kerneldoc comment.

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