summaryrefslogtreecommitdiff
path: root/tools/lib/python/__init__.py
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2026-03-02 17:40:47 +0100
committerJonathan Corbet <corbet@lwn.net>2026-03-03 10:47:24 -0700
commitcca1bbdd72f72a3cf86d90fd6f326fd709ae931f (patch)
treea35cdf9212bde155b1abb7d00cdc93363bdcec82 /tools/lib/python/__init__.py
parent77e6e17e9fc4cb4e59ad97de5453bb6f963a5fd4 (diff)
downloadlwn-cca1bbdd72f72a3cf86d90fd6f326fd709ae931f.tar.gz
lwn-cca1bbdd72f72a3cf86d90fd6f326fd709ae931f.zip
docs: kdoc_parser: don't mangle with function defines
Mangling with #defines is not nice, as we may end removing the macro names, preventing several macros from being properly documented. Also, on defines, we have something like: #define foo(a1, a2, a3, ...) \ /* some real implementation */ The prototype part (first line on this example) won't contain any macros, so no need to apply any regexes on it. With that, move the apply_transforms() logic to ensure that it will be called only on functions. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Acked-by: Randy Dunlap <rdunlap@infradead.org> Tested-by: Randy Dunlap <rdunlap@infradead.org> Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Message-ID: <8f9854c8ca1c794b6a3fe418f7adbc32aa68b432.1772469446.git.mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/lib/python/__init__.py')
0 files changed, 0 insertions, 0 deletions