OSDN Git Service

Improve detection of non doxy comments.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 27 Feb 2009 21:08:32 +0000 (21:08 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 27 Feb 2009 21:08:32 +0000 (21:08 +0000)
Originally committed as revision 17648 to svn://svn.ffmpeg.org/ffmpeg/trunk

tools/patcheck

index 87f412e..65beca9 100755 (executable)
@@ -93,7 +93,7 @@ if test -e $TMP ; then
     cat $TMP
 fi
 
-egrep -B2 $OPT '^(\+|) *'"$ERE_TYPES" $* | egrep -A2 --color=always '(:|-)\+.*[^/]/(\*([^*]|$)|/([^/]|$))' > $TMP && echo -e "\n Non doxy comments"
+egrep -B2 $OPT '^(\+|) *('"$ERE_TYPES"'|# *define)' $* | egrep -A2 --color=always '(:|-)\+[^/]*/(\*([^*]|$)|/([^/]|$))' > $TMP && echo -e "\n Non doxy comments"
 cat $TMP
 
 rm $TMP