Pārlūkot izejas kodu

Add an org virtual rule to cuda_check_return_values.cocci

Cyril Roelandt 13 gadi atpakaļ
vecāks
revīzija
f6f17967e4

+ 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)