check_GNU_style.sh: Avoid false posivies in trailing operator checks.

From-SVN: r234965
This commit is contained in:
Martin Sebor 2016-04-13 22:05:30 +00:00 committed by Martin Sebor
parent a6297ab587
commit 2ecc0c837b
2 changed files with 8 additions and 2 deletions

View 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.

View File

@ -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_]\*)|([-%<=&|^?])|([^*]/)|([^:][+]))$'