Allow "#define foo struct.member" without bleating a warning. This also allows "#define foo bar.baz->qux" and so on.
Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all
Unified · Split
| @@ -3041,7 +3041,7 @@ sub process { · 3040 unmodified lines | ||
| 3041 | 3041 | if ($dstat ne '' && |
| 3042 | 3042 | $dstat !~ /^(?:$Ident|-?$Constant),$/ && # 10, // foo(), |
| 3043 | 3043 | $dstat !~ /^(?:$Ident|-?$Constant);$/ && # foo(); |
| 3044 | − $dstat !~ /^[!~-]?(?:$Ident|$Constant)$/ && # 10 // foo() // !foo // ~foo // -foo | |
| 3044 | + $dstat !~ /^[!~-]?(?:$Lval|$Constant)$/ && # 10 // foo() // !foo // ~foo // -foo // foo->bar // foo.bar->baz | |
| 3045 | 3045 | $dstat !~ /^'X'$/ && # character constants |
| 3046 | 3046 | $dstat !~ /$exceptions/ && |
| 3047 | 3047 | $dstat !~ /^\.$Ident\s*=/ && # .foo = |