SageInterface::collectReadWriteVariables¶
Collect unique variables which are read or written within a statement. Note that a variable can be both read and written. The statement can be either of a function, a scope, or a single line statement. For accesses to members of aggregate data, we return the coarse grain aggregate mem obj by default.
Synopsis¶
Declared in <SageIII/sageInterface/sageInterface.h>
[[visibility("default")]]
bool
collectReadWriteVariables(
SgStatement* stmt,
std::set<SgInitializedName*>& readVars,
std::set<SgInitializedName*>& writeVars,
bool coarseGrain = true); Parameters¶
| Name | Description |
|---|---|
| stmt | This class represents the notion of a statement. |
Created with MrDocs