HCoop
/
bpt
/
coccinelle.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Coccinelle release 0.2.5-rc8
[bpt/coccinelle.git]
/
tests
/
return.cocci
1
// not needed with 'return implicit' feature
2
// @@
3
// statement S;
4
// @@
5
//
6
// foo(...) {
7
// ...
8
// (
9
// + before_return();
10
// return;
11
// |
12
// S
13
// + before_return();
14
// )
15
// }
16
17
18
@@
19
statement S;
20
@@
21
22
foo(...) {
23
...
24
+ before_return();
25
return;
26
}