summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2025-06-30 11:08:32 -0600
committerJonathan Corbet <corbet@lwn.net>2025-07-01 14:51:53 -0600
commit1aeb8099d053af79d50f4ffee740c29cc10d56fc (patch)
treea2c8841b4f82a5b25f77ccda639765613adcea8d /tools/perf/scripts/python
parentbfa5bb3d104b0f2ffd25daa3b4900d54fe060285 (diff)
docs: kdoc: rework type prototype parsing
process_proto_type() is using a complex regex and a "while True" loop to split a declaration into chunks and, in the end, count brackets. Switch to using a simpler regex to just do the split directly, and handle each chunk as it comes. The result is, IMO, easier to understand and reason about. The old algorithm would occasionally elide the space between function parameters; see struct rng_alg->generate(), foe example. The only output difference is to not elide that space, which is more correct. Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions