Hi all, I've tried to write rather simple patch for misplaced semicolon. Code sample is as follows: if (condition); ... // the rest of the code
The only solution I've come up with is: @@ expression E; @@ - if (E); + BUG(E); Whereas I'd rather prefer something like that: @@ expression E; @@ if (E) - ; Only that it doesn't work. The patch below - if (E); + if (E) doesn't work either. Is there a way to write correct patch for that (removing the semicolon)? I've tried to look for solution in web, but without success. Best regards, Robert _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
