f652402487
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
20 lines
233 B
Plaintext
20 lines
233 B
Plaintext
// replace 'R = X; return R;' with 'return X;'
|
|
@@
|
|
identifier VAR;
|
|
expression E;
|
|
type T;
|
|
identifier F;
|
|
@@
|
|
T F(...)
|
|
{
|
|
...
|
|
- T VAR;
|
|
... when != VAR
|
|
|
|
- VAR =
|
|
+ return
|
|
E;
|
|
- return VAR;
|
|
... when != VAR
|
|
}
|