summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2025-06-06 10:34:33 -0600
committerJonathan Corbet <corbet@lwn.net>2025-06-09 14:37:17 -0600
commite76a1d2b2623e9f10e2ffd295ae2615bf3228561 (patch)
treef1d276caa82006399b2d0ba97ca89170042a67f6 /tools/perf/scripts/python
parent42592bd46dded5fab5af1d5e04c9b17cbb4bca6d (diff)
docs: kdoc: simplify the kerneldoc recognition code
process_name() looks for the first line of a kerneldoc comment. It contains two nearly identical regular expressions, the second of which only catches six cases in the kernel, all of the form: define SOME_MACRO_NAME - description Simply put the "define" into the regex and discard it, eliminating the loop and the code to remove it specially. Note that this still treats these defines as if they were functions, but that's a separate issue. There is no change in the generated output. 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-5-corbet@lwn.net
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions