aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-02-22 14:29:48 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-02-22 14:29:48 +0000
commit214ee5f556c9c306a60daf22c38d48537efad38d (patch)
tree239610a98af9f426e323f26bf9e7b9c642a579c6 /tools
parent04331dea2a4164f051ba4454ae5f62a1aa1037eb (diff)
downloadffmpeg-214ee5f556c9c306a60daf22c38d48537efad38d.tar.gz
Search for things like "int *src" without const.
Originally committed as revision 17529 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tools')
-rwxr-xr-xtools/patcheck2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/patcheck b/tools/patcheck
index 9720cb26fb..ed32ec1db8 100755
--- a/tools/patcheck
+++ b/tools/patcheck
@@ -66,6 +66,8 @@ hiegrep '#(el|)if *(0|1)' 'useless #if' $*
hiegrep 'if *\( *(0|1) *\)' 'useless if()' $*
hiegrep '& *[a-zA-Z0-9_]* *\[ *0 *\]' 'useless & [0]' $*
hiegrep '(\( *[0-9] *(&&|\|\|)|(&&|\|\|) *[0-9] *\))' 'overriding condition' $*
+hiegrep '(:\+|,|;)( *|static|\*)*'"$ERE_PRITYP"' *\*( |\*)*(src|source|input|in[^a-z])' 'missing const?' $*
+hiegrep '(:\+|,|;)( *|static|\*)*'"$ERE_PRITYP"' *(src|source|input|in)([0-9A-Z_][0-9A-Za-z_]*){1,} *\[' 'missing const (test2)?' $*
hiegrep2 '\.long_name *=' 'NULL_IF_CONFIG_SMAL' 'missing NULL_IF_CONFIG_SMAL' $*