mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-24 08:08:08 +00:00
tools: Add coccinelle script to remove a test case after assert()
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
d87d4e5e0f
commit
c33b8303a9
7
scripts/coccinelle/test_after_assert.cocci
Normal file
7
scripts/coccinelle/test_after_assert.cocci
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
@@
|
||||||
|
identifier i;
|
||||||
|
@@
|
||||||
|
|
||||||
|
assert(i);
|
||||||
|
- if (!i)
|
||||||
|
- return ...;
|
Loading…
Reference in New Issue
Block a user