|
| | function_decl (const string &name, function_type_sptr function_type, bool declared_inline, const location &locus, const string &mangled_name, visibility vis, binding bind) |
| | Constructor of the function_decl.
|
| | function_decl (const string &name, type_base_sptr fn_type, bool declared_inline, const location &locus, const string &mangled_name="", visibility vis=VISIBILITY_DEFAULT, binding bind=BINDING_GLOBAL) |
| | Constructor of the function_decl type.
|
| virtual | ~function_decl () |
| | Destructor of the function_decl type.
|
| void | append_parameter (parameter_sptr parm) |
| | Append a parameter to the type of this function.
|
| void | append_parameters (std::vector< parameter_sptr > &parms) |
| | Append a vector of parameters to the type of this function.
|
| function_decl_sptr | clone () const |
| | Create a new instance of function_decl that is a clone of the current one.
|
| binding | get_binding () const |
| parameters::const_iterator | get_first_non_artificial_parm () const |
| | Get the first parameter of the function that is not compiler-generated.
|
| parameters::const_iterator | get_first_non_implicit_parm () const |
| | Getter for the first non-implicit parameter of a function decl.
|
| interned_string | get_id () const |
| | Return an ID that tries to uniquely identify the function inside a program or a library.
|
| interned_string | get_id (const elf_symbol_sptr &s) const |
| | Return an ID that tries to uniquely identify the function inside a program or a library, given a given ELF symbol.
|
| const function_type * | get_naked_type () const |
| | Fast getter of the type of the current instance of function_decl.
|
| const std::vector< parameter_sptr > & | get_parameters () const |
| virtual string | get_pretty_representation (bool internal=false, bool qualified_name=true) const |
| | Get the pretty representation of the current instance of function_decl.
|
| string | get_pretty_representation_of_declarator (bool internal=false) const |
| | Compute and return the pretty representation for the part of the function declaration that starts at the declarator. That is, the return type and the other specifiers of the beginning of the function's declaration ar omitted.
|
| const type_base_sptr | get_return_type () const |
| const elf_symbol_sptr | get_symbol () const |
| | Gets the the underlying ELF symbol for the current variable, that was set using function_decl::set_symbol(). Please read the documentation for that member function for more information about "underlying ELF symbols".
|
| const function_type_sptr | get_type () const |
| | Return the type of the current instance of function_decl.
|
| bool | is_declared_inline () const |
| | Test if the function was declared inline.
|
| void | is_declared_inline (bool) |
| | Set the property of the function being declared inline.
|
| bool | is_variadic () const |
| | Return true iff the function takes a variable number of parameters.
|
| virtual bool | operator== (const decl_base &o) const |
| | Comparison operator for function_decl.
|
| void | set_symbol (const elf_symbol_sptr &sym) |
| | This sets the underlying ELF symbol for the current function decl.
|
| void | set_type (const function_type_sptr &fn_type) |
| virtual bool | traverse (ir_node_visitor &) |
| | This implements the ir_traversable_base::traverse pure virtual function.
|
| | scope_decl (const environment &env, const string &name, const location &locus, visibility vis=VISIBILITY_DEFAULT) |
| | Constructor of the scope_decl type.
|
| | scope_decl (const environment &env, location &l) |
| | Constructor of the scope_decl type.
|
| bool | find_iterator_for_member (const decl_base *, declarations::iterator &) |
| | Find a member of the current scope and return an iterator on it.
|
| bool | find_iterator_for_member (const decl_base_sptr, declarations::iterator &) |
| | Find a member of the current scope and return an iterator on it.
|
| type_base_sptr | find_member_type (const string &name) const |
| | Find a member type of a given name, inside the current scope_decl.
|
| canonical_type_sptr_set_type & | get_canonical_types () |
| | @eturn the set of canonical types of the the current scope.
|
| const canonical_type_sptr_set_type & | get_canonical_types () const |
| | @eturn the set of canonical types of the the current scope.
|
| declarations & | get_member_decls () |
| | Getter for the member declarations carried by the current scope_decl.
|
| const declarations & | get_member_decls () const |
| | Getter for the member declarations carried by the current scope_decl.
|
| declarations | get_member_decls_copy () const |
| | Getter for a copy of the member declarations carried by the current scope_decl.
|
| scopes & | get_member_scopes () |
| | Getter for the scopes carried by the current scope.
|
| const scopes & | get_member_scopes () const |
| | Getter for the scopes carried by the current scope.
|
| const type_base_sptrs_type & | get_member_types () const |
| | Get the member types of this scope_decl.
|
| virtual size_t | get_num_anonymous_member_classes () const |
| | Getter for the number of anonymous classes contained in this scope.
|
| virtual size_t | get_num_anonymous_member_enums () const |
| | Getter for the number of anonymous enums contained in this scope.
|
| virtual size_t | get_num_anonymous_member_unions () const |
| | Getter for the number of anonymous unions contained in this scope.
|
| const type_base_sptrs_type & | get_sorted_canonical_types () const |
| | Return a vector of sorted canonical types of the current scope.
|
| const declarations & | get_sorted_member_decls () const |
| | Getter for the sorted member declarations carried by the current scope_decl.
|
| const type_base_sptrs_type & | get_sorted_member_types () const |
| | Get the sorted member types of this scope_decl.
|
| type_base_sptrs_type | get_sorted_member_types_copy () const |
| | Get a copy of the sorted member types.
|
| bool | is_empty () const |
| | Test if the current scope is empty.
|
| bool | remove_member_type (type_base_sptr t) |
| | Remove a member type from the current class_or_union scope.
|
| | decl_base (const environment &, const location &) |
| | Constructor for the decl_base type.
|
| | decl_base (const environment &e, const interned_string &name, const location &locus, const interned_string &mangled_name=interned_string(), visibility vis=VISIBILITY_DEFAULT) |
| | Constructor.
|
| | decl_base (const environment &e, const string &name, const location &locus, const string &mangled_name="", visibility vis=VISIBILITY_DEFAULT) |
| | Constructor for the decl_base type.
|
| virtual | ~decl_base () |
| | Destructor of the decl_base type.
|
| void | add_naming_typedef (const typedef_decl_sptr) |
| | Set the naming typedef of the current instance of decl_base.
|
| context_rel * | get_context_rel () |
| | Getter for the context relationship.
|
| const context_rel * | get_context_rel () const |
| | Getter for the context relationship.
|
| const decl_base_sptr | get_definition_of_declaration () const |
| | If this decl_base is declaration-only, get its definition, if any.
|
| const decl_base_sptr | get_earlier_declaration () const |
| | If this decl_base is a definition, get its earlier declaration.
|
| bool | get_has_anonymous_parent () const |
| | Get the "has_anonymous_parent" flag of the current declaration.
|
| bool | get_is_anonymous () const |
| | Test if the current declaration is anonymous.
|
| bool | get_is_anonymous_or_has_anonymous_parent () const |
| bool | get_is_declaration_only () const |
| | Test if a decl_base is a declaration-only decl.
|
| bool | get_is_in_public_symbol_table () const |
| | Test if the decl is defined in a ELF symbol table as a public symbol.
|
| const interned_string & | get_linkage_name () const |
| | Getter for the mangled name.
|
| const location & | get_location () const |
| | Get the location of a given declaration.
|
| const decl_base * | get_naked_definition_of_declaration () const |
| | If this decl_base is declaration-only, get its definition, if any.
|
| virtual const interned_string & | get_name () const |
| | Getter for the name of the current decl.
|
| std::list< typedef_decl_sptr > & | get_naming_typedefs () const |
| | Getter for the naming typedef of the current decl.
|
| virtual const interned_string & | get_qualified_name (bool internal=false) const |
| | Return the qualified name of the decl.
|
| virtual void | get_qualified_name (interned_string &qualified_name, bool internal=false) const |
| | Compute the qualified name of the decl.
|
| const interned_string & | get_qualified_parent_name () const |
| | Return a copy of the qualified name of the parent of the current decl.
|
| scope_decl_sptr | get_scope () const |
| | Return the type containing the current decl, if any.
|
| virtual const interned_string & | get_scoped_name () const |
| | Return the scoped name of the decl.
|
| visibility | get_visibility () const |
| | Getter for the visibility of the decl.
|
| bool | has_naming_typedef (const typedef_decl_sptr) |
| | Test if the current decl has a given naming typedef.
|
| virtual bool | operator!= (const decl_base &) const |
| | Inequality operator.
|
| void | set_definition_of_declaration (const decl_base_sptr &) |
| | Set the definition of this declaration-only decl_base.
|
| void | set_earlier_declaration (const decl_base_sptr &) |
| | set the earlier declaration of this decl_base definition.
|
| void | set_is_anonymous (bool) |
| | Set the "is_anonymous" flag of the current declaration.
|
| void | set_is_declaration_only (bool f) |
| | Set a flag saying if the enum_type_decl is a declaration-only enum_type_decl.
|
| void | set_is_in_public_symbol_table (bool) |
| | Set the flag saying if this decl is from a symbol that is in a public symbols table, defined as public (global or weak).
|
| virtual void | set_linkage_name (const string &m) |
| | Setter for the linkage name.
|
| void | set_location (const location &l) |
| | Set the location for a given declaration.
|
| virtual void | set_name (const string &n) |
| | Setter for the name of the decl.
|
| void | set_qualified_name (const interned_string &) const |
| | Setter for the qualified name.
|
| virtual void | set_scope (scope_decl_sptr) |
| | Setter of the scope of the current decl.
|
| void | set_visibility (visibility v) |
| | Setter for the visibility of the decl.
|
| | type_or_decl_base (const environment &, enum type_or_decl_kind k=ABSTRACT_TYPE_OR_DECL) |
| | Constructor of type_or_decl_base.
|
| virtual | ~type_or_decl_base () |
| | The destructor of the type_or_decl_base type.
|
| location & | get_artificial_location () const |
| | Getter of the artificial location of the artifact.
|
| const interned_string & | get_cached_pretty_representation (bool internal=false) const |
| | Get the pretty representation of the current decl.
|
| corpus * | get_corpus () |
| | Get the corpus this ABI artifact belongs to.
|
| const corpus * | get_corpus () const |
| | Get the corpus this ABI artifact belongs to.
|
| const environment & | get_environment () const |
| | Getter of the environment of the current ABI artifact.
|
| bool | get_is_artificial () const |
| | Getter of the flag that says if the artefact is artificial.
|
| std::recursive_mutex & | get_mutex () const |
| | Get the recursive mutex associated to the artifact.
|
| offset_t | get_native_offset () const |
| | Get the native offset of a given artifact.
|
| const type_or_decl_base * | get_original_artefact () const |
| | Get the original artefact that the current artefact was copied from.
|
| translation_unit * | get_translation_unit () |
| | Get the translation_unit this ABI artifact belongs to.
|
| const translation_unit * | get_translation_unit () const |
| | Get the translation_unit this ABI artifact belongs to.
|
| bool | has_artificial_location () const |
| | Test if the current ABI artifact carries an artificial location.
|
| enum type_or_decl_kind | kind () const |
| | Getter for the "kind" property of type_or_decl_base type.
|
| void | set_artificial_location (const location &) |
| | Setter of the artificial location of the artificat.
|
| void | set_corpus (corpus *) const |
| | Set the ABI corpus associated to the current ABI artifact.
|
| void | set_is_artificial (bool) |
| | Setter of the flag that says if the artefact is artificial.
|
| void | set_native_offset (const offset_t) |
| | Set the native offset of a given artifact.
|
| void | set_original_artefact (const type_or_decl_base *) |
| | Set the original artefact that the current artefact was copied from.
|
| void | set_translation_unit (translation_unit *) |
| | Set the translation_unit this ABI artifact belongs to.
|
| virtual | ~traversable_base () |
| | Destructor of the traversable_base type.
|