X-Git-Url: https://git.libav.org/?p=libav.git;a=blobdiff_plain;f=tools%2Fpatcheck;h=65beca9db93e46454604a3157b6b71e0f0287aab;hp=ed32ec1db85ca6388fb521ec3439c6c16c37f48f;hb=f55e1812d016610839ea09740eb3f3ea535b81d6;hpb=214ee5f556c9c306a60daf22c38d48537efad38d diff --git a/tools/patcheck b/tools/patcheck index ed32ec1db8..65beca9db9 100755 --- a/tools/patcheck +++ b/tools/patcheck @@ -76,7 +76,7 @@ hiegrep2 '\.long_name *=' 'NULL_IF_CONFIG_SMAL' 'missing NULL_IF_CONFIG_SMAL' $* hiegrep2 "$ERE_TYPES" '(static|av_|ff_|typedef|:\+[^a-zA-Z_])' 'Non static with no ff_/av_ prefix' $* -hiegrep ':\+[^}]*else' 'missing } prior to else' $* +hiegrep ':\+[^}#]*else' 'missing } prior to else' $* #FIXME this should print the previous statement maybe hiegrep ':\+ *{ *$' '{ should be on the same line as the related previous statement' $* @@ -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