Commit 6b48db24 authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Linus Torvalds

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 ')'.
Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent addcdcea
...@@ -315,7 +315,7 @@ sub build_types { ...@@ -315,7 +315,7 @@ sub build_types {
$NonptrType = qr{ $NonptrType = qr{
(?:$Modifier\s+|const\s+)* (?:$Modifier\s+|const\s+)*
(?: (?:
(?:typeof|__typeof__)\s*\(\s*\**\s*$Ident\s*\)| (?:typeof|__typeof__)\s*\([^\)]*\)|
(?:$typeTypedefs\b)| (?:$typeTypedefs\b)|
(?:${all}\b) (?:${all}\b)
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment