mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-19 18:00:33 +01:00
Add a rule to the calloc semantic patch for argument ordering.
This commit is contained in:
parent
533790ca77
commit
3ab2c865bf
@ -8,6 +8,13 @@ constant b;
|
||||
- f(a * b)
|
||||
+ tor_calloc(a, b)
|
||||
|
||||
@calloc_arg_order@
|
||||
expression a;
|
||||
type t;
|
||||
@@
|
||||
- tor_calloc(sizeof(t), a)
|
||||
+ tor_calloc(a, sizeof(t))
|
||||
|
||||
@realloc_to_reallocarray@
|
||||
expression a, b;
|
||||
expression p;
|
||||
|
Loading…
Reference in New Issue
Block a user