check_GNU_style.sh: Avoid false posivies in trailing operator checks.
authorMartin Sebor <msebor@redhat.com>
Wed, 13 Apr 2016 22:05:30 +0000 (22:05 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Wed, 13 Apr 2016 22:05:30 +0000 (16:05 -0600)
From-SVN: r234965

contrib/ChangeLog
contrib/check_GNU_style.sh

index 54f9d5e72b225faf559040f4756b7c735c9f6343..56f2fec809fbd91dfd355763e8477f69eea4502c 100644 (file)
@@ -1,3 +1,8 @@
+2016-04-13  Martin Sebor  <msebor@redhat.com>
+
+       * check_GNU_style.sh: Avoid false posivies in trailing operator
+       checks.
+
 2016-03-07  Martin Sebor  <msebor@redhat.com>
 
        * check_GNU_style.sh (color): New global variable.
index fbf6cb2465d27009ee598c31a1166fd1474269f7..a7478f8f573132aef5ed1010f0cf5b13f08350d4 100755 (executable)
@@ -240,6 +240,7 @@ g 'There should be no space before closing parenthesis.' \
 g 'Braces should be on a separate line.' \
     '(\)|else)[[:blank:]]*{'
 
-# Does this apply to definition of aggregate objects?
-g 'Trailing operator.' \
+# Does this apply to definitions of aggregate objects?
+ag 'Trailing operator.' \
+  '^[1-9][0-9]*:\+[[:space:]]' \
   '(([^a-zA-Z_]\*)|([-%<=&|^?])|([^*]/)|([^:][+]))$'