DEV: coccinelle: Add xalloc_cast.cocci
This remove's C++ style casts from the return value of malloc/calloc.
see 403fd722ac
This commit is contained in:
parent
ec4a8754da
commit
ecf55968a1
|
@ -0,0 +1,11 @@
|
||||||
|
@@
|
||||||
|
type T;
|
||||||
|
@@
|
||||||
|
|
||||||
|
- (T*)
|
||||||
|
(
|
||||||
|
malloc
|
||||||
|
|
|
||||||
|
calloc
|
||||||
|
)
|
||||||
|
(...)
|
Loading…
Reference in New Issue