History

checkpatch: add [] to type extensions

Add [] to a type extensions. Fixes false positives on: .attrs = (struct attribute *[]) {

Andy Whitcroft committed 14 years ago

Commit b337d8b1 parent fd1b57a1 file · +1 −1Browse files

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

Unified · Split

scripts/checkpatch.pl+1−1
@@ -323,7 +323,7 @@ sub build_types { · 322 unmodified lines
323 }x;323 }x;
324 $Type = qr{324 $Type = qr{
325 $NonptrType325 $NonptrType
326 (?:[\s\*]+\s*const|[\s\*]+|(?:\s*\[\s*\])+)?326 (?:(?:\s|\*|\[\])+\s*const|(?:\s|\*|\[\])+|(?:\s*\[\s*\])+)?
327 (?:\s+$Inline|\s+$Modifier)*327 (?:\s+$Inline|\s+$Modifier)*
328 }x;328 }x;
329 $Declare = qr{(?:$Storage\s+)?$Type};329 $Declare = qr{(?:$Storage\s+)?$Type};