diff options
author | Randy Dunlap <[email protected]> | 2024-10-15 11:11:07 -0700 |
---|---|---|
committer | Jonathan Corbet <[email protected]> | 2024-10-17 09:33:29 -0600 |
commit | bb8fd09e2811e2386bb40b9f0d3c7dd6e7961a1e (patch) | |
tree | 94308b147bd561337725c1e47d98d693fc2a5b4a /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 878b56e011af224386464c79e3b1b1a73342d847 (diff) |
kernel-doc: allow object-like macros in ReST output
output_function_rst() does not handle object-like macros. It presents
a trailing "()" while output_function_man() handles these macros
correctly.
Update output_function_rst() to handle object-like macros.
Don't show the "Parameters" heading if there are no parameters.
For output_function_man(), don't show the "ARGUMENTS" heading if there
are no parameters.
I have tested this quite a bit with my ad hoc test files for both ReST
and man format outputs. The generated output looks good.
Fixes: cbb4d3e6510b ("scripts/kernel-doc: handle object-like macros")
Signed-off-by: Randy Dunlap <[email protected]>
Cc: Horia Geanta <[email protected]>
Tested-by: Vlastimil Babka <[email protected]>
Signed-off-by: Jonathan Corbet <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions