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 + + * 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 * 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:]]+\)' $*