Hello,

the SmPL code
@@ @@
+ lock();
  bar( ... );
+ unlock();

applied to
void foo(void)
{
    bar(a,
        b);
}

will produce following diff
+    lock();
     bar(a,
         b);
+        unlock();

The indentation level of the code inserted after the multi-line function
call matches that of the last argument and not that of the function
identifier. I have tested this with versions 0.2.3 and 0.2.4rc5.

thanks
bye
        michael
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to