]> rtime.felk.cvut.cz Git - linux-imx.git/blobdiff - scripts/checkpatch.pl
checkpatch: reduce false positive rate of "complex macros"
[linux-imx.git] / scripts / checkpatch.pl
index f4e247b277dec37ccc40a04fc3856049d0ece693..93b8e6693cb1e2ab6b43ef8cb0840e5780a93c60 100755 (executable)
@@ -3041,7 +3041,7 @@ sub process {
                        if ($dstat ne '' &&
                            $dstat !~ /^(?:$Ident|-?$Constant),$/ &&                    # 10, // foo(),
                            $dstat !~ /^(?:$Ident|-?$Constant);$/ &&                    # foo();
-                           $dstat !~ /^[!~-]?(?:$Ident|$Constant)$/ &&         # 10 // foo() // !foo // ~foo // -foo
+                           $dstat !~ /^[!~-]?(?:$Lval|$Constant)$/ &&          # 10 // foo() // !foo // ~foo // -foo // foo->bar // foo.bar->baz
                            $dstat !~ /^'X'$/ &&                                        # character constants
                            $dstat !~ /$exceptions/ &&
                            $dstat !~ /^\.$Ident\s*=/ &&                                # .foo =