SageInterface::fixVariableDeclaration
Patch up symbol, scope, and parent information when a SgVariableDeclaration's scope is known.
Synopsis
Declared in <SageIII/sageInterface/sageInterface.h>
[[visibility]]
void
fixVariableDeclaration(
SgVariableDeclaration* varDecl,
SgScopeStatement* scope);
Description
It is possible to build a variable declaration without knowing its scopeinformation during bottom‐up construction of AST, though top‐down constructionis recommended in general. In this case, we have to patch up symbol table, scopeand parent information when the scope is known. This function is usually usedinternally within appendStatment(), insertStatement().
Parameters
Name |
Description |
varDecl |
This class represents the concept of a C or C++ variable declaration. |
scope |
This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.). |
Created with MrDocs