linux/scripts/coccinelle
Julia Lawall 4003ba664b Reduce Coccinelle choices in string_choices.cocci
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>
2024-09-28 21:33:11 +02:00
..
api Reduce Coccinelle choices in string_choices.cocci 2024-09-28 21:33:11 +02:00
free update Coccinelle URL 2022-08-07 21:30:36 +02:00
iterators update Coccinelle URL 2022-08-07 21:30:36 +02:00
locks update Coccinelle URL 2022-08-07 21:30:36 +02:00
misc coccinelle: misc: minmax: Suppress reports for err returns 2024-05-20 21:31:20 +02:00
null update Coccinelle URL 2022-08-07 21:30:36 +02:00
tests update Coccinelle URL 2022-08-07 21:30:36 +02:00