]> git.proxmox.com Git - mirror_frr.git/commit
tools: add coccinelle spatches
authorQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 26 Feb 2019 17:36:31 +0000 (17:36 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 26 Feb 2019 17:40:40 +0000 (17:40 +0000)
commit25af5f0d79f9e5595b1ba3bb04a0aff876471029
treebc62feba6b0699c1c7b5ee0fcb0282b2349b3489
parentaa406bbcc8d577e86dec79afc317d71d32453c19
tools: add coccinelle spatches

Add some Coccinelle semantic patches we can use to automatically
refactor code in the future.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
33 files changed:
tools/coccinelle/alloc_cast.cocci [new file with mode: 0644]
tools/coccinelle/array_size.cocci [new file with mode: 0644]
tools/coccinelle/badty.cocci [new file with mode: 0644]
tools/coccinelle/badzero.cocci [new file with mode: 0644]
tools/coccinelle/boolconv.cocci [new file with mode: 0644]
tools/coccinelle/boolinit.cocci [new file with mode: 0644]
tools/coccinelle/boolreturn.cocci [new file with mode: 0644]
tools/coccinelle/cond_no_effect.cocci [new file with mode: 0644]
tools/coccinelle/deref_null.cocci [new file with mode: 0644]
tools/coccinelle/double_lock.cocci [new file with mode: 0644]
tools/coccinelle/doublebitand.cocci [new file with mode: 0644]
tools/coccinelle/doubleinit.cocci [new file with mode: 0644]
tools/coccinelle/doubletest.cocci [new file with mode: 0644]
tools/coccinelle/ifaddr.cocci [new file with mode: 0644]
tools/coccinelle/ifnullxfree.cocci [new file with mode: 0644]
tools/coccinelle/itnull.cocci [new file with mode: 0644]
tools/coccinelle/mini_lock.cocci [new file with mode: 0644]
tools/coccinelle/noderef.cocci [new file with mode: 0644]
tools/coccinelle/replace-strncpy.cocci [new file with mode: 0644]
tools/coccinelle/returnvar.cocci [new file with mode: 0644]
tools/coccinelle/semicolon.cocci [new file with mode: 0644]
tools/coccinelle/strncpy_truncation.cocci [new file with mode: 0644]
tools/coccinelle/unsigned_lesser_than_zero.cocci [new file with mode: 0644]
tools/coccinelle/vty_check.cocci [new file with mode: 0644]
tools/coccinelle/vty_index.cocci [new file with mode: 0644]
tools/coccinelle/xcalloc-simple.cocci [new file with mode: 0644]
tools/coccinelle/xfree.cocci [new file with mode: 0644]
tools/coccinelle/xfreeaddr.cocci [new file with mode: 0644]
tools/coccinelle/xmalloc_returnval.cocci [new file with mode: 0644]
tools/coccinelle/zprivs.cocci [new file with mode: 0644]
tools/vty_check.cocci [deleted file]
tools/vty_index.cocci [deleted file]
tools/zprivs.cocci [deleted file]