coccinelle: add coccinelle script for empty_or_dash() use
This commit is contained in:
parent
dc90e0faae
commit
ca7410fe43
5
coccinelle/empty-or-dash.cocci
Normal file
5
coccinelle/empty-or-dash.cocci
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
@@
|
||||||
|
expression s;
|
||||||
|
@@
|
||||||
|
- (isempty(s) || streq(s, "-"))
|
||||||
|
+ empty_or_dash(s)
|
Loading…
Reference in a new issue