summaryrefslogtreecommitdiffstats
path: root/cocci/UV_RUNTIME_CHECK.spatch
diff options
context:
space:
mode:
Diffstat (limited to 'cocci/UV_RUNTIME_CHECK.spatch')
-rw-r--r--cocci/UV_RUNTIME_CHECK.spatch8
1 files changed, 8 insertions, 0 deletions
diff --git a/cocci/UV_RUNTIME_CHECK.spatch b/cocci/UV_RUNTIME_CHECK.spatch
new file mode 100644
index 0000000..6a50195
--- /dev/null
+++ b/cocci/UV_RUNTIME_CHECK.spatch
@@ -0,0 +1,8 @@
+@@
+expression E;
+int R;
+@@
+
+ R = E(...);
+- UV_RUNTIME_CHECK(...);
++ UV_RUNTIME_CHECK(E, R);