btstack/tool/misc/fix_void_declarations.cocci
2016-04-10 21:53:56 +02:00

18 lines
141 B
Plaintext

// prototype
@@
identifier fn;
type t;
@@
- t fn();
+ t fn(void);
// implementation
@@
identifier fn;
type t;
@@
- fn()
+ fn(void)
{ ... }