Skip to content

SageInterface::scopeHasStatementsFromSameFile

This function supports the token‐based unparsing when used with unparsing of header files to know when the scope can be unparsed via it's token stream, even though a statement from a header file may contain a transformation. returns true if there is a statement in the scope that has to be unparsed (is from the same file as the scope). returns false if the scope is empty or contains only statements associated with one or more header files.

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

[[visibility]]
bool
scopeHasStatementsFromSameFile(SgScopeStatement* scope);

Parameters

Name

Description

scope

This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.).

Created with MrDocs