frr/tools/coccinelle/argv_find.cocci
Daniel Baumann 3124f89aed
Adding upstream version 10.1.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-05 10:03:58 +01:00

23 lines
285 B
Text

@@
identifier idx;
identifier argv;
identifier argc;
expression e1;
expression e2;
identifier I;
@@
(
- argv_find(argv, argc, e1, &idx);
if (
- idx
+ argv_find(argv, argc, e1, &idx)
)
{
e2;
}
|
- argv_find(argv, argc, e1, &idx);
... when != I = idx;
when strict
)