Skip to content

SgInitializedName

This class represents the notion of a declared variable.

Synopsis

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

class [[visibility("default")]] SgInitializedName
    : public SgLocatedNodeSupport

Description

Each variable in the program has a SgInitializedName object which represents its definition. A SgVariableDeclaration for example might contain several SgInitializedName objects, while the SgInitializedName contains the declaration for one variable. Each variable use (VarRefExp for example) must have a link to the SgInitializedName object where that specific variable was defined. A valid SgInitializedName records:

  • the variable name which represents the variable that is being declared in this class.
  • the variable type
  • the declaration object which contains the SgInitializedName ( this might be a SgVariableDeclaration, SgFunctionParameterList, SgClassDeclaration,etc)
  • See also: Example of creating an SgInitializedName object Example of using an SgInitializedName object

Data members

SgInitializedName::p_fileInfo

This pointer is always valid and stores the source position of the start a name. This is an Sg_File_Info object which represents the source position of the starting of the name represented by the SgInitializedName object (variable name, function name, etc.).

SgInitializedName::p_name

The variable that is declared in this declaration This is a SgName object which represents the variable that is being declared in this SgInitializedName object. For example, if there is a "int x" declaration in the code, "x" is the variable that will be stored in SgInitializedName::p_name as a SgName object.

SgInitializedName::p_typeptr

Pointer to a type object that has been associated with SgInitializedName::p_name This is a pointer that points to an SgType object that represents the type the variable SgInitializedName::p_name declared in this SgInitializedName class (in this declaration). For example, if the variable is of type "int" (as in "int x"), then a SgTypeInt object has to be allocated , and a pointer to this SgTypeInt object has to be stored in SgInitializedName::p_typeptr to represent the type of SgInitializedName::p_name.

SgInitializedName::p_initptr

Pointer to an initializer for the variable. In the case that the declaration contains an initializer for the variable, for example "int x=5" or "int x=y" (in these cases the intializers for the declared variable are "5" and "y"), that initializer has to be stored in SgInitializedName::p_initptr as a pointer that points to the SgInitializer object that the SgInitializedName::p_name variable is initialized with.

SgInitializedName::p_prev_decl_item

Pointer to the initial uses of this variable previous to its redeclaration declaration. Dan's intuitive explanation This pointer references any initialized name previously built to define a SgVarRefExp, which requires a pointer to a variable declaration (but points to a SgInitializedName since a SgVariableDeclaration could stand for many variables (not just one, e.g. "int x,y,z;"), since uniqueness is required. Although non-intuative, C++ code defined within a class definition can reference variables before they are defined (e.g. "class X { int foo() { return x; } int x; };"), see test2005_67.C (non-static data member) and test2005_68.C (static data member). It is also used by a SgInitializedName in a static declaration outside the class to refer to the preliminary declaration inside the class. (e.g. "class X { static int a;}; int X::a = 0; };")

SgInitializedName::p_declptr

Pointer to the declaration object where this SgInitializedName object belongs to. Alin's intuitive explanation Each SgInitializedName object contains the declaration of one variable. In the case where the code has more declarations in a single statement, for example "int x=5,y=3;", that declaration is composed of two SgInitializedName objects, one for each variable declared in that statment. So, this SgInitializedName::p_declptr points to the statement (actually the declaration - SgDeclaration) that contains it.

SgInitializedName::p_storageModifier

This is the storage modifier (static, auto, register, mutable, asm, etc.). This is the storage modifier (static, auto, register, mutable, asm, etc.), see complete list in source code for more details. This is an implementation of the modifier system as outlined in appendix A of Bjarne's book.

  • Internal: Note that isStatic() in the SgInitializedName is always false, is is set in the SgStorageModifier stored in the SgVariableDeclaration (where it is filed of the SgDeclarationModifier).

SgInitializedName::p_scope

This pointer is always valid and stores the current scope of the variable. This is the current scope of the variable (required because variables can be defined separately from their declaration). See test2004_133.C (approx).

SgInitializedName::p_preinitialization

This data member stores an enum value. This value is set based on an enum value to indicate the type of use of the initialized name (valid values are: virtual base class, non-virtual base, data member).

  • Internal: I think that the preinitalization information might be redundant with the SgStorageModifier information.

SgInitializedName::p_register_name_string

Exact target spelling of a GNU variable asm label. The spelling is not normalized through an architecture-specific register enum.

Member functions

SgInitializedName::get_storageModifier()

returns a reference to the storage modifier

SgInitializedName::post_construction_initialization ()

Allocates a new storage modifier and sets the storage modifier to default values

SgNode * SgInitializedName::copy (const SgCopyHelp &help) const

It clones the current SgInitializedName object recursively or not, depending on the argument

  • Param help: - If this argument is of type SgTreeCopy, then the SgInitializedName is cloned recursively. If it's of type SgShallowCopy only the first level of SgInitializedName is copied, everything else pointing to the the original SgInitializedName object's data members.
  • Return: a pointer to the new clone.

SgDeclarationStatement* SgInitializedName::get_declaration() const

Returns the nearest declaration reached through the parent chain.

  • Return: Pointer to SgDeclarationStatement

SgInitializedName::get_symbol_from_symbol_table() const

FOR INTERNAL USE Get the associated symbol from the symbol table in the stored scope. Users should use the SgInitializedName::search_for_symbol_from_symbol_table() instead.

SgInitializedName::search_for_symbol_from_symbol_table() const

User interface for retrieving the associated symbol. It searches through the possible chain of prev_decl_item.

Base Classes

Name Description
SgLocatedNodeSupport

Types

Name
FortranProcedureComponentBinding

Type Aliases

Name
base_node_type

Enums

Name Description
Unnamed enum static variant value
FortranProcedurePassKind
enum_constant_source_ownership_enum Identify how an enum constant participates in the lexical source surface of its owning enum definition. The semantic enumerator list deliberately retains constants produced by included files; this role is the producer-owned emission contract and must not be reconstructed from filenames in an unparser.
fortran_c_argument_passing_enum
fortran_type_spec_enum Preserve the source-level Fortran declaration type-spec at its use site. A single derived type can be referenced by both TYPE and CLASS declarations, so this information cannot live on SgClassType.
generated_variable_role_enum Identify generated variables whose semantic role is consumed by a later transformation. Generated spellings are output identity, not an inter-pass API.
gnu_variable_attribute_enum
preinitialization_enum
structured_binding_kind_enum

Member Functions

Name Description
SgInitializedName
SgInitializedName() = delete; [constructor]
Constructors
~SgInitializedName
virtual ~SgInitializedName(); [destructor] [virtual]
Destructor
operator=
SgInitializedName& operator=(SgInitializedName const& other) = delete; [deleted]
Copy assignment operator
accept
virtual void accept(ROSE_VisitorPattern& visitor) override; [virtual]
support for the classic visitor pattern done in GoF
addNewAttribute
virtual void addNewAttribute( std::string s, AstAttribute* a) override; [virtual]
Add a new attribute represented by the named string.
appendDestructorOwnedNodes
virtual void appendDestructorOwnedNodes(std::vector<SgNode*>& nodes) const override; [virtual]
attributeExists
virtual bool attributeExists(std::string s) const override; [virtual]
Tests if attribute of name 's' is present.
cfgFindChildIndex
virtual unsigned int cfgFindChildIndex(SgNode* n) override; [virtual]
cfgFindNextChildIndex
virtual unsigned int cfgFindNextChildIndex(SgNode* n) override; [virtual]
cfgInEdges
virtual std::vector<VirtualCFG::CFGEdge> cfgInEdges(unsigned int index) override; [virtual]
cfgIndexForEnd
virtual unsigned int cfgIndexForEnd() const override; [virtual]
cfgIsIndexInteresting
virtual bool cfgIsIndexInteresting(unsigned int index) const override; [virtual]
cfgOutEdges
virtual std::vector<VirtualCFG::CFGEdge> cfgOutEdges(unsigned int index) override; [virtual]
checkBit
bool checkBit(unsigned int bit) const;
class_name
virtual std::string class_name() const override; [virtual]
returns a string representing the class name
construct_source_prototype_copy_symbol
void construct_source_prototype_copy_symbol( SgInitializedName const& source, SgCopyHelp& help);
copy
virtual SgNode* copy(SgCopyHelp& help) const override; [virtual]
fixupCopy_references
virtual void fixupCopy_references( SgNode* copy, SgCopyHelp& help) const override; [virtual]
fixupCopy_scopes
virtual void fixupCopy_scopes( SgNode* copy, SgCopyHelp& help) const override; [virtual]
fixupCopy_symbols
virtual void fixupCopy_symbols( SgNode* copy, SgCopyHelp& help) const override; [virtual]
getAttribute
virtual AstAttribute* getAttribute(std::string s) const override; [virtual]
Returns attribute of name 's'.
get_alignment_specifiers
SgAlignmentSpecifierPtrList const& get_alignment_specifiers() const;
get_auto_decltype
SgType* get_auto_decltype() const;
get_childIndex
virtual size_t get_childIndex(SgNode* child) const override; [virtual]
index-based access to traversal successors by child node
get_cray_pointer_pointee
SgInitializedName* get_cray_pointer_pointee() const;
get_ctor_initializer_field_target
SgInitializedName* get_ctor_initializer_field_target() const;
get_ctor_initializer_source_order
std::optional<unsigned int> get_ctor_initializer_source_order() const;
get_cxx_field_index
std::optional<unsigned int> get_cxx_field_index() const;
get_cxx_source_type
SgType* get_cxx_source_type() const;
get_declaration
SgDeclarationStatement* get_declaration() const;
get_declptr
SgDeclarationStatement* get_declptr() const;
get_deduction_guide_default_available
bool get_deduction_guide_default_available() const;
get_definition
SgVariableDefinition* get_definition() const;
get_enum_constant_source_ownership
SgInitializedName::enum_constant_source_ownership_enum get_enum_constant_source_ownership() const;
get_enum_constant_value
std::optional<long long> get_enum_constant_value() const;
get_fortran_c_argument_passing
SgInitializedName::fortran_c_argument_passing_enum get_fortran_c_argument_passing() const;
get_fortran_cray_pointer_pointee_shape
SgExprListExp* get_fortran_cray_pointer_pointee_shape() const;
get_fortran_procedure_component_binding
std::optional<SgInitializedName::FortranProcedureComponentBinding> get_fortran_procedure_component_binding() const;
get_fortran_procedure_interface
SgExpression* get_fortran_procedure_interface() const;
get_fortran_separate_pointer_declaration
SgStatement* get_fortran_separate_pointer_declaration() const;
get_fortran_separate_shape_declaration
SgStatement* get_fortran_separate_shape_declaration() const;
get_fortran_source_derived_type_symbol
SgSymbol* get_fortran_source_derived_type_symbol() const;
get_fortran_source_type
SgType* get_fortran_source_type() const;
get_fortran_type_spec
SgInitializedName::fortran_type_spec_enum get_fortran_type_spec() const;
get_generated_variable_role
SgInitializedName::generated_variable_role_enum get_generated_variable_role() const;
get_global_qualification_required
bool get_global_qualification_required() const;
get_global_qualification_required_for_type
bool get_global_qualification_required_for_type() const;
get_gnu_attribute_alignment
int get_gnu_attribute_alignment() const;
get_gnu_attribute_modifierVector
SgBitVector get_gnu_attribute_modifierVector() const;
get_gnu_attribute_section_name
std::string get_gnu_attribute_section_name() const;
get_initializationDeferred
bool get_initializationDeferred() const;
get_initializer
SgInitializer* get_initializer() const;
get_initptr
SgInitializer* get_initptr() const;
get_isCoArray
bool get_isCoArray() const;
get_is_braced_initialized
bool get_is_braced_initialized() const;
get_is_pack_element
bool get_is_pack_element() const;
get_is_parameter_pack
bool get_is_parameter_pack() const;
get_is_predefined_identifier
bool get_is_predefined_identifier() const;
get_mangled_name
virtual SgName get_mangled_name() const; [virtual]
get_name
SgName get_name() const;
get_name_qualification_length
int get_name_qualification_length() const;
get_name_qualification_length_for_type
int get_name_qualification_length_for_type() const;
get_needs_definitions
bool get_needs_definitions() const;
get_numberOfTraversalSuccessors
virtual size_t get_numberOfTraversalSuccessors() const override; [virtual]
return number of children in the traversal successor list
get_preinitialization
SgInitializedName::preinitialization_enum get_preinitialization() const;
get_prev_decl_item
SgInitializedName* get_prev_decl_item() const;
get_protected_declaration
bool get_protected_declaration() const;
get_qualified_name
SgName get_qualified_name() const;
Returns the name with appropriate qualified names representing nested scopes
get_register_name_string
std::string get_register_name_string() const;
get_requiresGlobalNameQualificationOnType
bool get_requiresGlobalNameQualificationOnType() const;
get_scope
SgScopeStatement* get_scope() const;
get_shapeDeferred
bool get_shapeDeferred() const;
get_source_name_global_qualification
bool get_source_name_global_qualification() const;
get_source_name_qualification_present
bool get_source_name_qualification_present() const;
get_source_name_qualification_tokens
SgStringList const& get_source_name_qualification_tokens() const;
get_source_type_global_qualification
bool get_source_type_global_qualification() const;
get_source_type_qualification_present
bool get_source_type_qualification_present() const;
get_source_type_qualification_tokens
SgStringList const& get_source_type_qualification_tokens() const;
get_storageModifier
SgStorageModifier& get_storageModifier();
get_storage_size_bytes
std::optional<long long> get_storage_size_bytes() const;
get_structured_binding_alias
SgInitializedName* get_structured_binding_alias() const;
get_structured_binding_holding_variable
SgInitializedName* get_structured_binding_holding_variable() const;
get_structured_binding_kind
structured_binding_kind_enum get_structured_binding_kind() const;
get_structured_binding_owner
SgInitializedName* get_structured_binding_owner() const;
get_structured_binding_pattern
SgExprListExp* get_structured_binding_pattern() const;
get_structured_binding_scope
SgDeclarationScope* get_structured_binding_scope() const;
get_structured_binding_value
SgExpression* get_structured_binding_value() const;
get_symbol_from_symbol_table
SgSymbol* get_symbol_from_symbol_table() const;
Get the associated SgSymbol from the symbol table located in the scope, without considering possible prev_decl_item. Internal use only. Users should use search_for_symbol_from_symbol_table() instead.
get_traversalSuccessorByIndex
virtual SgNode* get_traversalSuccessorByIndex(size_t idx) const override; [virtual]
index-based access to traversal successors by index number
get_traversalSuccessorContainer
virtual std::vector<SgNode*> get_traversalSuccessorContainer() const override; [virtual]
container of pointers to AST successor nodes used in the traversal overridden in every class by generated implementation
get_traversalSuccessorIsListElement
virtual std::vector<bool> get_traversalSuccessorIsListElement() const override; [virtual]
get_traversalSuccessorNamesContainer
virtual std::vector<std::string> get_traversalSuccessorNamesContainer() const override; [virtual]
container of names of variables or container indices used used in the traversal to access AST successor nodes overridden in every class by generated implementation
get_type
SgType* get_type() const;
get_type_elaboration_required
bool get_type_elaboration_required() const;
get_type_elaboration_required_for_type
bool get_type_elaboration_required_for_type() const;
get_typeptr
SgType* get_typeptr() const;
get_using_assignment_copy_constructor_syntax
bool get_using_assignment_copy_constructor_syntax() const;
get_variable_definition
SgVariableDefinition* get_variable_definition() const;
initialize_structured_binding
void initialize_structured_binding( SgInitializedName*, SgExpression*, SgInitializedName*, structured_binding_kind_enum);
initialize_structured_binding_scope
void initialize_structured_binding_scope(SgDeclarationScope*);
isGnuAttributeDeprecated
bool isGnuAttributeDeprecated() const;
isGnuAttributeNoCommon
bool isGnuAttributeNoCommon() const;
isGnuAttributeNoReorder
bool isGnuAttributeNoReorder() const;
isGnuAttributeNoReturn
bool isGnuAttributeNoReturn() const;
isGnuAttributePacked
bool isGnuAttributePacked() const;
isGnuAttributeTransparentUnion
bool isGnuAttributeTransparentUnion() const;
isGnuAttributeUnused
bool isGnuAttributeUnused() const;
isGnuAttributeUsed
bool isGnuAttributeUsed() const;
isGnuAttributeWeak
bool isGnuAttributeWeak() const;
isGnuAttributeWeakReference
bool isGnuAttributeWeakReference() const;
numberOfAttributes
virtual int numberOfAttributes() const override; [virtual]
Returns the number of attributes on this IR node.
operator delete
void operator delete( void* pointer, size_t size);
deallocated memory for IR node (returns memory to memory pool for reuse)
operator new
void* operator new(size_t size);
returns pointer to newly allocated IR node
post_construction_initialization
virtual void post_construction_initialization() override; [virtual]
processDataMemberReferenceToPointers
virtual void processDataMemberReferenceToPointers(ReferenceToPointerHandler*) override; [virtual]
Pass references to stored node pointers to a handler.
removeAttribute
virtual void removeAttribute(std::string s) override; [virtual]
Remove attribute of name 's' if present.
returnDataMemberPointers
virtual std::vector<std::pair<SgNode*, std::string>> returnDataMemberPointers() const override; [virtual]
Return the node pointers stored in this node's data members.
roseRTI
virtual RTIReturnType roseRTI() override; [virtual]
return C++ Runtime-Time-Information
sage_class_name
virtual char const* sage_class_name() const override; [virtual]
returns a C style string (char*) representing the class name
search_for_symbol_from_symbol_table
SgSymbol* search_for_symbol_from_symbol_table() const;
User interface for retrieving the associated symbol. It searches through the possible chain of prev_decl_item.
setAttribute
virtual void setAttribute( std::string s, AstAttribute* a) override; [virtual]
This is a wrapper function with the following semantics: if no attribute of name 's' exists then addNewAttribute(s,a); is called, otherwise updateAttribute(s,a); is called.
setBit
void setBit(unsigned int bit);
setGnuAttributeDeprecated
void setGnuAttributeDeprecated();
setGnuAttributeNoCommon
void setGnuAttributeNoCommon();
setGnuAttributeNoReorder
void setGnuAttributeNoReorder();
setGnuAttributeNoReturn
void setGnuAttributeNoReturn();
setGnuAttributePacked
void setGnuAttributePacked();
setGnuAttributeTransparentUnion
void setGnuAttributeTransparentUnion();
setGnuAttributeUnused
void setGnuAttributeUnused();
setGnuAttributeUsed
void setGnuAttributeUsed();
setGnuAttributeWeak
void setGnuAttributeWeak();
setGnuAttributeWeakReference
void setGnuAttributeWeakReference();
set_auto_decltype
void set_auto_decltype(SgType* auto_decltype);
set_cray_pointer_pointee
void set_cray_pointer_pointee(SgInitializedName* cray_pointer_pointee);
set_ctor_initializer_field_target
void set_ctor_initializer_field_target(SgInitializedName* ctor_initializer_field_target);
set_ctor_initializer_source_order
void set_ctor_initializer_source_order(std::optional<unsigned int> ctor_initializer_source_order);
set_cxx_field_index
void set_cxx_field_index(std::optional<unsigned int> cxx_field_index);
set_cxx_source_type
void set_cxx_source_type(SgType* type);
set_declptr
void set_declptr(SgDeclarationStatement* declptr);
set_deduction_guide_default_available
void set_deduction_guide_default_available(bool deduction_guide_default_available);
set_definition
void set_definition(SgVariableDefinition* def);
set_enum_constant_source_ownership
void set_enum_constant_source_ownership(SgInitializedName::enum_constant_source_ownership_enum enum_constant_source_ownership);
set_enum_constant_value
void set_enum_constant_value(std::optional<long long> enum_constant_value);
set_fortran_c_argument_passing
void set_fortran_c_argument_passing(SgInitializedName::fortran_c_argument_passing_enum fortran_c_argument_passing);
set_fortran_cray_pointer_pointee_shape
void set_fortran_cray_pointer_pointee_shape(SgExprListExp* fortran_cray_pointer_pointee_shape);
set_fortran_procedure_component_binding
void set_fortran_procedure_component_binding(std::optional<SgInitializedName::FortranProcedureComponentBinding> fortran_procedure_component_binding);
set_fortran_procedure_interface
void set_fortran_procedure_interface(SgExpression* interface);
set_fortran_separate_pointer_declaration
void set_fortran_separate_pointer_declaration(SgStatement* fortran_separate_pointer_declaration);
set_fortran_separate_shape_declaration
void set_fortran_separate_shape_declaration(SgStatement* fortran_separate_shape_declaration);
set_fortran_source_derived_type_symbol
void set_fortran_source_derived_type_symbol(SgSymbol* fortran_source_derived_type_symbol);
set_fortran_source_type
void set_fortran_source_type(SgType* fortran_source_type);
set_fortran_type_spec
void set_fortran_type_spec(SgInitializedName::fortran_type_spec_enum fortran_type_spec);
set_generated_variable_role
void set_generated_variable_role(SgInitializedName::generated_variable_role_enum generated_variable_role);
set_global_qualification_required
void set_global_qualification_required(bool global_qualification_required_for_type);
set_global_qualification_required_for_type
void set_global_qualification_required_for_type(bool global_qualification_required_for_type);
set_gnu_attribute_alignment
void set_gnu_attribute_alignment(int gnu_attribute_alignment);
set_gnu_attribute_modifierVector
void set_gnu_attribute_modifierVector(SgBitVector gnu_attribute_modifierVector);
set_gnu_attribute_section_name
void set_gnu_attribute_section_name(std::string gnu_attribute_section_name);
set_initializationDeferred
void set_initializationDeferred(bool initializationDeferred);
set_initializer
void set_initializer(SgInitializer* i);
set_initptr
void set_initptr(SgInitializer* initptr);
set_isCoArray
void set_isCoArray(bool isCoArray);
set_is_braced_initialized
void set_is_braced_initialized(bool is_braced_initialized);
set_is_pack_element
void set_is_pack_element(bool is_pack_element);
set_is_parameter_pack
void set_is_parameter_pack(bool is_parameter_pack);
set_is_predefined_identifier
void set_is_predefined_identifier(bool is_predefined_identifier);
set_name
void set_name(SgName name);
set_name_qualification_length
void set_name_qualification_length(int name_qualification_length_for_type);
set_name_qualification_length_for_type
void set_name_qualification_length_for_type(int name_qualification_length_for_type);
set_needs_definitions
void set_needs_definitions(bool needs_definitions);
set_preinitialization
void set_preinitialization(SgInitializedName::preinitialization_enum preinitialization);
set_prev_decl_item
void set_prev_decl_item(SgInitializedName* prev_decl_item);
set_protected_declaration
void set_protected_declaration(bool protected_declaration);
set_register_name_string
void set_register_name_string(std::string register_name_string);
set_requiresGlobalNameQualificationOnType
void set_requiresGlobalNameQualificationOnType(bool requiresGlobalNameQualificationOnType);
set_scope
void set_scope(SgScopeStatement*);
set_shapeDeferred
void set_shapeDeferred(bool shapeDeferred);
set_source_name_global_qualification
void set_source_name_global_qualification(bool source_name_global_qualification);
set_source_name_qualification_present
void set_source_name_qualification_present(bool source_name_qualification_present);
set_source_type_global_qualification
void set_source_type_global_qualification(bool source_type_global_qualification);
set_source_type_qualification_present
void set_source_type_qualification_present(bool source_type_qualification_present);
set_storage_size_bytes
void set_storage_size_bytes(std::optional<long long> storage_size_bytes);
set_structured_binding_pattern
void set_structured_binding_pattern(SgExprListExp*);
set_type
void set_type(SgType* t);
set_type_elaboration_required
void set_type_elaboration_required(bool type_elaboration_required_for_type);
set_type_elaboration_required_for_type
void set_type_elaboration_required_for_type(bool type_elaboration_required_for_type);
set_typeptr
void set_typeptr(SgType* t);
set_using_assignment_copy_constructor_syntax
void set_using_assignment_copy_constructor_syntax(bool using_assignment_copy_constructor_syntax);
set_variable_definition
void set_variable_definition(SgVariableDefinition* variable_definition);
unsetBit
void unsetBit(unsigned int bit);
unsetGnuAttributeDeprecated
void unsetGnuAttributeDeprecated();
unsetGnuAttributeNoCommon
void unsetGnuAttributeNoCommon();
unsetGnuAttributeNoReorder
void unsetGnuAttributeNoReorder();
unsetGnuAttributeNoReturn
void unsetGnuAttributeNoReturn();
unsetGnuAttributePacked
void unsetGnuAttributePacked();
unsetGnuAttributeTransparentUnion
void unsetGnuAttributeTransparentUnion();
unsetGnuAttributeUnused
void unsetGnuAttributeUnused();
unsetGnuAttributeUsed
void unsetGnuAttributeUsed();
unsetGnuAttributeWeak
void unsetGnuAttributeWeak();
unsetGnuAttributeWeakReference
void unsetGnuAttributeWeakReference();
updateAttribute
virtual void updateAttribute( std::string s, AstAttribute* a) override; [virtual]
Replace existing attribute of name 's' with new AstAttribute.
validate_structured_binding
void validate_structured_binding() const;
variantT
virtual VariantT variantT() const override; [virtual]
returns new style SageIII enum values

Static Member Functions

Name Description
is_valid_fortran_procedure_interface
static bool is_valid_fortran_procedure_interface( SgExpression* interface, SgType* type);
is_valid_structured_binding
static bool is_valid_structured_binding( SgName const&, SgType*, SgInitializedName*, SgExpression*, SgInitializedName*, structured_binding_kind_enum, bool);
is_valid_structured_binding_initializer
static bool is_valid_structured_binding_initializer( SgType*, SgInitializer*);
memoryUsage
static size_t memoryUsage();
Returns the size in bytes of the total memory allocated for all IR nodes of this type
numberOfNodes
static size_t numberOfNodes();
Returns the total number of IR nodes of this type
traverseMemoryPoolNodes
static void traverseMemoryPoolNodes(ROSE_VisitTraversal& visit);
FOR INTERNAL USE Support for visitor pattern over all IR nodes by type of IR node.
traverseMemoryPoolVisitorPattern
static void traverseMemoryPoolVisitorPattern(ROSE_VisitorPattern& visitor);
FOR INTERNAL USE Support for visitor pattern.
visitRepresentativeNode
static void visitRepresentativeNode(ROSE_VisitTraversal& visit);
FOR INTERNAL USE Support for type-based traversal.

Static Data Members

Name Description
free_slots Free slots, each numbered pool_index * pool_size + slot_index. The last entry is allocated next.
pool_live_flags
pool_size
pools

Protected Data Members

Name
p_alignment_specifiers
p_auto_decltype
p_cray_pointer_pointee
p_ctor_initializer_field_target
p_ctor_initializer_source_order
p_cxx_field_index
p_cxx_source_type
p_declptr
p_deduction_guide_default_available
p_enum_constant_source_ownership
p_enum_constant_value
p_fortran_c_argument_passing
p_fortran_cray_pointer_pointee_shape
p_fortran_procedure_component_binding
p_fortran_procedure_interface
p_fortran_separate_pointer_declaration
p_fortran_separate_shape_declaration
p_fortran_source_derived_type_symbol
p_fortran_source_type
p_fortran_type_spec
p_generated_variable_role
p_global_qualification_required
p_global_qualification_required_for_type
p_gnu_attribute_alignment
p_gnu_attribute_modifierVector
p_gnu_attribute_section_name
p_initializationDeferred
p_initptr
p_isCoArray
p_is_braced_initialized
p_is_pack_element
p_is_parameter_pack
p_is_predefined_identifier
p_name
p_name_qualification_length
p_name_qualification_length_for_type
p_needs_definitions
p_preinitialization
p_prev_decl_item
p_protected_declaration
p_register_name_string
p_requiresGlobalNameQualificationOnType
p_scope
p_shapeDeferred
p_source_name_global_qualification
p_source_name_qualification_present
p_source_name_qualification_tokens
p_source_type_global_qualification
p_source_type_qualification_present
p_source_type_qualification_tokens
p_storageModifier
p_storage_size_bytes
p_structured_binding_holding_variable
p_structured_binding_kind
p_structured_binding_owner
p_structured_binding_pattern
p_structured_binding_scope
p_structured_binding_value
p_type_elaboration_required
p_type_elaboration_required_for_type
p_typeptr
p_using_assignment_copy_constructor_syntax
p_variable_definition

Friends

Name Description
isSgInitializedName Casts pointer from base class to derived class (for const pointers)
isSgInitializedName Casts pointer from base class to derived class

Created with MrDocs