OSDN Git Service

Fix @param[in/out] handling
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 17 Feb 2009 18:20:06 +0000 (18:20 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 17 Feb 2009 18:20:06 +0000 (18:20 +0000)
Originally committed as revision 17395 to svn://svn.ffmpeg.org/ffmpeg/trunk

tools/patcheck

index ac4de1a..9720cb2 100755 (executable)
@@ -81,7 +81,7 @@ hiegrep ':\+  *{ *$' '{ should be on the same line as the related previous state
 
 
 rm $TMP
-for i in `grep -H '^+.*@param' $*| sed 's/^\([^:]*\):.*@param *\([a-zA-Z0-9_]*\) .*$/\1:\2/'` ; do
+for i in `grep -H '^+.*@param' $*| sed 's/^\([^:]*\):.*@param\(\[.*\]\|\) *\([a-zA-Z0-9_]*\) .*$/\1:\3/'` ; do
     doxpar=`echo $i | sed 's/^.*:\(.*\)$/\1/'`
     file=`echo $i | sed 's/^\([^:]*\):.*$/\1/'`
     grep " *$doxpar *[),]" $file | grep -v '@param' >/dev/null || grep --color=always "@param *$doxpar" $file >>$TMP