History

kernel-doc: cleanup parameter type in function-typed arguments

A prototype like /** * foo - sample definition * @bar: a parameter */ int foo(int (*bar)(int x, int y)); is currently producing .. c:function:: int foo (int (*bar) (int x, int y) sample definition **Parameters** ``int (*)(int x, int y) bar`` a parameter Collapse the spaces so that the output is nicer.

Paolo Bonzini committed 9 years ago

Commit 02a4f4f1 parent f2c1a051 file · +1 −0Browse files

Showing the changes to scripts/kernel-doc (1 of 1 file). Show all

Unified · Split

scripts/kernel-doc+1−0
@@ -2409,6 +2409,7 @@ sub push_parameter($$$) { · 2408 unmodified lines
24092409 # "[blah" in a parameter string;
24102410 ###$param =~ s/\s*//g;
24112411 push @parameterlist, $param;
2412+ $type =~ s/\s\s+/ /g;
24122413 $parametertypes{$param} = $type;
24132414 }
24142415