Browse Source

Add an org virtual rule to cuda_check_return_values.cocci

Cyril Roelandt 13 years ago
parent
commit
f6f17967e4
1 changed files with 8 additions and 0 deletions
  1. 8 0
      tools/dev/experimental/cuda_check_return_values.cocci

+ 8 - 0
tools/dev/experimental/cuda_check_return_values.cocci

@@ -14,6 +14,7 @@
 // See the GNU Lesser General Public License in COPYING.LGPL for more details.
 // See the GNU Lesser General Public License in COPYING.LGPL for more details.
 
 
 virtual report
 virtual report
+virtual org
 
 
 @seek@
 @seek@
 identifier func;
 identifier func;
@@ -58,3 +59,10 @@ func << no_assignment.cuda_func;
 @@
 @@
 msg = "Ignoring the return value of %s." % func
 msg = "Ignoring the return value of %s." % func
 coccilib.report.print_report(p[0], msg)
 coccilib.report.print_report(p[0], msg)
+
+@script:python depends on no_assignment && org@
+p << no_assignment.p;
+func << no_assignment.cuda_func;
+@@
+msg = "Ignoring the return value of %s." % func
+coccilib.org.print_todo(p[0], msg)