aboutsummaryrefslogtreecommitdiff
path: root/clint.py
diff options
context:
space:
mode:
Diffstat (limited to 'clint.py')
-rwxr-xr-xclint.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/clint.py b/clint.py
index fc081dcd14..60e44cdf36 100755
--- a/clint.py
+++ b/clint.py
@@ -2291,6 +2291,11 @@ def CheckSpacing(filename, clean_lines, linenum, nesting_state, error):
# there's too little whitespace, we get concerned. It's hard to tell,
# though, so we punt on this one for now. TODO.
+ match = Search(r'(?:[^ (*/![])+(?<!\+\+|--)\*', line)
+ if match:
+ error(filename, linenum, 'whitespace/operators', 2,
+ 'Missing space before asterisk in %s' % match.group(0))
+
# You should always have whitespace around binary operators.
#
# Check <= and >= first to avoid false positives with < and >, then