diff options
author | msebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-04-13 22:05:30 +0000 |
---|---|---|
committer | msebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-04-13 22:05:30 +0000 |
commit | d56e1cd87803c958f2128ad3a1a55f4fad9d1b87 (patch) | |
tree | 0954b81285c7a7b76cdae40d233249e3a50ccb5a /contrib | |
parent | 594645ecad08e72325f7ac7e3b8e8afff66d189e (diff) | |
download | gcc-d56e1cd87803c958f2128ad3a1a55f4fad9d1b87.tar.gz |
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/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_]\*)|([-%<=&|^?])|([^*]/)|([^:][+]))$' |