Debian Codegraph @

demos/janitorings/string-array-decl-opti.cocci

raw
1 //@@
2 //identifier x;
3 //expression s;
4 //@@
5 // (
6 // char *x = NULL;
7 // |
8 // - char *x = s;
9 // + char x[] = s;
10 // )
11
12
13 @@
14 identifier x;
15 constant char [] s;
16 @@
17
18
19 - char *x = s;
20 + char x[] = s;