mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #17139 from fjmolinas/pr_static_cocci_remove
dist/tools/coccinelle/force: remove static.cocci
This commit is contained in:
commit
6f4c354461
25
dist/tools/coccinelle/force/static.cocci
vendored
25
dist/tools/coccinelle/force/static.cocci
vendored
@ -1,25 +0,0 @@
|
||||
// remove unused static property of function-local static variable
|
||||
// (from Julia Lawall, see https://lists.riot-os.org/pipermail/devel/2017-May/005133.html)
|
||||
|
||||
@bad exists@
|
||||
position p;
|
||||
identifier x;
|
||||
type T;
|
||||
@@
|
||||
|
||||
static T x@p;
|
||||
...
|
||||
x = <+...x...+>
|
||||
|
||||
@@
|
||||
identifier x;
|
||||
expression e;
|
||||
type T;
|
||||
position p != bad.p;
|
||||
@@
|
||||
|
||||
-static
|
||||
T x@p;
|
||||
... when != x
|
||||
when strict
|
||||
?x = e;
|
Loading…
Reference in New Issue
Block a user