History

checkpatch: typeof may have more complex arguments

typeof may have various more complex forms as its arguement, not just an identifier. For now allow us to leak to the first close perenthesis ')'.

Andy Whitcroft committed 14 years ago

Commit 6b48db21 parent addcdce1 file · +1 −1Browse files

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

Unified · Split

scripts/checkpatch.pl+1−1
@@ -315,7 +315,7 @@ sub build_types { · 314 unmodified lines
315315 $NonptrType = qr{
316316 (?:$Modifier\s+|const\s+)*
317317 (?:
318− (?:typeof|__typeof__)\s*\(\s*\**\s*$Ident\s*\)|
318+ (?:typeof|__typeof__)\s*\([^\)]*\)|
319319 (?:$typeTypedefs\b)|
320320 (?:${all}\b)
321321 )