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
1034 typedef1 = KernRe(r'typedef' + typedef_type + r'\(' + typedef_ident + r'\)' + typedef_args)1034 typedef1 = KernRe(r'typedef' + typedef_type + r'\(' + typedef_ident + r'\)' + typedef_args)
1035 typedef2 = KernRe(r'typedef' + typedef_type + typedef_ident + typedef_args)1035 typedef2 = KernRe(r'typedef' + typedef_type + typedef_ident + typedef_args)
1036 1036
1037 # Strip comments
1038 proto = KernRe(r'/\*.*?\*/', flags=re.S).sub('', proto)
1039
1040 # Parse function typedef prototypes1037 # Parse function typedef prototypes
1041 for r in [typedef1, typedef2]:1038 for r in [typedef1, typedef2]:
1042 if not r.match(proto):1039 if not r.match(proto):