Browse Source

tools/dev/starpu_check_public.sh: do not only look for direct function calls

Nathalie Furmento 13 years ago
parent
commit
1aad340876
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/dev/starpu_check_public.sh

+ 1 - 1
tools/dev/starpu_check_public.sh

@@ -26,7 +26,7 @@ functions=$(spatch -very_quiet -sp_file tools/dev/starpu_funcs.cocci $(find incl
 for func in $functions ; do
 	fname=$(echo $func|awk -F ',' '{print $1}')
 	location=$(echo $func|awk -F ',' '{print $2}')
-	x=$(grep -rs "$fname(" examples tests mpi starpufft gcc-plugin tools src/sched_policies starpu-top)
+	x=$(grep -rs "$fname" examples tests mpi starpufft gcc-plugin tools src/sched_policies starpu-top)
 	if test "$x" == "" ; then
 	    echo "function ${redcolor}${fname}${stcolor} at location ${redcolor}$location${stcolor} is not used in any examples or tests"
 	fi