History

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.

Jonathan Corbet committed 1 year ago

Commit 00fa9bc1 parent 999a6421 file · +0 −3Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/lib/kdoc/kdoc_parser.py+0−3
@@ -1034,9 +1034,6 @@ class KernelDoc: · 1033 unmodified lines
10341034 typedef1 = KernRe(r'typedef' + typedef_type + r'\(' + typedef_ident + r'\)' + typedef_args)
10351035 typedef2 = KernRe(r'typedef' + typedef_type + typedef_ident + typedef_args)
10361036
1037− # Strip comments
1038− proto = KernRe(r'/\*.*?\*/', flags=re.S).sub('', proto)
1039−
10401037 # Parse function typedef prototypes
10411038 for r in [typedef1, typedef2]:
10421039 if not r.match(proto):