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 |
|---|---|
SgInitializedNameSgInitializedName() = delete; [constructor] | Constructors |
~SgInitializedNamevirtual ~SgInitializedName(); [destructor] [virtual] | Destructor |
operator=SgInitializedName& operator=(SgInitializedName const& other) = delete; [deleted] | Copy assignment operator |
acceptvirtual void accept(ROSE_VisitorPattern& visitor) override; [virtual] | support for the classic visitor pattern done in GoF |
addNewAttributevirtual void addNewAttribute( std::string s, AstAttribute* a) override; [virtual] | Add a new attribute represented by the named string. |
appendDestructorOwnedNodesvirtual void appendDestructorOwnedNodes(std::vector<SgNode*>& nodes) const override; [virtual] | |
attributeExistsvirtual bool attributeExists(std::string s) const override; [virtual] | Tests if attribute of name 's' is present. |
cfgFindChildIndexvirtual unsigned int cfgFindChildIndex(SgNode* n) override; [virtual] | |
cfgFindNextChildIndexvirtual unsigned int cfgFindNextChildIndex(SgNode* n) override; [virtual] | |
cfgInEdgesvirtual std::vector<VirtualCFG::CFGEdge> cfgInEdges(unsigned int index) override; [virtual] | |
cfgIndexForEndvirtual unsigned int cfgIndexForEnd() const override; [virtual] | |
cfgIsIndexInterestingvirtual bool cfgIsIndexInteresting(unsigned int index) const override; [virtual] | |
cfgOutEdgesvirtual std::vector<VirtualCFG::CFGEdge> cfgOutEdges(unsigned int index) override; [virtual] | |
checkBitbool checkBit(unsigned int bit) const; | |
class_namevirtual std::string class_name() const override; [virtual] | returns a string representing the class name |
construct_source_prototype_copy_symbolvoid construct_source_prototype_copy_symbol( SgInitializedName const& source, SgCopyHelp& help); | |
copyvirtual SgNode* copy(SgCopyHelp& help) const override; [virtual] | |
fixupCopy_referencesvirtual void fixupCopy_references( SgNode* copy, SgCopyHelp& help) const override; [virtual] | |
fixupCopy_scopesvirtual void fixupCopy_scopes( SgNode* copy, SgCopyHelp& help) const override; [virtual] | |
fixupCopy_symbolsvirtual void fixupCopy_symbols( SgNode* copy, SgCopyHelp& help) const override; [virtual] | |
getAttributevirtual AstAttribute* getAttribute(std::string s) const override; [virtual] | Returns attribute of name 's'. |
get_alignment_specifiersSgAlignmentSpecifierPtrList const& get_alignment_specifiers() const; | |
get_auto_decltypeSgType* get_auto_decltype() const; | |
get_childIndexvirtual size_t get_childIndex(SgNode* child) const override; [virtual] | index-based access to traversal successors by child node |
get_cray_pointer_pointeeSgInitializedName* get_cray_pointer_pointee() const; | |
get_ctor_initializer_field_targetSgInitializedName* get_ctor_initializer_field_target() const; | |
get_ctor_initializer_source_orderstd::optional<unsigned int> get_ctor_initializer_source_order() const; | |
get_cxx_field_indexstd::optional<unsigned int> get_cxx_field_index() const; | |
get_cxx_source_typeSgType* get_cxx_source_type() const; | |
get_declarationSgDeclarationStatement* get_declaration() const; | |
get_declptrSgDeclarationStatement* get_declptr() const; | |
get_deduction_guide_default_availablebool get_deduction_guide_default_available() const; | |
get_definitionSgVariableDefinition* get_definition() const; | |
get_enum_constant_source_ownershipSgInitializedName::enum_constant_source_ownership_enum get_enum_constant_source_ownership() const; | |
get_enum_constant_valuestd::optional<long long> get_enum_constant_value() const; | |
get_fortran_c_argument_passingSgInitializedName::fortran_c_argument_passing_enum get_fortran_c_argument_passing() const; | |
get_fortran_cray_pointer_pointee_shapeSgExprListExp* get_fortran_cray_pointer_pointee_shape() const; | |
get_fortran_procedure_component_bindingstd::optional<SgInitializedName::FortranProcedureComponentBinding> get_fortran_procedure_component_binding() const; | |
get_fortran_procedure_interfaceSgExpression* get_fortran_procedure_interface() const; | |
get_fortran_separate_pointer_declarationSgStatement* get_fortran_separate_pointer_declaration() const; | |
get_fortran_separate_shape_declarationSgStatement* get_fortran_separate_shape_declaration() const; | |
get_fortran_source_derived_type_symbolSgSymbol* get_fortran_source_derived_type_symbol() const; | |
get_fortran_source_typeSgType* get_fortran_source_type() const; | |
get_fortran_type_specSgInitializedName::fortran_type_spec_enum get_fortran_type_spec() const; | |
get_generated_variable_roleSgInitializedName::generated_variable_role_enum get_generated_variable_role() const; | |
get_global_qualification_requiredbool get_global_qualification_required() const; | |
get_global_qualification_required_for_typebool get_global_qualification_required_for_type() const; | |
get_gnu_attribute_alignmentint get_gnu_attribute_alignment() const; | |
get_gnu_attribute_modifierVectorSgBitVector get_gnu_attribute_modifierVector() const; | |
get_gnu_attribute_section_namestd::string get_gnu_attribute_section_name() const; | |
get_initializationDeferredbool get_initializationDeferred() const; | |
get_initializerSgInitializer* get_initializer() const; | |
get_initptrSgInitializer* get_initptr() const; | |
get_isCoArraybool get_isCoArray() const; | |
get_is_braced_initializedbool get_is_braced_initialized() const; | |
get_is_pack_elementbool get_is_pack_element() const; | |
get_is_parameter_packbool get_is_parameter_pack() const; | |
get_is_predefined_identifierbool get_is_predefined_identifier() const; | |
get_mangled_namevirtual SgName get_mangled_name() const; [virtual] | |
get_nameSgName get_name() const; | |
get_name_qualification_lengthint get_name_qualification_length() const; | |
get_name_qualification_length_for_typeint get_name_qualification_length_for_type() const; | |
get_needs_definitionsbool get_needs_definitions() const; | |
get_numberOfTraversalSuccessorsvirtual size_t get_numberOfTraversalSuccessors() const override; [virtual] | return number of children in the traversal successor list |
get_preinitializationSgInitializedName::preinitialization_enum get_preinitialization() const; | |
get_prev_decl_itemSgInitializedName* get_prev_decl_item() const; | |
get_protected_declarationbool get_protected_declaration() const; | |
get_qualified_nameSgName get_qualified_name() const; | Returns the name with appropriate qualified names representing nested scopes |
get_register_name_stringstd::string get_register_name_string() const; | |
get_requiresGlobalNameQualificationOnTypebool get_requiresGlobalNameQualificationOnType() const; | |
get_scopeSgScopeStatement* get_scope() const; | |
get_shapeDeferredbool get_shapeDeferred() const; | |
get_source_name_global_qualificationbool get_source_name_global_qualification() const; | |
get_source_name_qualification_presentbool get_source_name_qualification_present() const; | |
get_source_name_qualification_tokensSgStringList const& get_source_name_qualification_tokens() const; | |
get_source_type_global_qualificationbool get_source_type_global_qualification() const; | |
get_source_type_qualification_presentbool get_source_type_qualification_present() const; | |
get_source_type_qualification_tokensSgStringList const& get_source_type_qualification_tokens() const; | |
get_storageModifierSgStorageModifier& get_storageModifier(); | |
get_storage_size_bytesstd::optional<long long> get_storage_size_bytes() const; | |
get_structured_binding_aliasSgInitializedName* get_structured_binding_alias() const; | |
get_structured_binding_holding_variableSgInitializedName* get_structured_binding_holding_variable() const; | |
get_structured_binding_kindstructured_binding_kind_enum get_structured_binding_kind() const; | |
get_structured_binding_ownerSgInitializedName* get_structured_binding_owner() const; | |
get_structured_binding_patternSgExprListExp* get_structured_binding_pattern() const; | |
get_structured_binding_scopeSgDeclarationScope* get_structured_binding_scope() const; | |
get_structured_binding_valueSgExpression* get_structured_binding_value() const; | |
get_symbol_from_symbol_tableSgSymbol* 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_traversalSuccessorByIndexvirtual SgNode* get_traversalSuccessorByIndex(size_t idx) const override; [virtual] | index-based access to traversal successors by index number |
get_traversalSuccessorContainervirtual 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_traversalSuccessorIsListElementvirtual std::vector<bool> get_traversalSuccessorIsListElement() const override; [virtual] | |
get_traversalSuccessorNamesContainervirtual 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_typeSgType* get_type() const; | |
get_type_elaboration_requiredbool get_type_elaboration_required() const; | |
get_type_elaboration_required_for_typebool get_type_elaboration_required_for_type() const; | |
get_typeptrSgType* get_typeptr() const; | |
get_using_assignment_copy_constructor_syntaxbool get_using_assignment_copy_constructor_syntax() const; | |
get_variable_definitionSgVariableDefinition* get_variable_definition() const; | |
initialize_structured_bindingvoid initialize_structured_binding( SgInitializedName*, SgExpression*, SgInitializedName*, structured_binding_kind_enum); | |
initialize_structured_binding_scopevoid initialize_structured_binding_scope(SgDeclarationScope*); | |
isGnuAttributeDeprecatedbool isGnuAttributeDeprecated() const; | |
isGnuAttributeNoCommonbool isGnuAttributeNoCommon() const; | |
isGnuAttributeNoReorderbool isGnuAttributeNoReorder() const; | |
isGnuAttributeNoReturnbool isGnuAttributeNoReturn() const; | |
isGnuAttributePackedbool isGnuAttributePacked() const; | |
isGnuAttributeTransparentUnionbool isGnuAttributeTransparentUnion() const; | |
isGnuAttributeUnusedbool isGnuAttributeUnused() const; | |
isGnuAttributeUsedbool isGnuAttributeUsed() const; | |
isGnuAttributeWeakbool isGnuAttributeWeak() const; | |
isGnuAttributeWeakReferencebool isGnuAttributeWeakReference() const; | |
numberOfAttributesvirtual int numberOfAttributes() const override; [virtual] | Returns the number of attributes on this IR node. |
operator deletevoid operator delete( void* pointer, size_t size); | deallocated memory for IR node (returns memory to memory pool for reuse) |
operator newvoid* operator new(size_t size); | returns pointer to newly allocated IR node |
post_construction_initializationvirtual void post_construction_initialization() override; [virtual] | |
processDataMemberReferenceToPointersvirtual void processDataMemberReferenceToPointers(ReferenceToPointerHandler*) override; [virtual] | Pass references to stored node pointers to a handler. |
removeAttributevirtual void removeAttribute(std::string s) override; [virtual] | Remove attribute of name 's' if present. |
returnDataMemberPointersvirtual std::vector<std::pair<SgNode*, std::string>> returnDataMemberPointers() const override; [virtual] | Return the node pointers stored in this node's data members. |
roseRTIvirtual RTIReturnType roseRTI() override; [virtual] | return C++ Runtime-Time-Information |
sage_class_namevirtual char const* sage_class_name() const override; [virtual] | returns a C style string (char*) representing the class name |
search_for_symbol_from_symbol_tableSgSymbol* search_for_symbol_from_symbol_table() const; | User interface for retrieving the associated symbol. It searches through the possible chain of prev_decl_item. |
setAttributevirtual 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. |
setBitvoid setBit(unsigned int bit); | |
setGnuAttributeDeprecatedvoid setGnuAttributeDeprecated(); | |
setGnuAttributeNoCommonvoid setGnuAttributeNoCommon(); | |
setGnuAttributeNoReordervoid setGnuAttributeNoReorder(); | |
setGnuAttributeNoReturnvoid setGnuAttributeNoReturn(); | |
setGnuAttributePackedvoid setGnuAttributePacked(); | |
setGnuAttributeTransparentUnionvoid setGnuAttributeTransparentUnion(); | |
setGnuAttributeUnusedvoid setGnuAttributeUnused(); | |
setGnuAttributeUsedvoid setGnuAttributeUsed(); | |
setGnuAttributeWeakvoid setGnuAttributeWeak(); | |
setGnuAttributeWeakReferencevoid setGnuAttributeWeakReference(); | |
set_auto_decltypevoid set_auto_decltype(SgType* auto_decltype); | |
set_cray_pointer_pointeevoid set_cray_pointer_pointee(SgInitializedName* cray_pointer_pointee); | |
set_ctor_initializer_field_targetvoid set_ctor_initializer_field_target(SgInitializedName* ctor_initializer_field_target); | |
set_ctor_initializer_source_ordervoid set_ctor_initializer_source_order(std::optional<unsigned int> ctor_initializer_source_order); | |
set_cxx_field_indexvoid set_cxx_field_index(std::optional<unsigned int> cxx_field_index); | |
set_cxx_source_typevoid set_cxx_source_type(SgType* type); | |
set_declptrvoid set_declptr(SgDeclarationStatement* declptr); | |
set_deduction_guide_default_availablevoid set_deduction_guide_default_available(bool deduction_guide_default_available); | |
set_definitionvoid set_definition(SgVariableDefinition* def); | |
set_enum_constant_source_ownershipvoid set_enum_constant_source_ownership(SgInitializedName::enum_constant_source_ownership_enum enum_constant_source_ownership); | |
set_enum_constant_valuevoid set_enum_constant_value(std::optional<long long> enum_constant_value); | |
set_fortran_c_argument_passingvoid set_fortran_c_argument_passing(SgInitializedName::fortran_c_argument_passing_enum fortran_c_argument_passing); | |
set_fortran_cray_pointer_pointee_shapevoid set_fortran_cray_pointer_pointee_shape(SgExprListExp* fortran_cray_pointer_pointee_shape); | |
set_fortran_procedure_component_bindingvoid set_fortran_procedure_component_binding(std::optional<SgInitializedName::FortranProcedureComponentBinding> fortran_procedure_component_binding); | |
set_fortran_procedure_interfacevoid set_fortran_procedure_interface(SgExpression* interface); | |
set_fortran_separate_pointer_declarationvoid set_fortran_separate_pointer_declaration(SgStatement* fortran_separate_pointer_declaration); | |
set_fortran_separate_shape_declarationvoid set_fortran_separate_shape_declaration(SgStatement* fortran_separate_shape_declaration); | |
set_fortran_source_derived_type_symbolvoid set_fortran_source_derived_type_symbol(SgSymbol* fortran_source_derived_type_symbol); | |
set_fortran_source_typevoid set_fortran_source_type(SgType* fortran_source_type); | |
set_fortran_type_specvoid set_fortran_type_spec(SgInitializedName::fortran_type_spec_enum fortran_type_spec); | |
set_generated_variable_rolevoid set_generated_variable_role(SgInitializedName::generated_variable_role_enum generated_variable_role); | |
set_global_qualification_requiredvoid set_global_qualification_required(bool global_qualification_required_for_type); | |
set_global_qualification_required_for_typevoid set_global_qualification_required_for_type(bool global_qualification_required_for_type); | |
set_gnu_attribute_alignmentvoid set_gnu_attribute_alignment(int gnu_attribute_alignment); | |
set_gnu_attribute_modifierVectorvoid set_gnu_attribute_modifierVector(SgBitVector gnu_attribute_modifierVector); | |
set_gnu_attribute_section_namevoid set_gnu_attribute_section_name(std::string gnu_attribute_section_name); | |
set_initializationDeferredvoid set_initializationDeferred(bool initializationDeferred); | |
set_initializervoid set_initializer(SgInitializer* i); | |
set_initptrvoid set_initptr(SgInitializer* initptr); | |
set_isCoArrayvoid set_isCoArray(bool isCoArray); | |
set_is_braced_initializedvoid set_is_braced_initialized(bool is_braced_initialized); | |
set_is_pack_elementvoid set_is_pack_element(bool is_pack_element); | |
set_is_parameter_packvoid set_is_parameter_pack(bool is_parameter_pack); | |
set_is_predefined_identifiervoid set_is_predefined_identifier(bool is_predefined_identifier); | |
set_namevoid set_name(SgName name); | |
set_name_qualification_lengthvoid set_name_qualification_length(int name_qualification_length_for_type); | |
set_name_qualification_length_for_typevoid set_name_qualification_length_for_type(int name_qualification_length_for_type); | |
set_needs_definitionsvoid set_needs_definitions(bool needs_definitions); | |
set_preinitializationvoid set_preinitialization(SgInitializedName::preinitialization_enum preinitialization); | |
set_prev_decl_itemvoid set_prev_decl_item(SgInitializedName* prev_decl_item); | |
set_protected_declarationvoid set_protected_declaration(bool protected_declaration); | |
set_register_name_stringvoid set_register_name_string(std::string register_name_string); | |
set_requiresGlobalNameQualificationOnTypevoid set_requiresGlobalNameQualificationOnType(bool requiresGlobalNameQualificationOnType); | |
set_scopevoid set_scope(SgScopeStatement*); | |
set_shapeDeferredvoid set_shapeDeferred(bool shapeDeferred); | |
set_source_name_global_qualificationvoid set_source_name_global_qualification(bool source_name_global_qualification); | |
set_source_name_qualification_presentvoid set_source_name_qualification_present(bool source_name_qualification_present); | |
set_source_type_global_qualificationvoid set_source_type_global_qualification(bool source_type_global_qualification); | |
set_source_type_qualification_presentvoid set_source_type_qualification_present(bool source_type_qualification_present); | |
set_storage_size_bytesvoid set_storage_size_bytes(std::optional<long long> storage_size_bytes); | |
set_structured_binding_patternvoid set_structured_binding_pattern(SgExprListExp*); | |
set_typevoid set_type(SgType* t); | |
set_type_elaboration_requiredvoid set_type_elaboration_required(bool type_elaboration_required_for_type); | |
set_type_elaboration_required_for_typevoid set_type_elaboration_required_for_type(bool type_elaboration_required_for_type); | |
set_typeptrvoid set_typeptr(SgType* t); | |
set_using_assignment_copy_constructor_syntaxvoid set_using_assignment_copy_constructor_syntax(bool using_assignment_copy_constructor_syntax); | |
set_variable_definitionvoid set_variable_definition(SgVariableDefinition* variable_definition); | |
unsetBitvoid unsetBit(unsigned int bit); | |
unsetGnuAttributeDeprecatedvoid unsetGnuAttributeDeprecated(); | |
unsetGnuAttributeNoCommonvoid unsetGnuAttributeNoCommon(); | |
unsetGnuAttributeNoReordervoid unsetGnuAttributeNoReorder(); | |
unsetGnuAttributeNoReturnvoid unsetGnuAttributeNoReturn(); | |
unsetGnuAttributePackedvoid unsetGnuAttributePacked(); | |
unsetGnuAttributeTransparentUnionvoid unsetGnuAttributeTransparentUnion(); | |
unsetGnuAttributeUnusedvoid unsetGnuAttributeUnused(); | |
unsetGnuAttributeUsedvoid unsetGnuAttributeUsed(); | |
unsetGnuAttributeWeakvoid unsetGnuAttributeWeak(); | |
unsetGnuAttributeWeakReferencevoid unsetGnuAttributeWeakReference(); | |
updateAttributevirtual void updateAttribute( std::string s, AstAttribute* a) override; [virtual] | Replace existing attribute of name 's' with new AstAttribute. |
validate_structured_bindingvoid validate_structured_binding() const; | |
variantTvirtual VariantT variantT() const override; [virtual] | returns new style SageIII enum values |
Static Member Functions¶
| Name | Description |
|---|---|
is_valid_fortran_procedure_interfacestatic bool is_valid_fortran_procedure_interface( SgExpression* interface, SgType* type); | |
is_valid_structured_bindingstatic bool is_valid_structured_binding( SgName const&, SgType*, SgInitializedName*, SgExpression*, SgInitializedName*, structured_binding_kind_enum, bool); | |
is_valid_structured_binding_initializerstatic bool is_valid_structured_binding_initializer( SgType*, SgInitializer*); | |
memoryUsagestatic size_t memoryUsage(); | Returns the size in bytes of the total memory allocated for all IR nodes of this type |
numberOfNodesstatic size_t numberOfNodes(); | Returns the total number of IR nodes of this type |
traverseMemoryPoolNodesstatic void traverseMemoryPoolNodes(ROSE_VisitTraversal& visit); | FOR INTERNAL USE Support for visitor pattern over all IR nodes by type of IR node. |
traverseMemoryPoolVisitorPatternstatic void traverseMemoryPoolVisitorPattern(ROSE_VisitorPattern& visitor); | FOR INTERNAL USE Support for visitor pattern. |
visitRepresentativeNodestatic 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¶
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