SageInterface::findLastDeclarationStatement¶
Find the last declaration statement within a scope (if any). This is often useful to decide where to insert another variable declaration statement. Pragma declarations are not treated as a declaration by default in this context.
Synopsis¶
Declared in <SageIII/sageInterface/sageInterface.h>
SgStatement*
findLastDeclarationStatement(
SgScopeStatement* scope,
bool includePragma = false); Return Value¶
This class represents the notion of a statement.
Parameters¶
| Name | Description |
|---|---|
| scope | This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.). |
Created with MrDocs