Explorar o código

Add an org virtual rule to cuda_check_return_values.cocci

Cyril Roelandt %!s(int64=13) %!d(string=hai) anos
pai
achega
f6f17967e4
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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.
 
 virtual report
+virtual org
 
 @seek@
 identifier func;
@@ -58,3 +59,10 @@ func << no_assignment.cuda_func;
 @@
 msg = "Ignoring the return value of %s." % func
 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)