Add a rule to the calloc semantic patch for argument ordering.

This commit is contained in:
Mansour Moufid 2014-10-19 12:36:46 -04:00 committed by Nick Mathewson
parent 533790ca77
commit 3ab2c865bf

View File

@ -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;