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
    • Parameters

      • OptionalincludeDescendants: boolean

        Apply pass to the join point's descendents

      Returns LocalStaticToGlobal

    _name: string = "LocalStaticToGlobal"
    _traversalType: TraversalType
    • 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

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

      Parameters

      • $jp: LaraJoinPoint

        Joint point on which the pass will be applied

      Returns PassResult

      Results of applying this pass to the given joint point