1
0
Fork 0
frr/tools/coccinelle/argv_find.cocci

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
285 B
Text
Raw Permalink Normal View History

@@
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
)