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 ')'.
Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all
Unified · Split
| @@ -315,7 +315,7 @@ sub build_types { · 314 unmodified lines | ||
| 315 | 315 | $NonptrType = qr{ |
| 316 | 316 | (?:$Modifier\s+|const\s+)* |
| 317 | 317 | (?: |
| 318 | − (?:typeof|__typeof__)\s*\(\s*\**\s*$Ident\s*\)| | |
| 318 | + (?:typeof|__typeof__)\s*\([^\)]*\)| | |
| 319 | 319 | (?:$typeTypedefs\b)| |
| 320 | 320 | (?:${all}\b) |
| 321 | 321 | ) |