[PATCH,c++] introduce cp_build_function_call_nary
Mark Mitchell
mark@codesourcery.com
Wed May 26 17:50:00 GMT 2010
Nathan Froyd wrote:
> * cp-tree.h (cp_build_function_call_nary): Declare.
> * typeck.c (cp_build_function_call_nary): Define.
I like this idea, but I think that instead of "nargs", a NULL-terminated
list of trees is a more robust way of expressing this interface. A
NULL_TREE argument isn't valid, so I don't think that's ambiguous, and I
think it's easier to get:
cp_build_function_call_nary (..., arg1, arg2, NULL_TREE);
right when you add in "arg3", then it is to remember to change the
number-of-arguments parameter.
OK with that change.
Thanks,
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
More information about the Gcc-patches
mailing list