zephyr/scripts/coccinelle
Himanshu Jha ab35ebe17d coccinelle: Add script to enforce ARRAY_SIZE macro usage
This script detects cases where ARRAY_SIZE can be used such as
where there is a division of sizeof the array by the sizeof its first
element or by any indexed element or the element type. It replaces the
division of the two sizeofs by ARRAY_SIZE helper macro.

Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
2018-10-02 14:03:39 -07:00
..
array_size.cocci coccinelle: Add script to enforce ARRAY_SIZE macro usage 2018-10-02 14:03:39 -07:00
ignore_return.cocci coccicnelle: Ignore return of memset 2018-09-14 16:55:37 -04:00
irq_lock.cocci
unsigned_shift.cocci