Skip to content

SgScopeStatement::lookup_symbol

get the first symbol with name (note that "" is a valid name and is used for unnamed declarations) the input name is stored as internal state to support the use of next_XXX_symbol() member function.

Synopsis

Declared in <src/frontend/SageIII/Cxx_Grammar.h> (not stored in Git)

SgSymbol*
lookup_symbol(
    SgName const& n,
    SgTemplateParameterPtrList* templateParameterList = NULL,
    SgTemplateArgumentPtrList* templateArgumentList = NULL) const;

Return Value

This class represents the concept of a name within the compiler.

Parameters

Name Description
n String-backed name value used by AST nodes.

Created with MrDocs