diff --git a/contrib/check-code.py b/contrib/check-code.py index 8b4c5c6070..f76c8a24e8 100755 --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -288,7 +288,7 @@ cpats = [ (r'return\(', "return is not a function"), (r' ;', "no space before ;"), (r'\w+\* \w+', "use int *foo, not int* foo"), - (r'\([^\)]+\) \w+', "use (int)foo, not (int) foo"), + (r'\W\([^\)]+\) \w+', "use (int)foo, not (int) foo"), (r'\w+ (\+\+|--)', "use foo++, not foo ++"), (r'\w,\w', "missing whitespace after ,"), (r'^[^#]\w[+/*]\w', "missing whitespace in expression"),