Method::print_cpp_arg_list: extract out Method::on_cpp_arg_list
commit9ca78c364b72fe3537eb11b576ba9a1097be7886
authorSven Verdoolaege <sven@cerebras.net>
Tue, 24 Aug 2021 13:24:12 +0000 (24 15:24 +0200)
committerSven Verdoolaege <sven@cerebras.net>
Mon, 20 Sep 2021 14:23:37 +0000 (20 16:23 +0200)
tree70a0305c2f756ede94cab68899715f6b0ac07829
parent04a5ab138dc3c09fe55190e5f5bfc039877a3d4e
Method::print_cpp_arg_list: extract out Method::on_cpp_arg_list

The correspondence between C function arguments and
tuple kinds is not entirely obvious.
Currently, this correspondence is only needed while printing
the arguments.  However, an upcoming commit will need
to iterate over the C function arguments and the corresponding
tuple kinds before the printing.

Extract out a generic Method::on_cpp_arg_list that can
be used both for printing and for this other iteration
over the arguments.

Signed-off-by: Sven Verdoolaege <sven@cerebras.net>
interface/cpp.cc
interface/cpp.h