mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-07 18:40:10 +00:00
docs: kdoc: remove redundant comment stripping in dump_typedef()
By the time we get here, comments have long since been stripped out; there is no need to do it again. Signed-off-by: Jonathan Corbet <corbet@lwn.net>
This commit is contained in:
@@ -1034,9 +1034,6 @@ class KernelDoc:
|
|||||||
typedef1 = KernRe(r'typedef' + typedef_type + r'\(' + typedef_ident + r'\)' + typedef_args)
|
typedef1 = KernRe(r'typedef' + typedef_type + r'\(' + typedef_ident + r'\)' + typedef_args)
|
||||||
typedef2 = KernRe(r'typedef' + typedef_type + typedef_ident + typedef_args)
|
typedef2 = KernRe(r'typedef' + typedef_type + typedef_ident + typedef_args)
|
||||||
|
|
||||||
# Strip comments
|
|
||||||
proto = KernRe(r'/\*.*?\*/', flags=re.S).sub('', proto)
|
|
||||||
|
|
||||||
# Parse function typedef prototypes
|
# Parse function typedef prototypes
|
||||||
for r in [typedef1, typedef2]:
|
for r in [typedef1, typedef2]:
|
||||||
if not r.match(proto):
|
if not r.match(proto):
|
||||||
|
|||||||
Reference in New Issue
Block a user