History

checkpatch: handle return types of pointers to functions

Make sure we correctly mark the return type of the pointer to a function declaration. const void *(*sb_tag)(struct sysfs_tag_info *info);

Andy Whitcroft committed 18 years ago

Commit 8ea3eb91 parent b8f96a31 file · +1 −1Browse files

Unified · Split

scripts/checkpatch.pl+1−1
@@ -715,7 +715,7 @@ sub annotate_values { · 714 unmodified lines
715 $av_preprocessor = 0;715 $av_preprocessor = 0;
716 }716 }
717 717
718 } elsif ($cur =~ /^($Type)\s*(?:$Ident|,|\))/) {718 } elsif ($cur =~ /^($Type)\s*(?:$Ident|,|\)|\()/) {
719 print "DECLARE($1)\n" if ($dbg_values > 1);719 print "DECLARE($1)\n" if ($dbg_values > 1);
720 $type = 'T';720 $type = 'T';
721 721

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t