Debian Codegraph @

cpptests/new2.cocci

raw
1 # spatch --c++
2 @@ @@
3 - int*a = new int(2);
4 @@ @@
5 - int*b = new int[3];
6 @@ @@
7 - int*c = new int[2] {1,2};