From: Thomas Preud'homme Date: Thu, 4 Dec 2014 16:39:47 +0000 (+0000) Subject: check_GNU_style.sh: Warn for incorrect number of spaces in function call only if... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=83f41b248451c26ca3b1fdeb01b0c4544572ed5b;p=gcc.git 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 contrib/ * check_GNU_style.sh: Warn for incorrect number of spaces in function call only if 0 or 2+ spaces found. From-SVN: r218382 --- 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:]]+\)' $*