Debian Codegraph @

cpptests/access_specifiers_2.cocci

raw
1 # spatch --c++
2 // FIXME: broken
3 // 'public' specifier required to be there in code in order to match
4 @@ @@
5 struct A {
6 public:
7 // note: inserting only a comment would go unnoticed by coccinelle
8 + int a;// after public
9 };