]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2014-12-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
authorthopre01 <thopre01@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Dec 2014 16:39:47 +0000 (16:39 +0000)
committerthopre01 <thopre01@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Dec 2014 16:39:47 +0000 (16:39 +0000)
    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

contrib/ChangeLog
contrib/check_GNU_style.sh

index e5ccfe566d0d4cd8f70e56c1b65582340eb42cb4..edcf6b74cb0888ce34122f00081c5803ab0344a7 100644 (file)
@@ -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.
index ef8fdda6ddd023397ff220772e61d55b07791cb8..5f90190130609dd245316ff8bd4d69038676818e 100755 (executable)
@@ -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:]]+\)' $*