ANTAREX API

Clava API

LARA API

LARA Common Language API

(.js)
laraImport("clava.pass.LocalStaticToGlobal");

(.lara)
import clava.pass.LocalStaticToGlobal;

LocalStaticToGlobal

Constructor

LocalStaticToGlobal

new LocalStaticToGlobal()

(Extends SimplePass)
Transforms local static variables into global variables.

This means that code like this:

```c
int foo() {
static int x = 10;
return x;
}
```

Will be transformed into:

```c
int foo_static_x = 10;

int foo() {
return foo_static_x;
}
```


Instance Members

matchJoinpoint

matchJoinpoint($jp)

Parameters

$jp: unknown

name

name()

Returns

string - Name of the pass

transformJoinpoint

transformJoinpoint($jp)

Parameters

$jp: unknown