SPeCS Packages Documentation
    Preparing search index...

    Transforms local static variables into global variables.

    This means that code like this:

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

    Will be transformed into:

    int foo_static_x = 10;
    
    int foo() {
       return foo_static_x;
    }
    

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _name: string = "LocalStaticToGlobal"
    _traversalType: TraversalType

    Accessors

    • get name(): string

      Returns string

      Name of the pass

    • get traversalType(): TraversalType

      Order in which the join point's descendants should be visited

      Returns TraversalType

    Methods

    • Applies this pass starting at the given join point. If no join point is given, uses the root join point

      Parameters

      Returns PassResult

      Results of applying this pass to the given joint point