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 + + * check_GNU_style.sh: Avoid false posivies in trailing operator + checks. + 2016-03-07 Martin Sebor * 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_]\*)|([-%<=&|^?])|([^*]/)|([^:][+]))$'