#include <type_rep.h>
Public Methods | |
Function_type_maker () | |
Start making a function type. More... | |
void | add_parameter (Type t) |
Add a parameter of type /t/ to the function. More... | |
void | add_ellipsis () |
Add ellipsis pseudo-type to the function. More... | |
Type | make_function_type (Type return_type) const |
Given a type T, return type function-taking-args-so-far-returning-T. More... | |
Private Attributes | |
std::string | types |
Definition at line 270 of file type_rep.h.
|
Start making a function type.
Definition at line 948 of file type_rep.cc. |
|
Add ellipsis pseudo-type to the function.
Definition at line 978 of file type_rep.cc. References types. Referenced by Function_declaration_reader::add_ellipsis(). |
|
Add a parameter of type /t/ to the function.
Definition at line 957 of file type_rep.cc. References Type::encode_qualifiers(), Type::get_basis_type(), Type::get_kind(), Type::get_unqualified_type(), Type::k_Array, Type::k_Function, Type::make_pointer_type(), and types. Referenced by Overload_resolver::add_builtin_incdec(), Function_declaration_reader::declare_variable(), Simple_declaration_reader::declare_variable(), make_binary_function_type(), and make_unary_function_type(). |
|
Given a type T, return type function-taking-args-so-far-returning-T.
Definition at line 987 of file type_rep.cc. References Type::encode_qualifiers(), and types. Referenced by Overload_resolver::add_builtin_incdec(), Simple_declaration_reader::declare_variable(), make_binary_function_type(), make_unary_function_type(), and Declaration_reader::parse_declarator_internal(). |
|
Definition at line 271 of file type_rep.h. Referenced by add_ellipsis(), add_parameter(), and make_function_type(). |