All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* + checkpatch-report-missing-spaces-around-trigraphs-with-strict.patch added to -mm tree
@ 2013-09-17 21:51 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2013-09-17 21:51 UTC (permalink / raw
  To: mm-commits, josh, joe

Subject: + checkpatch-report-missing-spaces-around-trigraphs-with-strict.patch added to -mm tree
To: joe@perches.com,josh@joshtriplett.org
From: akpm@linux-foundation.org
Date: Tue, 17 Sep 2013 14:51:41 -0700


The patch titled
     Subject: checkpatch: report missing spaces around trigraphs with --strict
has been added to the -mm tree.  Its filename is
     checkpatch-report-missing-spaces-around-trigraphs-with-strict.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/checkpatch-report-missing-spaces-around-trigraphs-with-strict.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/checkpatch-report-missing-spaces-around-trigraphs-with-strict.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Joe Perches <joe@perches.com>
Subject: checkpatch: report missing spaces around trigraphs with --strict

Spaces around trigraphs are specified by CodingStyle but checkpatch is
currently silent about them because there are many current instances
without them.

Make missing spaces around trigraphs a --strict message.

Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 scripts/checkpatch.pl |   16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff -puN scripts/checkpatch.pl~checkpatch-report-missing-spaces-around-trigraphs-with-strict scripts/checkpatch.pl
--- a/scripts/checkpatch.pl~checkpatch-report-missing-spaces-around-trigraphs-with-strict
+++ a/scripts/checkpatch.pl
@@ -2838,7 +2838,7 @@ sub process {
 				\+=|-=|\*=|\/=|%=|\^=|\|=|&=|
 				=>|->|<<|>>|<|>|=|!|~|
 				&&|\|\||,|\^|\+\+|--|&|\||\+|-|\*|\/|%|
-				\?|:
+				\?:|\?|:
 			}x;
 			my @elements = split(/($ops|;)/, $opline);
 
@@ -3061,15 +3061,13 @@ sub process {
 					    	$ok = 1;
 					}
 
-					# Ignore ?:
-					if (($opv eq ':O' && $ca =~ /\?$/) ||
-					    ($op eq '?' && $cc =~ /^:/)) {
-					    	$ok = 1;
-					}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-09-17 21:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-17 21:51 + checkpatch-report-missing-spaces-around-trigraphs-with-strict.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.