Terminal emulator with all the bells and whistles https://www.enlightenment.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
420 B

// A variable is only initialized to a constant and is never used otherwise
// Confidence: High
// Copyright: (C) Gilles Muller, Julia Lawall, EMN, INRIA, DIKU. GPLv2.
// URL: https://coccinelle.gitlabpages.inria.fr/website/rules/unused.html
// Options:
identifier i;
position p;
type T;
extern T i@p;
type T;
identifier i;
constant C;
position p != e.p;
- T i@p;
<+... when != i
- i = C;