gcc/libstdc++-v3/testsuite/util
Jonathan Wakely e09366718a libstdc++: Reduce template instantiations in <regex>
This moves the last two template parameters of __regex_algo_impl to be
runtime function parameters instead, so that we don't need four
different instantiations for the possible ways to call it. Most of the
function (and what it instantiates) is the same in all cases, so making
them compile-time choices doesn't really have much benefit.

Use  'if constexpr' for conditions that check template parameters, so
that when we do depend on a compile-time condition we only instantiate
what we need to.

libstdc++-v3/ChangeLog:

	* include/bits/regex.h (__regex_algo_impl): Change __policy and
	__match_mode template parameters to be function parameters.
	(regex_match, regex_search): Pass policy and match mode as
	function arguments.
	* include/bits/regex.tcc (__regex_algo_impl): Change template
	parameters to function parameters.
	* include/bits/regex_compiler.h (_RegexTranslatorBase): Use
	'if constexpr' for conditions using template parameters.
	(_RegexTranslator): Likewise.
	* include/bits/regex_executor.tcc (_Executor::_M_handle_accept):
	Likewise.
	* testsuite/util/testsuite_regex.h (regex_match_debug)
	(regex_search_debug): Move template arguments to function
	arguments.
2022-01-05 13:47:01 +00:00
..
atomic Update copyright years. 2022-01-03 10:42:10 +01:00
common_type Update copyright years. 2022-01-03 10:42:10 +01:00
debug Update copyright years. 2022-01-03 10:42:10 +01:00
exception Update copyright years. 2022-01-03 10:42:10 +01:00
hash_fn Update copyright years. 2022-01-03 10:42:10 +01:00
io Update copyright years. 2022-01-03 10:42:10 +01:00
native_type Update copyright years. 2022-01-03 10:42:10 +01:00
performance Update copyright years. 2022-01-03 10:42:10 +01:00
pstl
regression Update copyright years. 2022-01-03 10:42:10 +01:00
statistic Update copyright years. 2022-01-03 10:42:10 +01:00
thread Update copyright years. 2022-01-03 10:42:10 +01:00
replacement_memory_operators.h Update copyright years. 2022-01-03 10:42:10 +01:00
slow_clock.h Update copyright years. 2022-01-03 10:42:10 +01:00
specfun_testcase.h Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_abi_check.cc Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_abi.cc Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_abi.h Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_allocator.cc Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_allocator.h Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_api.h Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_character.cc Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_character.h Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_common_types.h Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_container_traits.h Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_containergen.h Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_containers.h Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_counter_type.h Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_error.h Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_fs.h Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_greedy_ops.h Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_hooks.cc Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_hooks.h Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_io.h Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_iterators.h Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_new_operators.h Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_performance.h Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_random.h Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_regex.h libstdc++: Reduce template instantiations in <regex> 2022-01-05 13:47:01 +00:00
testsuite_rng.h Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_rvalref.h Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_shared.cc Update copyright years. 2022-01-03 10:42:10 +01:00
testsuite_tr1.h Update copyright years. 2022-01-03 10:42:10 +01:00