Skip to content

SageInterface::collectReadWriteRefs

Collect all read and write references within stmt, which can be a function, a scope statement, or a single statement. Note that a reference can be both read and written, like i++

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

[[visibility("default")]]
bool
collectReadWriteRefs(
    SgStatement* stmt,
    std::vector<SgNode*>& readRefs,
    std::vector<SgNode*>& writeRefs,
    bool useCachedDefUse = false);

Parameters

Name Description
stmt This class represents the notion of a statement.
readRefs A standard container which offers fixed time access to individual elements in any order.
writeRefs A standard container which offers fixed time access to individual elements in any order.

Created with MrDocs