summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2010-06-28 08:02:24 +0000
committerMartin Storsjö <martin@martin.st>2010-06-28 08:02:24 +0000
commit35614edb2dad6684917539bd1f61bd5ea1e8e19d (patch)
treef695c766a287bb694beface8414faa2e0b24a4b7
parent186d02150eabe58e1ccab06919adf245d8f5df08 (diff)
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
-rwxr-xr-xtools/patcheck1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/patcheck b/tools/patcheck
index 62ad0868ea..5add8a67ea 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' $*