Lines Matching defs:method
2153 /// elf_symbol::get_next_alias() method.
2265 /// defined in the code), this method offers a way of updating the main symbol
4587 /// location_manager::expand_location() method.
4606 /// you need to use the method @ref
4621 /// type_or_decl_base::has_artificial_location() method of this decl will
7902 /// This method can trigger the computing of the hash value, if need be.
8766 if (const method_type* method = is_method_type(fn_type))
8767 return get_method_type_name(method, internal);
8818 /// Get the name of a given method type and return a copy of it.
8833 /// Get the name of a given method type and return a copy of it.
8853 /// Get the name of a given method type and return a copy of it.
9058 if (const method_type* method = is_method_type(fn_type))
9059 return get_pretty_representation(method, internal);
9082 /// Get the pretty representation of a method type.
9084 /// @param method the method type to consider.
9091 /// @return the string represenation of the method type.
9093 get_pretty_representation(const method_type& method, bool internal)
9096 o << "method type " << get_method_type_name(method, internal);
9100 /// Get the pretty representation of a method type.
9102 /// @param method the method type to consider.
9109 /// @return the string represenation of the method type.
9111 get_pretty_representation(const method_type* method, bool internal)
9113 if (!method)
9115 return get_pretty_representation(*method, internal);
9118 /// Get the pretty representation of a method type.
9120 /// @param method the method type to consider.
9127 /// @return the string represenation of the method type.
9129 get_pretty_representation(const method_type_sptr method, bool internal)
9130 {return get_pretty_representation(method.get(), internal);}
13854 const method_type* method = is_method_type(&fn_type);
13855 if (method)
13858 (synthesize_type_from_translation_unit(method->get_class_type(), tu));
13868 method->get_is_const(),
14328 /// This method is invoked automatically right after the current
14345 /// There can also be cases where C has a method M which is not linked
17653 /// The intended use of this method is to permit in-place adjustment
18435 /// enum_type_decl::enumerator. The first invocation of the method
19476 /// In case these function types are actually method types, this
19479 /// classes of the method types. This prevents infinite recursion
19540 // Compare the names of the class of the method
19562 // that is the same as the method class name; we can recurse for
19849 /// @param return_type the type of the return value of the method.
19851 /// @param class_type the base type of the method type. That is, the
19852 /// type of the class the method belongs to.
19854 /// @param p the vector of the parameters of the method.
19856 /// @param is_const whether this method type is for a const method.
19857 /// Note that const-ness is a property of the method *type* and of the
19858 /// relationship between a method *declaration* and its scope.
19886 /// @param return_type the type of the return value of the method.
19888 /// @param class_type the type of the class the method belongs to.
19894 /// @param p the vector of the parameters of the method type.
19896 /// @param is_const whether this method type is for a const method.
19897 /// Note that const-ness is a property of the method *type* and of the
19898 /// relationship between a method *declaration* and its scope.
19945 /// @param class_typ the base type of the method type. That is, the
19946 /// type of the class (or union) the method belongs to.
19970 /// Get the class type this method belongs to.
19979 /// The class type is the type of the class the method belongs to.
20159 string result = mem_fn ? "method ": "function ";
20223 // Skip the first parameter if this is a method.
21275 /// Note that only type declarations are supported by this method for
21645 /// Find a method, using its linkage name as a key.
21647 /// @param linkage_name the linkage name of the method to find.
21649 /// @return the method found, or nil if none was found.
21656 /// Find a method, using its linkage name as a key.
21658 /// @param linkage_name the linkage name of the method to find.
21660 /// @return the method found, or nil if none was found.
21671 /// Find a method, using its linkage name as a key.
21673 /// @param linkage_name the linkage name of the method to find.
21675 /// @return the method found, or nil if none was found.
21686 /// Find a method (member function) using its signature (pretty
21689 /// @param s the signature of the method.
21691 /// @return the method found, or nil if none was found.
21698 /// Find a method (member function) using its signature (pretty
21701 /// @param s the signature of the method.
21703 /// @return the method found, or nil if none was found.
22119 /// Copy a method of a @ref class_or_union into a new @ref
22122 /// @param t the @ref class_or_union into which the method is to be copied.
22124 /// @param method the method to copy into @p t.
22126 /// @return the resulting newly copied method.
22129 const method_decl_sptr& method)
22130 {return copy_member_function(t, method.get());}
22133 /// Copy a method of a @ref class_or_union into a new @ref
22136 /// @param t the @ref class_or_union into which the method is to be copied.
22138 /// @param method the method to copy into @p t.
22140 /// @return the resulting newly copied method.
22142 copy_member_function(const class_or_union_sptr& t, const method_decl* method)
22145 ABG_ASSERT(method);
22147 method_type_sptr old_type = method->get_type();
22158 new_method(new method_decl(method->get_name(),
22160 method->is_declared_inline(),
22161 method->get_location(),
22162 method->get_linkage_name(),
22163 method->get_visibility(),
22164 method->get_binding()));
22165 new_method->set_symbol(method->get_symbol());
22169 get_member_access_specifier(*method),
22170 get_member_function_is_virtual(*method),
22171 get_member_function_vtable_offset(*method),
22172 get_member_is_static(*method),
22173 get_member_function_is_ctor(*method),
22174 get_member_function_is_dtor(*method),
22175 get_member_function_is_const(*method));
22178 get_member_access_specifier(*method),
22179 get_member_is_static(*method),
22180 get_member_function_is_ctor(*method),
22181 get_member_function_is_dtor(*method),
22182 get_member_function_is_const(*method));
22550 /// This method is invoked automatically right after the current
22929 /// @param name the name of the method.
22931 /// @param type the type of the method.
22933 /// @param declared_inline whether the method was
22936 /// @param locus the source location of the method.
22938 /// @param linkage_name the mangled name of the method.
22940 /// @param vis the visibility of the method.
22942 /// @param bind the binding of the method.
22965 /// @param name the name of the method.
22967 /// @param type the type of the method. Must be an instance of
22970 /// @param declared_inline whether the method was
22973 /// @param locus the source location of the method.
22975 /// @param linkage_name the mangled name of the method.
22977 /// @param vis the visibility of the method.
22979 /// @param bind the binding of the method.
23002 /// @param name the name of the method.
23004 /// @param type the type of the method. Must be an instance of
23007 /// @param declared_inline whether the method was
23010 /// @param locus the source location of the method.
23012 /// @param linkage_name the mangled name of the method.
23014 /// @param vis the visibility of the method.
23016 /// @param bind the binding of the method.
23037 /// Set the linkage name of the method.
23039 /// @param l the new linkage name of the method.
23157 /// Note that this method expects virtual methods.
23159 /// @param f the first method to consider.
23161 /// @param s the second method to consider.
23163 /// @return true if method @p is less than method @s.
23218 /// Note that this method expects to take virtual methods.
23220 /// @param f the first method to consider.
23222 /// @param s the second method to consider.
23288 /// @param method the method to fixup.
23290 fixup_virtual_member_function(method_decl_sptr method)
23292 if (!method || !get_member_function_is_virtual(method))
23295 class_decl_sptr klass = is_class_type(method->get_type()->get_class_type());
23301 if (m->get() == method.get())
23304 klass->priv_->virtual_mem_fns_.push_back(method);
23308 ssize_t voffset = get_member_function_vtable_offset(method);
23317 virtual_mem_fns_at_voffset.push_back(method);
23323 if (m->get() == method.get())
23326 i->second.push_back(method);
23409 /// @param f the first method.
23411 /// @param s the second method.
23444 /// Test if a given method is equivalent to at least of other method
23453 /// @param method the method to compare.
23455 /// @param fns the vector of functions to compare @p method against.
23457 /// @return true iff @p is equivalent to at least one method in @p
23460 method_matches_at_least_one_in_vector(const method_decl_sptr& method,
23466 // Note that the comparison must be done in this order: method ==
23472 if (methods_equal_modulo_elf_symbol(method, *i))
23691 /// Copy a method of a class into a new class.
23693 /// @param klass the class into which the method is to be copied.
23695 /// @param method the method to copy into @p klass.
23697 /// @return the resulting newly copied method.
23702 /// Copy a method of a class into a new class.
23704 /// @param klass the class into which the method is to be copied.
23706 /// @param method the method to copy into @p klass.
23708 /// @return the resulting newly copied method.
24710 /// Copy a method of a @ref union_decl into a new @ref
24713 /// @param t the @ref union_decl into which the method is to be copied.
24715 /// @param method the method to copy into @p t.
24717 /// @return the resulting newly copied method.
24723 /// Copy a method of a @ref union_decl into a new @ref
24726 /// @param t the @ref union_decl into which the method is to be copied.
24728 /// @param method the method to copy into @p t.
24730 /// @return the resulting newly copied method.