diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2010-06-28 12:02:24 +0400 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-06-28 12:02:24 +0400 |
commit | 35614edb2dad6684917539bd1f61bd5ea1e8e19d (patch) | |
tree | f695c766a287bb694beface8414faa2e0b24a4b7 /tools/patcheck | |
parent | 186d02150eabe58e1ccab06919adf245d8f5df08 (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
Diffstat (limited to 'tools/patcheck')
-rwxr-xr-x | tools/patcheck | 1 |
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' $* |