gcc/libcc1
Tom Tromey 8fdffa48c5 libcc1: use variadic templates for callbacks
This patch completes the transition of libcc1 from the use of separate
template functions for different arities to the use of variadic
functions.  This is how I had wanted it to work from the very
beginning, and is possible now with C++11.

I had thought that variadic callbacks required C++17, but it turns out
that the approach taken here is basically equivalent to std::apply --
just a bit wordier.

libcc1

	* rpc.hh (argument_wrapper) <get>: Replace cast operator.
	(argument_wrapper<T *>) <get>: Likewise.
	(unmarshall): Add std::tuple overloads.
	(callback): Remove.
	(class invoker): New.
	* libcp1plugin.cc (plugin_init): Update.
	* libcp1.cc (libcp1::add_callbacks): Update.
	* libcc1plugin.cc (plugin_init): Update.
	* libcc1.cc (libcc1::add_callbacks): Update.
	* connection.cc (cc1_plugin::connection::do_wait): Update.
2021-05-05 00:06:18 -06:00
..
aclocal.m4 libcc1: Enable Intel CET on Intel CET enabled host 2020-05-12 09:12:37 -07:00
callbacks.cc Update copyright years. 2021-01-04 10:26:59 +01:00
callbacks.hh libcc1: delete copy constructor and assignment operators 2021-05-05 00:06:16 -06:00
cc1plugin-config.h.in
ChangeLog Daily bump. 2021-05-04 00:16:53 +00:00
compiler-name.hh Update copyright years. 2021-01-04 10:26:59 +01:00
compiler.cc libcc1: unify compiler handling 2021-05-05 00:06:17 -06:00
compiler.hh libcc1: unify compiler handling 2021-05-05 00:06:17 -06:00
configure GCC_CET_HOST_FLAGS: Check if host supports multi-byte NOPs 2021-05-03 05:01:23 -07:00
configure.ac Update copyright years. 2021-01-04 10:26:59 +01:00
connection.cc libcc1: use variadic templates for callbacks 2021-05-05 00:06:18 -06:00
connection.hh libcc1: delete copy constructor and assignment operators 2021-05-05 00:06:16 -06:00
context.cc libcc1: share basic context code 2021-05-05 00:06:17 -06:00
context.hh libcc1: share basic context code 2021-05-05 00:06:17 -06:00
deleter.hh libcc1: add more uses of 'deleter' 2021-05-05 00:06:17 -06:00
findcomp.cc Update copyright years. 2021-01-04 10:26:59 +01:00
findcomp.hh Update copyright years. 2021-01-04 10:26:59 +01:00
gdbctx.hh libcc1: fix a memory leak 2021-05-05 00:06:18 -06:00
libcc1.cc libcc1: use variadic templates for callbacks 2021-05-05 00:06:18 -06:00
libcc1.sym Introduce C++ support in libcc1 2017-01-31 01:02:03 +00:00
libcc1plugin.cc libcc1: use variadic templates for callbacks 2021-05-05 00:06:18 -06:00
libcc1plugin.sym
libcp1.cc libcc1: use variadic templates for callbacks 2021-05-05 00:06:18 -06:00
libcp1plugin.cc libcc1: use variadic templates for callbacks 2021-05-05 00:06:18 -06:00
libcp1plugin.sym Introduce C++ support in libcc1 2017-01-31 01:02:03 +00:00
Makefile.am libcc1: share basic context code 2021-05-05 00:06:17 -06:00
Makefile.in libcc1: share basic context code 2021-05-05 00:06:17 -06:00
marshall-cp.hh libcc1: add more uses of 'deleter' 2021-05-05 00:06:17 -06:00
marshall.cc libcc1: add more uses of 'deleter' 2021-05-05 00:06:17 -06:00
marshall.hh libcc1: use variadic templates for "call" 2021-05-05 00:06:16 -06:00
names.cc Update copyright years. 2021-01-04 10:26:59 +01:00
names.hh Update copyright years. 2021-01-04 10:26:59 +01:00
rpc.hh libcc1: use variadic templates for callbacks 2021-05-05 00:06:18 -06:00
status.hh Update copyright years. 2021-01-04 10:26:59 +01:00