summaryrefslogtreecommitdiff
path: root/contrib/check_GNU_style.sh
diff options
context:
space:
mode:
authorthopre01 <thopre01@138bc75d-0d04-0410-961f-82ee72b054a4>2014-12-04 16:39:47 +0000
committerthopre01 <thopre01@138bc75d-0d04-0410-961f-82ee72b054a4>2014-12-04 16:39:47 +0000
commit06675166ce6fe60f8d37ec96a954e95883a184c6 (patch)
tree3a0812372fa3d0e10ed58a8c05da5b162a18cabd /contrib/check_GNU_style.sh
parent416737c1dbd335d97e6d80f4c6595aaf39abbd88 (diff)
downloadgcc-06675166ce6fe60f8d37ec96a954e95883a184c6.tar.gz
2014-12-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
contrib/ * check_GNU_style.sh: Warn for incorrect number of spaces in function call only if 0 or 2+ spaces found. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218382 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib/check_GNU_style.sh')
-rwxr-xr-xcontrib/check_GNU_style.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/check_GNU_style.sh b/contrib/check_GNU_style.sh
index ef8fdda6ddd..5f901901306 100755
--- a/contrib/check_GNU_style.sh
+++ b/contrib/check_GNU_style.sh
@@ -113,7 +113,7 @@ g 'Sentences should end with a dot. Dot, space, space, end of the comment.' \
'[[:alnum:]][[:blank:]]*\*/' $*
vg 'There should be exactly one space between function name and parentheses.' \
- '\#define' '[[:alnum:]]([^[:blank:]]|[[:blank:]]{2,})\(' $*
+ '\#define' '[[:alnum:]]([[:blank:]]{2,})?\(' $*
g 'There should be no space before closing parentheses.' \
'[[:graph:]][[:blank:]]+\)' $*