gcc/libstdc++-v3/include/debug
François Dumont a42220f016 libstdc++: [_GLIBCXX_DEBUG] Enhance rendering of assert message
Avoid building an intermediate buffer to print to stderr, push directly to stderr.

libstdc++-v3/ChangeLog:

	* include/debug/formatter.h
	(_Error_formatter::_Parameter::_Named): New.
	(_Error_formatter::_Parameter::_Type): Inherit latter.
	(_Error_formatter::_Parameter::_M_integer): Likewise.
	(_Error_formatter::_Parameter::_M_string): Likewise.
	* src/c++11/debug.cc: Include <cstring>.
	(_Print_func_t): New.
	(print_raw(PrintContext&, const char*, ptrdiff_t)): New.
	(print_word): Use '%.*s' format in fprintf to render only expected number of chars.
	(pretty_print(PrintContext&, const char*, _Print_func_t)): New.
	(print_type): Rename in...
	(print_type_info): ...this. Use pretty_print.
	(print_address, print_integer): New.
	(print_named_name, print_iterator_constness, print_iterator_state): New.
	(print_iterator_seq_type): New.
	(print_named_field, print_type_field, print_instance_field, print_iterator_field): New.
	(print_field): Use latters.
	(print_quoted_named_name, print_type_type, print_type, print_instance): New.
	(print_string(PrintContext&, const char*, const _Parameter*, size_t)):
	Change signature to...
	(print_string(PrintContext&, const char*, ptrdiff_t, const _Parameter*, size_t)):
	...this and adapt. Remove intermediate buffer to render input string.
	(print_string(PrintContext&, const char*, ptrdiff_t)): New.
2021-05-26 21:50:17 +02:00
..
assertions.h libstdc++: Fix headers that can't be used as header units [PR 99413] 2021-03-10 15:27:41 +00:00
bitset Update copyright years. 2021-01-04 10:26:59 +01:00
debug.h Update copyright years. 2021-01-04 10:26:59 +01:00
deque Update copyright years. 2021-01-04 10:26:59 +01:00
formatter.h libstdc++: [_GLIBCXX_DEBUG] Enhance rendering of assert message 2021-05-26 21:50:17 +02:00
forward_list libstdc++: _GLIBCXX_DEBUG Fix allocator-extended move constructor 2021-03-28 22:06:33 +02:00
functions.h Update copyright years. 2021-01-04 10:26:59 +01:00
helper_functions.h libstdc++: [_GLIBCXX_DEBUG] Fix management of __dp_sign_max_size [PR 99402] 2021-04-09 21:46:35 +02:00
list libstdc++: _GLIBCXX_DEBUG Fix allocator-extended move constructor 2021-03-28 22:06:33 +02:00
macros.h libstdc++: Use __builtin_unreachable for constexpr assertions [PR 100676] 2021-05-20 20:49:57 +01:00
map Update copyright years. 2021-01-04 10:26:59 +01:00
map.h Update copyright years. 2021-01-04 10:26:59 +01:00
multimap.h Update copyright years. 2021-01-04 10:26:59 +01:00
multiset.h Update copyright years. 2021-01-04 10:26:59 +01:00
safe_base.h Update copyright years. 2021-01-04 10:26:59 +01:00
safe_container.h Update copyright years. 2021-01-04 10:26:59 +01:00
safe_iterator.h libstdc++: [_GLIBCXX_DEBUG] Fix management of __dp_sign_max_size [PR 99402] 2021-04-09 21:46:35 +02:00
safe_iterator.tcc libstdc++: [_GLIBCXX_DEBUG] Fix management of __dp_sign_max_size [PR 99402] 2021-04-09 21:46:35 +02:00
safe_local_iterator.h libstdc++: Implement N3644 for _GLIBCXX_DEBUG iterators 2021-01-14 19:23:54 +01:00
safe_local_iterator.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
safe_sequence.h Update copyright years. 2021-01-04 10:26:59 +01:00
safe_sequence.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
safe_unordered_base.h Update copyright years. 2021-01-04 10:26:59 +01:00
safe_unordered_container.h Update copyright years. 2021-01-04 10:26:59 +01:00
safe_unordered_container.tcc Update copyright years. 2021-01-04 10:26:59 +01:00
set Update copyright years. 2021-01-04 10:26:59 +01:00
set.h Update copyright years. 2021-01-04 10:26:59 +01:00
stl_iterator.h libstdc++: [_GLIBCXX_DEBUG] Fix management of __dp_sign_max_size [PR 99402] 2021-04-09 21:46:35 +02:00
string libstdc++: Fix and complete __gnu_debug::basic_string implementation 2021-03-25 21:56:14 +01:00
unordered_map libstdc++: Add unordered containers heterogeneous lookup 2021-02-09 21:56:27 +01:00
unordered_set libstdc++: Add unordered containers heterogeneous lookup 2021-02-09 21:56:27 +01:00
vector libstdc++: _GLIBCXX_DEBUG Fix allocator-extended move constructor 2021-03-28 22:06:33 +02:00