Mercurial > hg-stable
changeset 24453:65f1a29685ab
check-code: in C code, prevent space before closing parenthesis
author | Laurent Charignon <lcharignon@fb.com> |
---|---|
date | Tue, 24 Mar 2015 12:52:53 -0700 |
parents | 7797fadac0e8 |
children | 59904edf0a5e |
files | contrib/check-code.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/check-code.py Sat Jan 17 12:39:44 2015 +0900 +++ b/contrib/check-code.py Tue Mar 24 12:52:53 2015 -0700 @@ -335,6 +335,7 @@ (r'(while|if|do|for)\(', "use space after while/if/do/for"), (r'return\(', "return is not a function"), (r' ;', "no space before ;"), + (r'[^;] \)', "no space before )"), (r'[)][{]', "space between ) and {"), (r'\w+\* \w+', "use int *foo, not int* foo"), (r'\W\([^\)]+\) \w+', "use (int)foo, not (int) foo"),