diff --git a/tools/patcheck b/tools/patcheck
index 733272e801abf9e747ec56c46452bfa152d5a5f3..ce07031e244815f1a588edcbc2ece7fbd0abf93f 100755
--- a/tools/patcheck
+++ b/tools/patcheck
@@ -95,6 +95,9 @@ hiegrep2 '\.channel_layouts *= *\(' 'const' 'missing const for channel_layouts a
 hiegrep2 "$ERE_TYPES" '(static|av_|ff_|typedef|:\+[^a-zA-Z_])' 'Non static with no ff_/av_ prefix' $*
 
 hiegrep ':\+[^}#]*else' 'missing } prior to else' $*
+hiegrep '(if|while|for)\(' 'missing whitespace between keyword and (' $*
+hiegrep '(else|do){'       'missing whitespace between keyword and {' $*
+hiegrep '}(else|while)'    'missing whitespace between } and keyword' $*
 
 #FIXME this should print the previous statement maybe
 hiegrep ':\+  *{ *$' '{ should be on the same line as the related previous statement' $*