4003ba664b
The isomorphism neg_if_exp negates the test of a ?: conditional, making it unnecessary to have an explicit case for a negated test with the branches inverted. At the same time, we can disable neg_if_exp in cases where a different API function may be more suitable for a negated test. Finally, in the non-patch cases, E matches an expression with parentheses around it, so there is no need to mention () explicitly in the pattern. The () are still needed in the patch cases, because we want to drop them, if they are present. Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr> |
||
---|---|---|
.. | ||
alloc | ||
atomic_as_refcounter.cocci | ||
check_bq27xxx_data.cocci | ||
d_find_alias.cocci | ||
device_attr_show.cocci | ||
err_cast.cocci | ||
kfree_mismatch.cocci | ||
kfree_sensitive.cocci | ||
kstrdup.cocci | ||
kvmalloc.cocci | ||
memdup_user.cocci | ||
memdup.cocci | ||
platform_get_irq.cocci | ||
platform_no_drv_owner.cocci | ||
pm_runtime.cocci | ||
resource_size.cocci | ||
simple_open.cocci | ||
stream_open.cocci | ||
string_choices.cocci | ||
vma_pages.cocci |