aboutsummaryrefslogtreecommitdiff
path: root/scripts/kernel-doc
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2020-10-02 22:41:20 -0400
committerEduardo Habkost <ehabkost@redhat.com>2020-10-06 11:09:35 -0400
commit3cd3c5193cde5242e243c25759f85802e267994f (patch)
tree88381146be768af835a3a4f081b5b2b91448e60a /scripts/kernel-doc
parent19ab6044be0c55d529e875e3ee16fdd5c3b54d33 (diff)
downloadqemu-3cd3c5193cde5242e243c25759f85802e267994f.zip
qemu-3cd3c5193cde5242e243c25759f85802e267994f.tar.gz
qemu-3cd3c5193cde5242e243c25759f85802e267994f.tar.bz2
kernel-doc: Handle function typedefs without asterisks
Example of typedef that was not parsed by kernel-doc: typedef void (ObjectUnparent)(Object *obj); Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20201003024123.193840-3-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'scripts/kernel-doc')
-rwxr-xr-xscripts/kernel-doc2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index 57a4a72..57b911f 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -1318,7 +1318,7 @@ sub dump_typedef($$) {
$x =~ s@/\*.*?\*/@@gos; # strip comments.
# Parse function prototypes
- if ($x =~ /typedef\s+(\w+\s*\**)\s*\(\*\s*(\w\S+)\s*\)\s*\((.*)\);/ ||
+ if ($x =~ /typedef\s+(\w+\s*\**)\s*\(\*?\s*(\w\S+)\s*\)\s*\((.*)\);/ ||
$x =~ /typedef\s+(\w+\s*\**)\s*(\w\S+)\s*\s*\((.*)\);/) {
# Function typedefs