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:
Tim Duesterhus 2021-09-15 13:58:47 +02:00 committed by Willy Tarreau
parent ec4a8754da
commit ecf55968a1
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
@@
type T;
@@
- (T*)
(
malloc
|
calloc
)
(...)