contrib/check-code.py
changeset 19731 436a3f728375
parent 19628 3193b23eec61
child 19732 1abd45e2553a
--- a/contrib/check-code.py	Tue Sep 10 19:49:34 2013 -0700
+++ b/contrib/check-code.py	Tue Sep 17 18:13:54 2013 -0500
@@ -288,7 +288,7 @@
     (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"),