Browse code

Add patcheck checks for assignments that look like compound assignments

Patch by Eli Friedman, eli dot friedman at gmail

Originally committed as revision 23841 to svn://svn.ffmpeg.org/ffmpeg/trunk

Eli Friedman authored on 2010/06/28 17:02:24
Showing 1 changed files
... ...
@@ -42,6 +42,7 @@ hiegrep '/\*[-<\* ]*\*/'  'empty comment' $*
42 42
 hiegrep 'for *\( *'"$ERE_PRITYP"' '  'not gcc 2.95 compatible' $*
43 43
 hiegrep '(static|inline|const) *\1'  'duplicate word' $*
44 44
 hiegrep 'INIT_VLC_USE_STATIC' 'forbidden ancient vlc type' $*
45
+hiegrep '=[-+\*\&] ' 'looks like compound assignment' $*
45 46
 
46 47
 hiegrep2 '(int|unsigned|static|void)[a-zA-Z0-9 _]*(init|end)[a-zA-Z0-9 _]*\(.*[^;]$' '(av_cold|:\+[^a-zA-Z_])' 'These functions may need av_cold, please review the whole patch for similar functions needing av_cold' $*
47 48