##// END OF EJS Templates
check-code: make casting style check more precise
Matt Mackall -
r19731:436a3f72 default
parent child Browse files
Show More
@@ -288,7 +288,7 b' cpats = ['
288 (r'return\(', "return is not a function"),
288 (r'return\(', "return is not a function"),
289 (r' ;', "no space before ;"),
289 (r' ;', "no space before ;"),
290 (r'\w+\* \w+', "use int *foo, not int* foo"),
290 (r'\w+\* \w+', "use int *foo, not int* foo"),
291 (r'\([^\)]+\) \w+', "use (int)foo, not (int) foo"),
291 (r'\W\([^\)]+\) \w+', "use (int)foo, not (int) foo"),
292 (r'\w+ (\+\+|--)', "use foo++, not foo ++"),
292 (r'\w+ (\+\+|--)', "use foo++, not foo ++"),
293 (r'\w,\w', "missing whitespace after ,"),
293 (r'\w,\w', "missing whitespace after ,"),
294 (r'^[^#]\w[+/*]\w', "missing whitespace in expression"),
294 (r'^[^#]\w[+/*]\w', "missing whitespace in expression"),
General Comments 0
You need to be logged in to leave comments. Login now