Skip to content

SageInterface::collectVariableReferenceUses

Collect variable references together with their exact source use sites.

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

void
collectVariableReferenceUses(
    SgLocatedNode* root,
    std::vector<VariableReferenceUse>& result);

Description

Unlike parent‐chain queries, this also preserves use sites for references embedded in non‐traversal type edges such as a new‐expression array bound.

Parameters

Name

Description

root

This class represents the notion of an expression or statement which

result

A standard container which offers fixed time access to individual elements in any order.

Created with MrDocs