SageInterface::splitVariableDeclaration¶
splitVariableDeclaration overloads
Synopses¶
Declared in <SageIII/sageInterface/sageInterface.h>
Split a variable declaration with an rhs assignment into two statements: a declaration and an assignment. Return the generated assignment statement, if any e.g. int i =10; becomes int i; i=10; This can be seen as a normalization of declarations
[[visibility("default")]]
SgExprStatement*
splitVariableDeclaration(SgVariableDeclaration* decl); Split declarations within a scope into declarations and assignment statements, by default only top level declarations are considered. Return the number of declarations split.
[[visibility("default")]]
int
splitVariableDeclaration(
SgScopeStatement* scope,
bool topLevelOnly = true); Created with MrDocs