From: Eli Friedman Date: Mon, 28 Jun 2010 08:02:24 +0000 (+0000) Subject: Add patcheck checks for assignments that look like compound assignments X-Git-Tag: v0.7b1~3549 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=35614edb2dad6684917539bd1f61bd5ea1e8e19d;p=platform%2Fupstream%2Flibav.git 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 --- diff --git a/tools/patcheck b/tools/patcheck index 62ad086..5add8a6 100755 --- a/tools/patcheck +++ b/tools/patcheck @@ -42,6 +42,7 @@ hiegrep '/\*[-<\* ]*\*/' 'empty comment' $* hiegrep 'for *\( *'"$ERE_PRITYP"' ' 'not gcc 2.95 compatible' $* hiegrep '(static|inline|const) *\1' 'duplicate word' $* hiegrep 'INIT_VLC_USE_STATIC' 'forbidden ancient vlc type' $* +hiegrep '=[-+\*\&] ' 'looks like compound assignment' $* 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' $*