From: Ondřej Surý Date: Tue, 15 Feb 2022 18:54:54 +0000 (+0100) Subject: Add semantic patch to keep UV_RUNTIME_CHECK in sync X-Git-Tag: v9.19.0~114^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=62bd5cb08c56e710ec1f4cd5da7454da6b01c5c1;p=thirdparty%2Fbind9.git Add semantic patch to keep UV_RUNTIME_CHECK in sync The UV_RUNTIME_CHECK() macro requires to keep the function name in sync like this: r = func(...); UV_RUNTIME_CHECK(func, r); Add semantic patch to keep the function name and return variable in sync with the previous line. --- diff --git a/cocci/UV_RUNTIME_CHECK.spatch b/cocci/UV_RUNTIME_CHECK.spatch new file mode 100644 index 00000000000..6a50195b893 --- /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);