mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-20 13:21:29 +02:00
DEV: coccinelle: Add xalloc_cast.cocci
This remove's C++ style casts from the return value of malloc/calloc. see 403fd722ace1d98d3cfe17bbee1382bf58040466
This commit is contained in:
parent
ec4a8754da
commit
ecf55968a1
11
dev/coccinelle/xalloc_cast.cocci
Normal file
11
dev/coccinelle/xalloc_cast.cocci
Normal file
@ -0,0 +1,11 @@
|
||||
@@
|
||||
type T;
|
||||
@@
|
||||
|
||||
- (T*)
|
||||
(
|
||||
malloc
|
||||
|
|
||||
calloc
|
||||
)
|
||||
(...)
|
Loading…
x
Reference in New Issue
Block a user