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
1324 possible($type, "A:" . $s);1324 possible($type, "A:" . $s);
1325 1325
1326 # definitions in global scope can only start with types1326 # 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) {
1328 possible($1, "B:" . $s);1328 possible($1, "B:" . $s);
1329 }1329 }
1330 1330

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