public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] checkpatch: suggest spaces around binary operators in strict mode
@ 2011-07-08 21:41 Pavel Roskin
  2011-07-08 23:01 ` Joe Perches
  0 siblings, 1 reply; 3+ messages in thread
From: Pavel Roskin @ 2011-07-08 21:41 UTC (permalink / raw)
  To: Andy Whitcroft; +Cc: linux-kernel

Signed-off-by: Pavel Roskin <proski@gnu.org>
---
 scripts/checkpatch.pl |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index b0aa2c6..9431ada 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2167,6 +2167,8 @@ sub process {
 					if ($ctx =~ /Wx[^WCE]|[^WCE]xW/) {
 						ERROR("need consistent spacing around '$op' $at\n" .
 							$hereptr);
+					} elsif ($ctx =~ /[^WCE]x[^WCE]/) {
+						CHK("spaces suggested around '$op' $at\n" . $hereptr);
 					}
 
 				# A colon needs no spaces before when it is

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-07-09  1:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-08 21:41 [PATCH] checkpatch: suggest spaces around binary operators in strict mode Pavel Roskin
2011-07-08 23:01 ` Joe Perches
2011-07-09  1:08   ` Pavel Roskin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox