diff options
author | Martin Sebor <msebor@redhat.com> | 2016-04-13 22:05:30 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2016-04-13 16:05:30 -0600 |
commit | 2ecc0c837bf2ac1309f41d30b7b30595331a6eb6 (patch) | |
tree | 0954b81285c7a7b76cdae40d233249e3a50ccb5a /contrib | |
parent | a6297ab5879af6268e088dabdcd46e53d0e92cb8 (diff) | |
download | gcc-2ecc0c837bf2ac1309f41d30b7b30595331a6eb6.tar.gz |
check_GNU_style.sh: Avoid false posivies in trailing operator checks.
From-SVN: r234965
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ChangeLog | 5 | ||||
-rwxr-xr-x | contrib/check_GNU_style.sh | 5 |
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_]\*)|([-%<=&|^?])|([^*]/)|([^:][+]))$' |