History

checkpatch: labels are not possible types

A label is not a candidate for a possible type. Exclude them.

Andy Whitcroft committed 18 years ago

Commit a6a84061 parent 0776e591 file · +1 −1Browse files

Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all

Unified · Split

scripts/checkpatch.pl+1−1
@@ -1324,7 +1324,7 @@ sub process { · 1323 unmodified lines
13241324 possible($type, "A:" . $s);
13251325
13261326 # definitions in global scope can only start with types
1327− } elsif ($s =~ /^.(?:$Storage\s+)?(?:$Inline\s+)?(?:const\s+)?($Ident)\b/s) {
1327+ } elsif ($s =~ /^.(?:$Storage\s+)?(?:$Inline\s+)?(?:const\s+)?($Ident)\b\s*(?!:)/s) {
13281328 possible($1, "B:" . $s);
13291329 }
13301330

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