git-commit-vandalism/contrib/coccinelle
René Scharfe 3f64699ffd cocci: use ALLOC_ARRAY
Add a semantic patch for using ALLOC_ARRAY to allocate arrays and apply
the transformation on the current source tree.  The macro checks for
multiplication overflow and infers the element size automatically; the
result is shorter and safer code.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2017-02-27 11:02:05 -08:00
..
.gitignore gitignore: ignore output files of coccicheck make target 2016-09-27 14:02:19 -07:00
array.cocci cocci: use ALLOC_ARRAY 2017-02-27 11:02:05 -08:00
free.cocci remove unnecessary NULL check before free(3) 2016-10-10 11:37:41 -07:00
object_id.cocci cocci: avoid self-references in object_id transformations 2016-11-01 10:58:39 -07:00
qsort.cocci remove unnecessary check before QSORT 2016-09-29 15:42:18 -07:00
README
strbuf.cocci coccicheck: make transformation for strbuf_addf(sb, "...") more precise 2016-10-03 12:20:20 -07:00
xstrdup_or_null.cocci cocci: refactor common patterns to use xstrdup_or_null() 2016-10-12 11:22:10 -07:00

This directory provides examples of Coccinelle (http://coccinelle.lip6.fr/)
semantic patches that might be useful to developers.