Skip to content

SageInterface::splitVariableDeclaration

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

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

[[visibility]]
SgExprStatement*
splitVariableDeclaration(SgVariableDeclaration* decl);

Return Value

This class represents the concept of a C or C++ statement which contains a

Parameters

Name

Description

decl

This class represents the concept of a C or C++ variable declaration.

Created with MrDocs