if (possible_trait_call)
return;
- bool is_varadic = false;
+ bool is_variadic = false;
if (tyty->get_kind () == TyTy::TypeKind::FNDEF)
{
const TyTy::FnType *fn = static_cast<const TyTy::FnType *> (tyty);
- is_varadic = fn->is_varadic ();
+ is_variadic = fn->is_variadic ();
}
size_t required_num_args = expr.get_arguments ().size ();
auto &argument = expr.get_arguments ().at (i);
auto rvalue = CompileExpr::Compile (argument.get (), ctx);
- if (is_varadic && i >= required_num_args)
+ if (is_variadic && i >= required_num_args)
{
args.push_back (rvalue);
continue;
parameters.push_back (compiled_param);
}
- if (!type.is_varadic ())
+ if (!type.is_variadic ())
translated = Backend::function_type (receiver, parameters, results, NULL,
type.get_ident ().locus);
else
- translated = Backend::function_type_varadic (receiver, parameters, results,
- NULL, type.get_ident ().locus);
+ translated
+ = Backend::function_type_variadic (receiver, parameters, results, NULL,
+ type.get_ident ().locus);
}
void
location_t location);
tree
-function_type_varadic (const typed_identifier &receiver,
- const std::vector<typed_identifier> ¶meters,
- const std::vector<typed_identifier> &results,
- tree result_struct, location_t location);
+function_type_variadic (const typed_identifier &receiver,
+ const std::vector<typed_identifier> ¶meters,
+ const std::vector<typed_identifier> &results,
+ tree result_struct, location_t location);
tree
function_ptr_type (tree result, const std::vector<tree> &praameters,
}
tree
-function_type_varadic (const typed_identifier &receiver,
- const std::vector<typed_identifier> ¶meters,
- const std::vector<typed_identifier> &results,
- tree result_struct, location_t)
+function_type_variadic (const typed_identifier &receiver,
+ const std::vector<typed_identifier> ¶meters,
+ const std::vector<typed_identifier> &results,
+ tree result_struct, location_t)
{
size_t n = parameters.size () + (receiver.type != NULL_TREE ? 1 : 0);
tree *args = XALLOCAVEC (tree, n);
{
if (call.num_params () != type.num_params ())
{
- if (type.is_varadic ())
+ if (type.is_variadic ())
{
if (call.num_params () < type.num_params ())
{
bool is_extern () const { return (flags & FNTYPE_IS_EXTERN_FLAG) != 0; }
- bool is_varadic () const { return (flags & FNTYPE_IS_VARADIC_FLAG) != 0; }
+ bool is_variadic () const { return (flags & FNTYPE_IS_VARADIC_FLAG) != 0; }
DefId get_id () const { return id; }