xref: /btstack/tool/misc/fix_void_declarations.cocci (revision 2c4f9bbb6d93b3f1a90ed62ac67e4cd019f0736a)
1// prototype
2@@
3identifier fn;
4type t;
5@@
6- t fn();
7+ t fn(void);
8
9// implementation
10@@
11identifier fn;
12type t;
13@@
14- fn()
15+ fn(void)
16{ ... }
17
18