aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authormsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-13 22:05:30 +0000
committermsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-13 22:05:30 +0000
commitd56e1cd87803c958f2128ad3a1a55f4fad9d1b87 (patch)
tree0954b81285c7a7b76cdae40d233249e3a50ccb5a /contrib
parent594645ecad08e72325f7ac7e3b8e8afff66d189e (diff)
check_GNU_style.sh: Avoid false posivies in trailing operator checks.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234965 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog5
-rwxr-xr-xcontrib/check_GNU_style.sh5
2 files changed, 8 insertions, 2 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 54f9d5e72b2..56f2fec809f 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -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.
diff --git a/contrib/check_GNU_style.sh b/contrib/check_GNU_style.sh
index fbf6cb2465d..a7478f8f573 100755
--- a/contrib/check_GNU_style.sh
+++ b/contrib/check_GNU_style.sh
@@ -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_]\*)|([-%<=&|^?])|([^*]/)|([^:][+]))$'