Procházet zdrojové kódy

tools/dev: update w.r.t coccinelle version 1.0.0-rc7

Nathalie Furmento před 13 roky
rodič
revize
235b99337f

+ 1 - 1
tools/dev/starpu_check_register.cocci

@@ -19,7 +19,7 @@ handles = {}
 
 @select@
 position p;
-identifier f ~= "^starpu_.*_data_register$";
+identifier f =~ "^starpu_.*_data_register$";
 identifier e;
 @@
 <...

+ 2 - 2
tools/dev/starpu_check_register.sh

@@ -21,11 +21,11 @@
 stcolor=$(tput sgr0)
 redcolor=$(tput setaf 1)
 
-filest=$(find tests -type f -not -path "*svn*" -name '*.c')
 filese=$(find examples -type f -not -path "*svn*" -name '*.c')
+filest=$(find tests -type f -not -path "*svn*" -name '*.c')
 
 for file in $filest $filese ; do
-    handles=$(spatch -sp_file tools/dev/starpu_check_register.cocci $file 2>/dev/null)
+    handles=$(spatch -very_quiet -sp_file tools/dev/starpu_check_register.cocci $file)
     if test "x$handles" != "x" ; then
 	for handle in $handles; do
 	    echo "$handle"

+ 1 - 1
tools/dev/starpu_funcs.cocci

@@ -16,7 +16,7 @@
 @starpufunc@
 position p;
 type t;
-identifier f ~= "starpu";
+identifier f =~ "starpu";
 @@
 
 t f@p( ... );

+ 1 - 1
tools/dev/starpu_funcs.sh

@@ -22,7 +22,7 @@ stcolor=$(tput sgr0)
 redcolor=$(tput setaf 1)
 greencolor=$(tput setaf 2)
 
-functions=$(spatch -sp_file tools/dev/starpu_funcs.cocci $(find include -name '*.h')   2>/dev/null)
+functions=$(spatch -very_quiet -sp_file tools/dev/starpu_funcs.cocci $(find include -name '*.h'))
 for func in $functions ; do
 	fname=$(echo $func|awk -F ',' '{print $1}')
 	location=$(echo $func|awk -F ',' '{print $2}')