History

checkpatch: allow for type modifiers on multiple declarations

Allow for type modifiers mid declaration on multiple declarations: struct mxser_mstatus ms, __user *msu = argp; Reported by Jiri Slaby.

Andy Whitcroft committed 18 years ago

Commit 389a2fe1 parent 3c232141 file · +4 −0Browse files

Unified · Split

scripts/checkpatch.pl+4−0
@@ -721,6 +721,10 @@ sub annotate_values { · 720 unmodified lines
721 print "DECLARE($1)\n" if ($dbg_values > 1);721 print "DECLARE($1)\n" if ($dbg_values > 1);
722 $type = 'T';722 $type = 'T';
723 723
724 } elsif ($cur =~ /^($Modifier)\s*/) {
725 print "MODIFIER($1)\n" if ($dbg_values > 1);
726 $type = 'T';
727
724 } elsif ($cur =~ /^(\#\s*define\s*$Ident)(\(?)/o) {728 } elsif ($cur =~ /^(\#\s*define\s*$Ident)(\(?)/o) {
725 print "DEFINE($1,$2)\n" if ($dbg_values > 1);729 print "DEFINE($1,$2)\n" if ($dbg_values > 1);
726 $av_preprocessor = 1;730 $av_preprocessor = 1;

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