btstack/tool/misc/fix_void_declarations.cocci

18 lines
141 B
Plaintext
Raw Normal View History

2016-04-10 19:53:56 +00:00
// prototype
@@
identifier fn;
type t;
@@
- t fn();
+ t fn(void);
// implementation
@@
identifier fn;
type t;
@@
- fn()
+ fn(void)
{ ... }