summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@arm.com>2014-12-04 16:39:47 +0000
committerThomas Preud'homme <thopre01@gcc.gnu.org>2014-12-04 16:39:47 +0000
commit83f41b248451c26ca3b1fdeb01b0c4544572ed5b (patch)
tree3a0812372fa3d0e10ed58a8c05da5b162a18cabd /contrib
parent881083d629878da043d3f0d7ab5584e77253626c (diff)
downloadgcc-83f41b248451c26ca3b1fdeb01b0c4544572ed5b.tar.gz
check_GNU_style.sh: Warn for incorrect number of spaces in function call only if 0 or 2+ spaces found.
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. From-SVN: r218382
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog5
-rwxr-xr-xcontrib/check_GNU_style.sh2
2 files changed, 6 insertions, 1 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index e5ccfe566d0..edcf6b74cb0 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,8 @@
+2014-12-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
+
+ * check_GNU_style.sh: Warn for incorrect number of spaces in function
+ call only if 0 or 2+ spaces found.
+
2014-12-02 Tobias Burnus <burnus@net-b.de>
* download_prerequisites: Download ISL 0.14 instead of 0.12.2.
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:]]+\)' $*