2003-11-11 21:09:16 +01:00
|
|
|
// Debug-mode error formatting implementation -*- C++ -*-
|
|
|
|
|
safe_unordered_base.h, [...]: New, support for unordered sequence safe local iterators.
2011-07-19 François Dumont <francois.cppdevs@free.fr>
* include/debug/safe_unordered_base.h, safe_unordered_sequence.h,
safe_unordered_sequence.tcc, safe_local_iterator.h,
safe_local_iterator.tcc: New, support for unordered sequence safe
local iterators.
* include/Makefile.am: Add previous files.
* include/Makefile.in: Regenerate.
* include/debug/unordered_map, unordered_set: Implement
_Safe_unordered_sequence and expose _Safe_local_iterator.
* include/debug/safe_iterator.h, safe_iterator.tcc: Refactor
_Safe_iterator::_M_get_distance static method to expose it as
__get_distance function and use it in _Safe_local_iterator type.
* include/debug/formatter.h: Add __msg_local_iter_compare_bad
_Debug_msg_id enum entry to notify invalid comparison between local
iterators from different buckets. Add _Parameter constructor from
_Safe_local_iterator.
* include/debug/functions.h: Add __valid_range overload for
_Safe_local_iterator.
* src/debug.cc: Add _Safe_unordered_sequence_base and
_Safe_local_iterator_base methods implementations.
* config/abi/pre/gnu.ver: Add export of some
_Safe_unordered_sequence_base and _Safe_local_iterator_base methods.
* testsuite/util/debug/checks.h: Add use_invalid_iterator function to
simulate use of a singular iterator.
* testsuite/util/debug/unordered_checks.h: New, several functions
to simulate classic invalid usage of unordered sequence local
iterators.
* testsuite/23_containers/unordered_map/debug/
use_erased_local_iterator_neg.cc, invalid_local_iterator_range_neg.cc,
use_invalid_local_iterator_neg.cc, use_invalid_iterator_neg.cc,
invalid_local_iterator_compare_neg.cc: New.
* testsuite/23_containers/unordered_multimap/debug/
use_erased_local_iterator_neg.cc, invalid_local_iterator_range_neg.cc,
use_invalid_local_iterator_neg.cc, use_invalid_iterator_neg.cc,
invalid_local_iterator_compare_neg.cc: New.
* testsuite/23_containers/unordered_set/debug/
use_erased_local_iterator_neg.cc, invalid_local_iterator_range_neg.cc,
use_invalid_local_iterator_neg.cc, use_invalid_iterator_neg.cc,
invalid_local_iterator_compare_neg.cc: New.
* testsuite/23_containers/unordered_multiset/debug/
use_erased_local_iterator_neg.cc, invalid_local_iterator_range_neg.cc,
use_invalid_local_iterator_neg.cc, use_invalid_iterator_neg.cc,
invalid_local_iterator_compare_neg.cc: New.
From-SVN: r176487
2011-07-19 21:39:45 +02:00
|
|
|
// Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
|
2009-05-16 00:25:24 +02:00
|
|
|
// Free Software Foundation, Inc.
|
2003-11-11 21:09:16 +01:00
|
|
|
//
|
|
|
|
// This file is part of the GNU ISO C++ Library. This library is free
|
|
|
|
// software; you can redistribute it and/or modify it under the
|
|
|
|
// terms of the GNU General Public License as published by the
|
2009-04-09 17:00:19 +02:00
|
|
|
// Free Software Foundation; either version 3, or (at your option)
|
2003-11-11 21:09:16 +01:00
|
|
|
// any later version.
|
|
|
|
|
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
2009-04-09 17:00:19 +02:00
|
|
|
// Under Section 7 of GPL version 3, you are granted additional
|
|
|
|
// permissions described in the GCC Runtime Library Exception, version
|
|
|
|
// 3.1, as published by the Free Software Foundation.
|
2003-11-11 21:09:16 +01:00
|
|
|
|
2009-04-09 17:00:19 +02:00
|
|
|
// You should have received a copy of the GNU General Public License and
|
|
|
|
// a copy of the GCC Runtime Library Exception along with this program;
|
|
|
|
// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
|
|
|
// <http://www.gnu.org/licenses/>.
|
2003-11-11 21:09:16 +01:00
|
|
|
|
2006-11-29 21:59:22 +01:00
|
|
|
/** @file debug/formatter.h
|
|
|
|
* This file is a GNU debug extension to the Standard C++ Library.
|
|
|
|
*/
|
|
|
|
|
2003-11-11 21:09:16 +01:00
|
|
|
#ifndef _GLIBCXX_DEBUG_FORMATTER_H
|
|
|
|
#define _GLIBCXX_DEBUG_FORMATTER_H 1
|
|
|
|
|
formater.h: Include bits/c++config.h.
* include/debug/formater.h: Include bits/c++config.h.
(_M_error): Mark noreturn.
* include/bits/c++config (_GLIBCXX_PURE, _GLIBCXX_CONST,
_GLIBCXX_NORETURN): New.
* include/bits/stl_tree.h (_Rb_tree_increment, _Rb_tree_increment,
_Rb_tree_decrement, _Rb_tree_decrement, _Rb_tree_black_count): Mark pure.
* include/c_compatibility/stdatomic.h (atomic_flag_test_and_set_explicit,
atomic_flag_clear_explicit, __atomic_flag_wait_explicit,
__atomic_flag_for_address): Mark by throw ().
* src/atomic.cc (atomic_flag_test_and_set_explicit,
atomic_flag_clear_explicit, __atomic_flag_wait_explicit,
__atomic_flag_for_address): Mark by throw ().
From-SVN: r146317
2009-04-18 17:48:16 +02:00
|
|
|
#include <bits/c++config.h>
|
2010-11-18 12:03:14 +01:00
|
|
|
#include <bits/cpp_type_traits.h>
|
2003-11-11 21:09:16 +01:00
|
|
|
#include <typeinfo>
|
|
|
|
|
|
|
|
namespace __gnu_debug
|
|
|
|
{
|
2006-02-22 01:57:24 +01:00
|
|
|
using std::type_info;
|
|
|
|
|
[multiple changes]
2010-08-29 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/23_containers/bitset/invalidation: Move...
* testsuite/23_containers/bitset/debug/invalidation: ... here.
* testsuite/23_containers/deque/invalidation: Move...
* testsuite/23_containers/deque/debug/invalidation: ... here.
* testsuite/23_containers/list/invalidation: Move...
* testsuite/23_containers/list/debug/invalidation: ... here.
* testsuite/23_containers/map/invalidation: Move...
* testsuite/23_containers/map/debug/invalidation: ... here.
* testsuite/23_containers/multimap/invalidation: Move...
* testsuite/23_containers/multimap/debug/invalidation: ... here.
* testsuite/23_containers/set/invalidation: Move...
* testsuite/23_containers/set/debug/invalidation: ... here.
* testsuite/23_containers/multiset/invalidation: Move...
* testsuite/23_containers/multiset/debug/invalidation: ... here.
* testsuite/23_containers/vector/invalidation: Move...
* testsuite/23_containers/vector/debug/invalidation: ... here.
2010-08-29 François Dumont <francois.cppdevs@free.fr>
* include/bits/stl_algobase.h (_Iter_base): Move...
* include/bits/stl_iterator_base_types.h: ...here.
* include/debug/functions.h (__check_valid_range, __check_string,
__check_sorted): Fix to not depend on _GLIBCXX_DEBUG; include
formatter.h and use formatting macros for a consistent debug result.
* include/debug/formatter.h (__check_singular): Declare; do not
include debug.h.
* include/debug/debug.h: Do not include formatter.h.
* include/debug/safe_iterator.h (_Safe_iterator::_Base_Iterator)
rename to iterator_type.
(__gnu_debug::__base): Add.
* include/debug/set.h: Use everywhere __gnu_debug::__base once
iterator range valided.
* include/debug/unordered_map: Likewise.
* include/debug/multiset.h: Likewise.
* include/debug/vector: Likewise.
* include/debug/unordered_set: Likewise.
* include/debug/deque: Likewise.
* include/debug/map.h: Likewise.
* include/debug/string: Likewise.
* include/debug/list: Likewise.
* include/debug/multimap.h: Likewise.
* testsuite/23_containers/util/debug/assign_neg.h: New test cases on
debug checks performed on container assign operation.
* testsuite/23_containers/util/debug/construct_neg.h: New test cases
on debug checks on constructors.
* testsuite/23_containers/util/debug/insert_neg.h: New test cases on
debug checks performed on container insert operations.
* testsuite/23_containers/unordered_map/debug/cont_traits.h,
debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc,
construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc,
insert3_neg.cc, insert4_neg.cc: New.
* testsuite/23_containers/multimap/debug/cont_traits.h,
debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc,
construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc,
insert3_neg.cc, insert4_neg.cc: Likewise.
* testsuite/23_containers/set/debug/cont_traits.h,
debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc,
construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc,
insert3_neg.cc, insert4_neg.cc: Likewise.
* testsuite/23_containers/unordered_multimap/debug/cont_traits.h,
debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc,
construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc,
insert3_neg.cc, insert4_neg.cc: Likewise.
* testsuite/23_containers/unordered_set/debug/cont_traits.h,
debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc,
construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc,
insert3_neg.cc, insert4_neg.cc: Likewise.
* testsuite/23_containers/multiset/debug/cont_traits.h,
debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc,
construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc,
insert3_neg.cc, insert4_neg.cc: Likewise.
* testsuite/23_containers/unordered_multiset/debug/cont_traits.h,
debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc,
construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc,
insert3_neg.cc, insert4_neg.cc: Likewise.
* testsuite/23_containers/map/debug/cont_traits.h,
debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc,
construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc,
insert3_neg.cc, insert4_neg.cc: Likewise.
* testsuite/23_containers/vector/debug/cont_traits.h,
debug_cont_traits.h, assign1_neg.cc, assign2_neg.cc, assign3_neg.cc,
assign4_neg.cc, construct1_neg.cc, construct2_neg.cc,
construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc,
insert3_neg.cc, insert4_neg.cc: Likewise.
* testsuite/23_containers/deque/debug/cont_traits.h,
debug_cont_traits.h, assign1_neg.cc, assign2_neg.cc, assign3_neg.cc,
assign4_neg.cc, construct1_neg.cc, construct2_neg.cc,
construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc,
insert3_neg.cc, insert4_neg.cc: Likewise.
* testsuite/23_containers/list/debug/cont_traits.h,
debug_cont_traits.h, assign1_neg.cc, assign2_neg.cc, assign3_neg.cc,
assign4_neg.cc, construct1_neg.cc, construct2_neg.cc,
construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc,
insert3_neg.cc, insert4_neg.cc: Likewise.
* testsuite/performance/23_containers/range_construct/
list_construct1.cc: New, validate performance impact of the patch
on the debug mode.
* testsuite/performance/23_containers/range_construct/
list_construct2.cc: Likewise.
* testsuite/performance/23_containers/range_construct/
vector_construct.cc: Likewise.
* testsuite/performance/23_containers/range_construct/
deque_construct.cc: Likewise.
From-SVN: r163628
2010-08-29 19:39:00 +02:00
|
|
|
template<typename _Iterator>
|
|
|
|
bool __check_singular(_Iterator&);
|
|
|
|
|
2003-11-11 21:09:16 +01:00
|
|
|
class _Safe_sequence_base;
|
|
|
|
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
template<typename _Iterator, typename _Sequence>
|
2003-11-11 21:09:16 +01:00
|
|
|
class _Safe_iterator;
|
|
|
|
|
safe_unordered_base.h, [...]: New, support for unordered sequence safe local iterators.
2011-07-19 François Dumont <francois.cppdevs@free.fr>
* include/debug/safe_unordered_base.h, safe_unordered_sequence.h,
safe_unordered_sequence.tcc, safe_local_iterator.h,
safe_local_iterator.tcc: New, support for unordered sequence safe
local iterators.
* include/Makefile.am: Add previous files.
* include/Makefile.in: Regenerate.
* include/debug/unordered_map, unordered_set: Implement
_Safe_unordered_sequence and expose _Safe_local_iterator.
* include/debug/safe_iterator.h, safe_iterator.tcc: Refactor
_Safe_iterator::_M_get_distance static method to expose it as
__get_distance function and use it in _Safe_local_iterator type.
* include/debug/formatter.h: Add __msg_local_iter_compare_bad
_Debug_msg_id enum entry to notify invalid comparison between local
iterators from different buckets. Add _Parameter constructor from
_Safe_local_iterator.
* include/debug/functions.h: Add __valid_range overload for
_Safe_local_iterator.
* src/debug.cc: Add _Safe_unordered_sequence_base and
_Safe_local_iterator_base methods implementations.
* config/abi/pre/gnu.ver: Add export of some
_Safe_unordered_sequence_base and _Safe_local_iterator_base methods.
* testsuite/util/debug/checks.h: Add use_invalid_iterator function to
simulate use of a singular iterator.
* testsuite/util/debug/unordered_checks.h: New, several functions
to simulate classic invalid usage of unordered sequence local
iterators.
* testsuite/23_containers/unordered_map/debug/
use_erased_local_iterator_neg.cc, invalid_local_iterator_range_neg.cc,
use_invalid_local_iterator_neg.cc, use_invalid_iterator_neg.cc,
invalid_local_iterator_compare_neg.cc: New.
* testsuite/23_containers/unordered_multimap/debug/
use_erased_local_iterator_neg.cc, invalid_local_iterator_range_neg.cc,
use_invalid_local_iterator_neg.cc, use_invalid_iterator_neg.cc,
invalid_local_iterator_compare_neg.cc: New.
* testsuite/23_containers/unordered_set/debug/
use_erased_local_iterator_neg.cc, invalid_local_iterator_range_neg.cc,
use_invalid_local_iterator_neg.cc, use_invalid_iterator_neg.cc,
invalid_local_iterator_compare_neg.cc: New.
* testsuite/23_containers/unordered_multiset/debug/
use_erased_local_iterator_neg.cc, invalid_local_iterator_range_neg.cc,
use_invalid_local_iterator_neg.cc, use_invalid_iterator_neg.cc,
invalid_local_iterator_compare_neg.cc: New.
From-SVN: r176487
2011-07-19 21:39:45 +02:00
|
|
|
template<typename _Iterator, typename _Sequence>
|
|
|
|
class _Safe_local_iterator;
|
|
|
|
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
template<typename _Sequence>
|
2003-11-11 21:09:16 +01:00
|
|
|
class _Safe_sequence;
|
|
|
|
|
|
|
|
enum _Debug_msg_id
|
|
|
|
{
|
|
|
|
// General checks
|
|
|
|
__msg_valid_range,
|
|
|
|
__msg_insert_singular,
|
|
|
|
__msg_insert_different,
|
|
|
|
__msg_erase_bad,
|
|
|
|
__msg_erase_different,
|
|
|
|
__msg_subscript_oob,
|
|
|
|
__msg_empty,
|
|
|
|
__msg_unpartitioned,
|
|
|
|
__msg_unpartitioned_pred,
|
|
|
|
__msg_unsorted,
|
|
|
|
__msg_unsorted_pred,
|
|
|
|
__msg_not_heap,
|
|
|
|
__msg_not_heap_pred,
|
|
|
|
// std::bitset checks
|
|
|
|
__msg_bad_bitset_write,
|
|
|
|
__msg_bad_bitset_read,
|
|
|
|
__msg_bad_bitset_flip,
|
|
|
|
// std::list checks
|
|
|
|
__msg_self_splice,
|
|
|
|
__msg_splice_alloc,
|
|
|
|
__msg_splice_bad,
|
|
|
|
__msg_splice_other,
|
|
|
|
__msg_splice_overlap,
|
|
|
|
// iterator checks
|
|
|
|
__msg_init_singular,
|
|
|
|
__msg_init_copy_singular,
|
|
|
|
__msg_init_const_singular,
|
|
|
|
__msg_copy_singular,
|
|
|
|
__msg_bad_deref,
|
|
|
|
__msg_bad_inc,
|
|
|
|
__msg_bad_dec,
|
|
|
|
__msg_iter_subscript_oob,
|
|
|
|
__msg_advance_oob,
|
|
|
|
__msg_retreat_oob,
|
|
|
|
__msg_iter_compare_bad,
|
|
|
|
__msg_compare_different,
|
|
|
|
__msg_iter_order_bad,
|
|
|
|
__msg_order_different,
|
|
|
|
__msg_distance_bad,
|
|
|
|
__msg_distance_different,
|
|
|
|
// istream_iterator
|
|
|
|
__msg_deref_istream,
|
|
|
|
__msg_inc_istream,
|
|
|
|
// ostream_iterator
|
|
|
|
__msg_output_ostream,
|
|
|
|
// istreambuf_iterator
|
|
|
|
__msg_deref_istreambuf,
|
[multiple changes]
2010-09-29 Paolo Carlini <paolo.carlini@oracle.com>
* include/Makefile.am: Add debug/forward_list.
* include/Makefile.in: Regenerate.
* testsuite/util/testsuite_container_traits.h (traits_base):
Add has_erase_after and hash_insert_after typedefs.
(traits<forward_list<>>): Adjust.
* testsuite/util/exception/safety.h (erase_point, erase_range,
insert_point): Deal correctly with forward_list.
* include/Makefile.am: Add.
2010-09-29 François Dumont <francois.cppdevs@free.fr>
* src/debug.cc: Add forward_list specific debug messages.
* include/debug/forward_list: New.
* include/debug/formatter.h: Add debug message ids and before begin
iterator state.
* include/debug/macros.h (__glibcxx_check_insert_after,
__glibcxx_check_insert_range_after, __glibcxx_check_erase_after,
__glibcxx_check_erase_range_after): Add.
* include/debug/safe_iterator.h (_BeforeBeginHelper): Add.
(_Safe_iterator<>::_M_before_dereferenceable,
_Safe_iterator<>::_M_is_before_begin): Add.
(_Safe_iterator<>::_M_dereferenceable, _Safe_iterator<>::_M_is_end,
_Safe_iterator<>::_M_incrementable): Adjust.
* include/std/forward_list: Include debug/forward when _GLIBCXX_DEBUG
defined.
* include/bits/forward_list.h, forward_list.tcc: Put in std::__norm
when debug mode is active.
* testsuite/23_containers/forward_list/capacity/1.cc: Fix to compile
even in debug mode.
* testsuite/23_containers/forward_list/debug/erase_after1.cc,
erase_after2.cc, erase_after3.cc, erase_after4.cc, erase_after5.cc,
insert_after1.cc,erase_after6.cc, erase_after7.cc, insert_after2.cc,
erase_after8.cc, insert_after3.cc, erase_after9.cc: New.
From-SVN: r164717
2010-09-29 13:56:34 +02:00
|
|
|
__msg_inc_istreambuf,
|
|
|
|
// forward_list
|
|
|
|
__msg_insert_after_end,
|
|
|
|
__msg_erase_after_bad,
|
safe_unordered_base.h, [...]: New, support for unordered sequence safe local iterators.
2011-07-19 François Dumont <francois.cppdevs@free.fr>
* include/debug/safe_unordered_base.h, safe_unordered_sequence.h,
safe_unordered_sequence.tcc, safe_local_iterator.h,
safe_local_iterator.tcc: New, support for unordered sequence safe
local iterators.
* include/Makefile.am: Add previous files.
* include/Makefile.in: Regenerate.
* include/debug/unordered_map, unordered_set: Implement
_Safe_unordered_sequence and expose _Safe_local_iterator.
* include/debug/safe_iterator.h, safe_iterator.tcc: Refactor
_Safe_iterator::_M_get_distance static method to expose it as
__get_distance function and use it in _Safe_local_iterator type.
* include/debug/formatter.h: Add __msg_local_iter_compare_bad
_Debug_msg_id enum entry to notify invalid comparison between local
iterators from different buckets. Add _Parameter constructor from
_Safe_local_iterator.
* include/debug/functions.h: Add __valid_range overload for
_Safe_local_iterator.
* src/debug.cc: Add _Safe_unordered_sequence_base and
_Safe_local_iterator_base methods implementations.
* config/abi/pre/gnu.ver: Add export of some
_Safe_unordered_sequence_base and _Safe_local_iterator_base methods.
* testsuite/util/debug/checks.h: Add use_invalid_iterator function to
simulate use of a singular iterator.
* testsuite/util/debug/unordered_checks.h: New, several functions
to simulate classic invalid usage of unordered sequence local
iterators.
* testsuite/23_containers/unordered_map/debug/
use_erased_local_iterator_neg.cc, invalid_local_iterator_range_neg.cc,
use_invalid_local_iterator_neg.cc, use_invalid_iterator_neg.cc,
invalid_local_iterator_compare_neg.cc: New.
* testsuite/23_containers/unordered_multimap/debug/
use_erased_local_iterator_neg.cc, invalid_local_iterator_range_neg.cc,
use_invalid_local_iterator_neg.cc, use_invalid_iterator_neg.cc,
invalid_local_iterator_compare_neg.cc: New.
* testsuite/23_containers/unordered_set/debug/
use_erased_local_iterator_neg.cc, invalid_local_iterator_range_neg.cc,
use_invalid_local_iterator_neg.cc, use_invalid_iterator_neg.cc,
invalid_local_iterator_compare_neg.cc: New.
* testsuite/23_containers/unordered_multiset/debug/
use_erased_local_iterator_neg.cc, invalid_local_iterator_range_neg.cc,
use_invalid_local_iterator_neg.cc, use_invalid_iterator_neg.cc,
invalid_local_iterator_compare_neg.cc: New.
From-SVN: r176487
2011-07-19 21:39:45 +02:00
|
|
|
__msg_valid_range2,
|
|
|
|
// unordered sequence local iterators
|
|
|
|
__msg_local_iter_compare_bad
|
2003-11-11 21:09:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
class _Error_formatter
|
|
|
|
{
|
|
|
|
/// Whether an iterator is constant, mutable, or unknown
|
|
|
|
enum _Constness
|
|
|
|
{
|
|
|
|
__unknown_constness,
|
|
|
|
__const_iterator,
|
|
|
|
__mutable_iterator,
|
|
|
|
__last_constness
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
};
|
2003-11-11 21:09:16 +01:00
|
|
|
|
|
|
|
// The state of the iterator (fine-grained), if we know it.
|
|
|
|
enum _Iterator_state
|
|
|
|
{
|
|
|
|
__unknown_state,
|
|
|
|
__singular, // singular, may still be attached to a sequence
|
|
|
|
__begin, // dereferenceable, and at the beginning
|
|
|
|
__middle, // dereferenceable, not at the beginning
|
|
|
|
__end, // past-the-end, may be at beginning if sequence empty
|
[multiple changes]
2010-09-29 Paolo Carlini <paolo.carlini@oracle.com>
* include/Makefile.am: Add debug/forward_list.
* include/Makefile.in: Regenerate.
* testsuite/util/testsuite_container_traits.h (traits_base):
Add has_erase_after and hash_insert_after typedefs.
(traits<forward_list<>>): Adjust.
* testsuite/util/exception/safety.h (erase_point, erase_range,
insert_point): Deal correctly with forward_list.
* include/Makefile.am: Add.
2010-09-29 François Dumont <francois.cppdevs@free.fr>
* src/debug.cc: Add forward_list specific debug messages.
* include/debug/forward_list: New.
* include/debug/formatter.h: Add debug message ids and before begin
iterator state.
* include/debug/macros.h (__glibcxx_check_insert_after,
__glibcxx_check_insert_range_after, __glibcxx_check_erase_after,
__glibcxx_check_erase_range_after): Add.
* include/debug/safe_iterator.h (_BeforeBeginHelper): Add.
(_Safe_iterator<>::_M_before_dereferenceable,
_Safe_iterator<>::_M_is_before_begin): Add.
(_Safe_iterator<>::_M_dereferenceable, _Safe_iterator<>::_M_is_end,
_Safe_iterator<>::_M_incrementable): Adjust.
* include/std/forward_list: Include debug/forward when _GLIBCXX_DEBUG
defined.
* include/bits/forward_list.h, forward_list.tcc: Put in std::__norm
when debug mode is active.
* testsuite/23_containers/forward_list/capacity/1.cc: Fix to compile
even in debug mode.
* testsuite/23_containers/forward_list/debug/erase_after1.cc,
erase_after2.cc, erase_after3.cc, erase_after4.cc, erase_after5.cc,
insert_after1.cc,erase_after6.cc, erase_after7.cc, insert_after2.cc,
erase_after8.cc, insert_after3.cc, erase_after9.cc: New.
From-SVN: r164717
2010-09-29 13:56:34 +02:00
|
|
|
__before_begin, // before begin
|
2003-11-11 21:09:16 +01:00
|
|
|
__last_state
|
|
|
|
};
|
|
|
|
|
|
|
|
// Tags denoting the type of parameter for construction
|
|
|
|
struct _Is_iterator { };
|
|
|
|
struct _Is_sequence { };
|
|
|
|
|
|
|
|
// A parameter that may be referenced by an error message
|
|
|
|
struct _Parameter
|
|
|
|
{
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
__unused_param,
|
|
|
|
__iterator,
|
|
|
|
__sequence,
|
2003-11-11 21:09:16 +01:00
|
|
|
__integer,
|
|
|
|
__string
|
|
|
|
} _M_kind;
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
|
2003-11-11 21:09:16 +01:00
|
|
|
union
|
|
|
|
{
|
|
|
|
// When _M_kind == __iterator
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
struct
|
2003-11-11 21:09:16 +01:00
|
|
|
{
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
const char* _M_name;
|
|
|
|
const void* _M_address;
|
|
|
|
const type_info* _M_type;
|
2003-11-11 21:09:16 +01:00
|
|
|
_Constness _M_constness;
|
|
|
|
_Iterator_state _M_state;
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
const void* _M_sequence;
|
2003-11-11 21:09:16 +01:00
|
|
|
const type_info* _M_seq_type;
|
|
|
|
} _M_iterator;
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
|
2003-11-11 21:09:16 +01:00
|
|
|
// When _M_kind == __sequence
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
const char* _M_name;
|
|
|
|
const void* _M_address;
|
|
|
|
const type_info* _M_type;
|
|
|
|
} _M_sequence;
|
|
|
|
|
|
|
|
// When _M_kind == __integer
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
const char* _M_name;
|
|
|
|
long _M_value;
|
|
|
|
} _M_integer;
|
|
|
|
|
|
|
|
// When _M_kind == __string
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
const char* _M_name;
|
|
|
|
const char* _M_value;
|
|
|
|
} _M_string;
|
|
|
|
} _M_variant;
|
|
|
|
|
2004-05-23 01:46:34 +02:00
|
|
|
_Parameter() : _M_kind(__unused_param), _M_variant() { }
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
|
2004-05-23 01:46:34 +02:00
|
|
|
_Parameter(long __value, const char* __name)
|
|
|
|
: _M_kind(__integer), _M_variant()
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
{
|
2003-11-11 21:09:16 +01:00
|
|
|
_M_variant._M_integer._M_name = __name;
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
_M_variant._M_integer._M_value = __value;
|
2003-11-11 21:09:16 +01:00
|
|
|
}
|
|
|
|
|
2004-05-23 01:46:34 +02:00
|
|
|
_Parameter(const char* __value, const char* __name)
|
|
|
|
: _M_kind(__string), _M_variant()
|
2003-11-11 21:09:16 +01:00
|
|
|
{
|
|
|
|
_M_variant._M_string._M_name = __name;
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
_M_variant._M_string._M_value = __value;
|
2003-11-11 21:09:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
template<typename _Iterator, typename _Sequence>
|
|
|
|
_Parameter(const _Safe_iterator<_Iterator, _Sequence>& __it,
|
|
|
|
const char* __name, _Is_iterator)
|
2004-05-23 01:46:34 +02:00
|
|
|
: _M_kind(__iterator), _M_variant()
|
2003-11-11 21:09:16 +01:00
|
|
|
{
|
|
|
|
_M_variant._M_iterator._M_name = __name;
|
|
|
|
_M_variant._M_iterator._M_address = &__it;
|
2009-05-16 00:25:24 +02:00
|
|
|
#ifdef __GXX_RTTI
|
2003-11-11 21:09:16 +01:00
|
|
|
_M_variant._M_iterator._M_type = &typeid(__it);
|
2009-05-16 00:25:24 +02:00
|
|
|
#else
|
|
|
|
_M_variant._M_iterator._M_type = 0;
|
|
|
|
#endif
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
_M_variant._M_iterator._M_constness =
|
2010-11-18 12:03:14 +01:00
|
|
|
std::__are_same<_Safe_iterator<_Iterator, _Sequence>,
|
|
|
|
typename _Sequence::iterator>::
|
|
|
|
__value ? __mutable_iterator : __const_iterator;
|
2003-11-11 21:09:16 +01:00
|
|
|
_M_variant._M_iterator._M_sequence = __it._M_get_sequence();
|
2009-05-16 00:25:24 +02:00
|
|
|
#ifdef __GXX_RTTI
|
2003-11-11 21:09:16 +01:00
|
|
|
_M_variant._M_iterator._M_seq_type = &typeid(_Sequence);
|
2009-05-16 00:25:24 +02:00
|
|
|
#else
|
|
|
|
_M_variant._M_iterator._M_seq_type = 0;
|
|
|
|
#endif
|
2003-11-11 21:09:16 +01:00
|
|
|
|
|
|
|
if (__it._M_singular())
|
|
|
|
_M_variant._M_iterator._M_state = __singular;
|
|
|
|
else
|
|
|
|
{
|
[multiple changes]
2010-09-29 Paolo Carlini <paolo.carlini@oracle.com>
* include/Makefile.am: Add debug/forward_list.
* include/Makefile.in: Regenerate.
* testsuite/util/testsuite_container_traits.h (traits_base):
Add has_erase_after and hash_insert_after typedefs.
(traits<forward_list<>>): Adjust.
* testsuite/util/exception/safety.h (erase_point, erase_range,
insert_point): Deal correctly with forward_list.
* include/Makefile.am: Add.
2010-09-29 François Dumont <francois.cppdevs@free.fr>
* src/debug.cc: Add forward_list specific debug messages.
* include/debug/forward_list: New.
* include/debug/formatter.h: Add debug message ids and before begin
iterator state.
* include/debug/macros.h (__glibcxx_check_insert_after,
__glibcxx_check_insert_range_after, __glibcxx_check_erase_after,
__glibcxx_check_erase_range_after): Add.
* include/debug/safe_iterator.h (_BeforeBeginHelper): Add.
(_Safe_iterator<>::_M_before_dereferenceable,
_Safe_iterator<>::_M_is_before_begin): Add.
(_Safe_iterator<>::_M_dereferenceable, _Safe_iterator<>::_M_is_end,
_Safe_iterator<>::_M_incrementable): Adjust.
* include/std/forward_list: Include debug/forward when _GLIBCXX_DEBUG
defined.
* include/bits/forward_list.h, forward_list.tcc: Put in std::__norm
when debug mode is active.
* testsuite/23_containers/forward_list/capacity/1.cc: Fix to compile
even in debug mode.
* testsuite/23_containers/forward_list/debug/erase_after1.cc,
erase_after2.cc, erase_after3.cc, erase_after4.cc, erase_after5.cc,
insert_after1.cc,erase_after6.cc, erase_after7.cc, insert_after2.cc,
erase_after8.cc, insert_after3.cc, erase_after9.cc: New.
From-SVN: r164717
2010-09-29 13:56:34 +02:00
|
|
|
if (__it._M_is_before_begin())
|
|
|
|
_M_variant._M_iterator._M_state = __before_begin;
|
|
|
|
else if (__it._M_is_end())
|
2003-11-11 21:09:16 +01:00
|
|
|
_M_variant._M_iterator._M_state = __end;
|
[multiple changes]
2010-09-29 Paolo Carlini <paolo.carlini@oracle.com>
* include/Makefile.am: Add debug/forward_list.
* include/Makefile.in: Regenerate.
* testsuite/util/testsuite_container_traits.h (traits_base):
Add has_erase_after and hash_insert_after typedefs.
(traits<forward_list<>>): Adjust.
* testsuite/util/exception/safety.h (erase_point, erase_range,
insert_point): Deal correctly with forward_list.
* include/Makefile.am: Add.
2010-09-29 François Dumont <francois.cppdevs@free.fr>
* src/debug.cc: Add forward_list specific debug messages.
* include/debug/forward_list: New.
* include/debug/formatter.h: Add debug message ids and before begin
iterator state.
* include/debug/macros.h (__glibcxx_check_insert_after,
__glibcxx_check_insert_range_after, __glibcxx_check_erase_after,
__glibcxx_check_erase_range_after): Add.
* include/debug/safe_iterator.h (_BeforeBeginHelper): Add.
(_Safe_iterator<>::_M_before_dereferenceable,
_Safe_iterator<>::_M_is_before_begin): Add.
(_Safe_iterator<>::_M_dereferenceable, _Safe_iterator<>::_M_is_end,
_Safe_iterator<>::_M_incrementable): Adjust.
* include/std/forward_list: Include debug/forward when _GLIBCXX_DEBUG
defined.
* include/bits/forward_list.h, forward_list.tcc: Put in std::__norm
when debug mode is active.
* testsuite/23_containers/forward_list/capacity/1.cc: Fix to compile
even in debug mode.
* testsuite/23_containers/forward_list/debug/erase_after1.cc,
erase_after2.cc, erase_after3.cc, erase_after4.cc, erase_after5.cc,
insert_after1.cc,erase_after6.cc, erase_after7.cc, insert_after2.cc,
erase_after8.cc, insert_after3.cc, erase_after9.cc: New.
From-SVN: r164717
2010-09-29 13:56:34 +02:00
|
|
|
else if (__it._M_is_begin())
|
2003-11-11 21:09:16 +01:00
|
|
|
_M_variant._M_iterator._M_state = __begin;
|
|
|
|
else
|
|
|
|
_M_variant._M_iterator._M_state = __middle;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
safe_unordered_base.h, [...]: New, support for unordered sequence safe local iterators.
2011-07-19 François Dumont <francois.cppdevs@free.fr>
* include/debug/safe_unordered_base.h, safe_unordered_sequence.h,
safe_unordered_sequence.tcc, safe_local_iterator.h,
safe_local_iterator.tcc: New, support for unordered sequence safe
local iterators.
* include/Makefile.am: Add previous files.
* include/Makefile.in: Regenerate.
* include/debug/unordered_map, unordered_set: Implement
_Safe_unordered_sequence and expose _Safe_local_iterator.
* include/debug/safe_iterator.h, safe_iterator.tcc: Refactor
_Safe_iterator::_M_get_distance static method to expose it as
__get_distance function and use it in _Safe_local_iterator type.
* include/debug/formatter.h: Add __msg_local_iter_compare_bad
_Debug_msg_id enum entry to notify invalid comparison between local
iterators from different buckets. Add _Parameter constructor from
_Safe_local_iterator.
* include/debug/functions.h: Add __valid_range overload for
_Safe_local_iterator.
* src/debug.cc: Add _Safe_unordered_sequence_base and
_Safe_local_iterator_base methods implementations.
* config/abi/pre/gnu.ver: Add export of some
_Safe_unordered_sequence_base and _Safe_local_iterator_base methods.
* testsuite/util/debug/checks.h: Add use_invalid_iterator function to
simulate use of a singular iterator.
* testsuite/util/debug/unordered_checks.h: New, several functions
to simulate classic invalid usage of unordered sequence local
iterators.
* testsuite/23_containers/unordered_map/debug/
use_erased_local_iterator_neg.cc, invalid_local_iterator_range_neg.cc,
use_invalid_local_iterator_neg.cc, use_invalid_iterator_neg.cc,
invalid_local_iterator_compare_neg.cc: New.
* testsuite/23_containers/unordered_multimap/debug/
use_erased_local_iterator_neg.cc, invalid_local_iterator_range_neg.cc,
use_invalid_local_iterator_neg.cc, use_invalid_iterator_neg.cc,
invalid_local_iterator_compare_neg.cc: New.
* testsuite/23_containers/unordered_set/debug/
use_erased_local_iterator_neg.cc, invalid_local_iterator_range_neg.cc,
use_invalid_local_iterator_neg.cc, use_invalid_iterator_neg.cc,
invalid_local_iterator_compare_neg.cc: New.
* testsuite/23_containers/unordered_multiset/debug/
use_erased_local_iterator_neg.cc, invalid_local_iterator_range_neg.cc,
use_invalid_local_iterator_neg.cc, use_invalid_iterator_neg.cc,
invalid_local_iterator_compare_neg.cc: New.
From-SVN: r176487
2011-07-19 21:39:45 +02:00
|
|
|
template<typename _Iterator, typename _Sequence>
|
|
|
|
_Parameter(const _Safe_local_iterator<_Iterator, _Sequence>& __it,
|
|
|
|
const char* __name, _Is_iterator)
|
|
|
|
: _M_kind(__iterator), _M_variant()
|
|
|
|
{
|
|
|
|
_M_variant._M_iterator._M_name = __name;
|
|
|
|
_M_variant._M_iterator._M_address = &__it;
|
|
|
|
#ifdef __GXX_RTTI
|
|
|
|
_M_variant._M_iterator._M_type = &typeid(__it);
|
|
|
|
#else
|
|
|
|
_M_variant._M_iterator._M_type = 0;
|
|
|
|
#endif
|
|
|
|
_M_variant._M_iterator._M_constness =
|
|
|
|
std::__are_same<_Safe_local_iterator<_Iterator, _Sequence>,
|
|
|
|
typename _Sequence::local_iterator>::
|
|
|
|
__value ? __mutable_iterator : __const_iterator;
|
|
|
|
_M_variant._M_iterator._M_sequence = __it._M_get_sequence();
|
|
|
|
#ifdef __GXX_RTTI
|
|
|
|
_M_variant._M_iterator._M_seq_type = &typeid(_Sequence);
|
|
|
|
#else
|
|
|
|
_M_variant._M_iterator._M_seq_type = 0;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
if (__it._M_singular())
|
|
|
|
_M_variant._M_iterator._M_state = __singular;
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if (__it._M_is_end())
|
|
|
|
_M_variant._M_iterator._M_state = __end;
|
|
|
|
else if (__it._M_is_begin())
|
|
|
|
_M_variant._M_iterator._M_state = __begin;
|
|
|
|
else
|
|
|
|
_M_variant._M_iterator._M_state = __middle;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2003-11-11 21:09:16 +01:00
|
|
|
template<typename _Type>
|
|
|
|
_Parameter(const _Type*& __it, const char* __name, _Is_iterator)
|
2004-05-23 01:46:34 +02:00
|
|
|
: _M_kind(__iterator), _M_variant()
|
2003-11-11 21:09:16 +01:00
|
|
|
{
|
|
|
|
_M_variant._M_iterator._M_name = __name;
|
|
|
|
_M_variant._M_iterator._M_address = &__it;
|
2009-05-16 00:25:24 +02:00
|
|
|
#ifdef __GXX_RTTI
|
2003-11-11 21:09:16 +01:00
|
|
|
_M_variant._M_iterator._M_type = &typeid(__it);
|
2009-05-16 00:25:24 +02:00
|
|
|
#else
|
|
|
|
_M_variant._M_iterator._M_type = 0;
|
|
|
|
#endif
|
2003-11-11 21:09:16 +01:00
|
|
|
_M_variant._M_iterator._M_constness = __mutable_iterator;
|
|
|
|
_M_variant._M_iterator._M_state = __it? __unknown_state : __singular;
|
|
|
|
_M_variant._M_iterator._M_sequence = 0;
|
|
|
|
_M_variant._M_iterator._M_seq_type = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
template<typename _Type>
|
|
|
|
_Parameter(_Type*& __it, const char* __name, _Is_iterator)
|
2004-05-23 01:46:34 +02:00
|
|
|
: _M_kind(__iterator), _M_variant()
|
2003-11-11 21:09:16 +01:00
|
|
|
{
|
|
|
|
_M_variant._M_iterator._M_name = __name;
|
|
|
|
_M_variant._M_iterator._M_address = &__it;
|
2009-05-16 00:25:24 +02:00
|
|
|
#ifdef __GXX_RTTI
|
2003-11-11 21:09:16 +01:00
|
|
|
_M_variant._M_iterator._M_type = &typeid(__it);
|
2009-05-16 00:25:24 +02:00
|
|
|
#else
|
|
|
|
_M_variant._M_iterator._M_type = 0;
|
|
|
|
#endif
|
2003-11-11 21:09:16 +01:00
|
|
|
_M_variant._M_iterator._M_constness = __const_iterator;
|
|
|
|
_M_variant._M_iterator._M_state = __it? __unknown_state : __singular;
|
|
|
|
_M_variant._M_iterator._M_sequence = 0;
|
|
|
|
_M_variant._M_iterator._M_seq_type = 0;
|
|
|
|
}
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
|
2003-11-11 21:09:16 +01:00
|
|
|
template<typename _Iterator>
|
|
|
|
_Parameter(const _Iterator& __it, const char* __name, _Is_iterator)
|
2004-05-23 01:46:34 +02:00
|
|
|
: _M_kind(__iterator), _M_variant()
|
2003-11-11 21:09:16 +01:00
|
|
|
{
|
|
|
|
_M_variant._M_iterator._M_name = __name;
|
|
|
|
_M_variant._M_iterator._M_address = &__it;
|
2009-05-16 00:25:24 +02:00
|
|
|
#ifdef __GXX_RTTI
|
2003-11-11 21:09:16 +01:00
|
|
|
_M_variant._M_iterator._M_type = &typeid(__it);
|
2009-05-16 00:25:24 +02:00
|
|
|
#else
|
|
|
|
_M_variant._M_iterator._M_type = 0;
|
|
|
|
#endif
|
2003-11-11 21:09:16 +01:00
|
|
|
_M_variant._M_iterator._M_constness = __unknown_constness;
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
_M_variant._M_iterator._M_state =
|
2003-11-11 21:09:16 +01:00
|
|
|
__gnu_debug::__check_singular(__it)? __singular : __unknown_state;
|
|
|
|
_M_variant._M_iterator._M_sequence = 0;
|
|
|
|
_M_variant._M_iterator._M_seq_type = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
template<typename _Sequence>
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
_Parameter(const _Safe_sequence<_Sequence>& __seq,
|
2003-11-11 21:09:16 +01:00
|
|
|
const char* __name, _Is_sequence)
|
2004-05-23 01:46:34 +02:00
|
|
|
: _M_kind(__sequence), _M_variant()
|
2003-11-11 21:09:16 +01:00
|
|
|
{
|
|
|
|
_M_variant._M_sequence._M_name = __name;
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
_M_variant._M_sequence._M_address =
|
2003-11-11 21:09:16 +01:00
|
|
|
static_cast<const _Sequence*>(&__seq);
|
2009-05-16 00:25:24 +02:00
|
|
|
#ifdef __GXX_RTTI
|
2003-11-11 21:09:16 +01:00
|
|
|
_M_variant._M_sequence._M_type = &typeid(_Sequence);
|
2009-05-16 00:25:24 +02:00
|
|
|
#else
|
|
|
|
_M_variant._M_sequence._M_type = 0;
|
|
|
|
#endif
|
2003-11-11 21:09:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
template<typename _Sequence>
|
|
|
|
_Parameter(const _Sequence& __seq, const char* __name, _Is_sequence)
|
2004-05-23 01:46:34 +02:00
|
|
|
: _M_kind(__sequence), _M_variant()
|
2003-11-11 21:09:16 +01:00
|
|
|
{
|
|
|
|
_M_variant._M_sequence._M_name = __name;
|
|
|
|
_M_variant._M_sequence._M_address = &__seq;
|
2009-05-16 00:25:24 +02:00
|
|
|
#ifdef __GXX_RTTI
|
2003-11-11 21:09:16 +01:00
|
|
|
_M_variant._M_sequence._M_type = &typeid(_Sequence);
|
2009-05-16 00:25:24 +02:00
|
|
|
#else
|
|
|
|
_M_variant._M_sequence._M_type = 0;
|
|
|
|
#endif
|
2003-11-11 21:09:16 +01:00
|
|
|
}
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
|
2003-11-11 21:09:16 +01:00
|
|
|
void
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
_M_print_field(const _Error_formatter* __formatter,
|
2003-11-11 21:09:16 +01:00
|
|
|
const char* __name) const;
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
|
2003-11-11 21:09:16 +01:00
|
|
|
void
|
|
|
|
_M_print_description(const _Error_formatter* __formatter) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
friend struct _Parameter;
|
|
|
|
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
public:
|
2003-11-11 21:09:16 +01:00
|
|
|
template<typename _Iterator>
|
|
|
|
const _Error_formatter&
|
|
|
|
_M_iterator(const _Iterator& __it, const char* __name = 0) const
|
|
|
|
{
|
2010-06-03 21:15:56 +02:00
|
|
|
if (_M_num_parameters < std::size_t(__max_parameters))
|
2003-11-11 21:09:16 +01:00
|
|
|
_M_parameters[_M_num_parameters++] = _Parameter(__it, __name,
|
|
|
|
_Is_iterator());
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
|
|
|
|
const _Error_formatter&
|
|
|
|
_M_integer(long __value, const char* __name = 0) const
|
|
|
|
{
|
2010-06-03 21:15:56 +02:00
|
|
|
if (_M_num_parameters < std::size_t(__max_parameters))
|
2003-11-11 21:09:16 +01:00
|
|
|
_M_parameters[_M_num_parameters++] = _Parameter(__value, __name);
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
|
|
|
|
const _Error_formatter&
|
|
|
|
_M_string(const char* __value, const char* __name = 0) const
|
|
|
|
{
|
2010-06-03 21:15:56 +02:00
|
|
|
if (_M_num_parameters < std::size_t(__max_parameters))
|
2003-11-11 21:09:16 +01:00
|
|
|
_M_parameters[_M_num_parameters++] = _Parameter(__value, __name);
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
|
|
|
|
template<typename _Sequence>
|
|
|
|
const _Error_formatter&
|
|
|
|
_M_sequence(const _Sequence& __seq, const char* __name = 0) const
|
|
|
|
{
|
2010-06-03 21:15:56 +02:00
|
|
|
if (_M_num_parameters < std::size_t(__max_parameters))
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
_M_parameters[_M_num_parameters++] = _Parameter(__seq, __name,
|
2003-11-11 21:09:16 +01:00
|
|
|
_Is_sequence());
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
|
|
|
|
const _Error_formatter&
|
|
|
|
_M_message(const char* __text) const
|
|
|
|
{ _M_text = __text; return *this; }
|
|
|
|
|
|
|
|
const _Error_formatter&
|
pool_allocator.cc (_M_get_free_list, [...]): Mark throw ()
* src/pool_allocator.cc (_M_get_free_list, _M_get_mutex): Mark throw ()
* src/mt_allocator.cc (_M_reclaim_block, _M_reclaim_block,
_M_destroy_thread_key): Mark throw ()
* debug.cc (_M_get_mutex, _M_attach_single, _M_detach_single,
_M_singular, _M_can_compare _M_get_mutex, _M_message,
_M_get_max_length): Mark throw ().
* include/debug/formatter.h (_M_message, _M_format_word,
_M_get_max_length): Mark throw ().
* include/debug/safe_base.h (_M_get_mutex, _M_attach_single,
_M_detach_single): Mark throw ().
(_M_singular, _M_can_compare, _M_get_mutex): Mark pure and throw ().
* include/ext/pool_allocator.h (_M_get_free_list): Mark const and
throw ()
(_M_get_mutex): Mark throw ().
* include/ext/mt_allocator.h (_M_reclaim_block): Mark throw ();
(_M_destroy_thread_key): Mark CONST and throw.
* include/bits/stl_list.h (swap, transfer, reverse, hook, unhook): Mark
throw ().
From-SVN: r146330
2009-04-19 00:02:19 +02:00
|
|
|
_M_message(_Debug_msg_id __id) const throw ();
|
2003-11-11 21:09:16 +01:00
|
|
|
|
formater.h: Include bits/c++config.h.
* include/debug/formater.h: Include bits/c++config.h.
(_M_error): Mark noreturn.
* include/bits/c++config (_GLIBCXX_PURE, _GLIBCXX_CONST,
_GLIBCXX_NORETURN): New.
* include/bits/stl_tree.h (_Rb_tree_increment, _Rb_tree_increment,
_Rb_tree_decrement, _Rb_tree_decrement, _Rb_tree_black_count): Mark pure.
* include/c_compatibility/stdatomic.h (atomic_flag_test_and_set_explicit,
atomic_flag_clear_explicit, __atomic_flag_wait_explicit,
__atomic_flag_for_address): Mark by throw ().
* src/atomic.cc (atomic_flag_test_and_set_explicit,
atomic_flag_clear_explicit, __atomic_flag_wait_explicit,
__atomic_flag_for_address): Mark by throw ().
From-SVN: r146317
2009-04-18 17:48:16 +02:00
|
|
|
_GLIBCXX_NORETURN void
|
2003-11-11 21:09:16 +01:00
|
|
|
_M_error() const;
|
|
|
|
|
|
|
|
private:
|
2010-06-03 21:15:56 +02:00
|
|
|
_Error_formatter(const char* __file, std::size_t __line)
|
2003-11-11 21:09:16 +01:00
|
|
|
: _M_file(__file), _M_line(__line), _M_num_parameters(0), _M_text(0),
|
|
|
|
_M_max_length(78), _M_column(1), _M_first_line(true), _M_wordwrap(false)
|
2007-07-04 02:09:22 +02:00
|
|
|
{ _M_get_max_length(); }
|
2003-11-11 21:09:16 +01:00
|
|
|
|
2003-11-21 06:49:21 +01:00
|
|
|
template<typename _Tp>
|
2003-11-20 20:32:13 +01:00
|
|
|
void
|
pool_allocator.cc (_M_get_free_list, [...]): Mark throw ()
* src/pool_allocator.cc (_M_get_free_list, _M_get_mutex): Mark throw ()
* src/mt_allocator.cc (_M_reclaim_block, _M_reclaim_block,
_M_destroy_thread_key): Mark throw ()
* debug.cc (_M_get_mutex, _M_attach_single, _M_detach_single,
_M_singular, _M_can_compare _M_get_mutex, _M_message,
_M_get_max_length): Mark throw ().
* include/debug/formatter.h (_M_message, _M_format_word,
_M_get_max_length): Mark throw ().
* include/debug/safe_base.h (_M_get_mutex, _M_attach_single,
_M_detach_single): Mark throw ().
(_M_singular, _M_can_compare, _M_get_mutex): Mark pure and throw ().
* include/ext/pool_allocator.h (_M_get_free_list): Mark const and
throw ()
(_M_get_mutex): Mark throw ().
* include/ext/mt_allocator.h (_M_reclaim_block): Mark throw ();
(_M_destroy_thread_key): Mark CONST and throw.
* include/bits/stl_list.h (swap, transfer, reverse, hook, unhook): Mark
throw ().
From-SVN: r146330
2009-04-19 00:02:19 +02:00
|
|
|
_M_format_word(char*, int, const char*, _Tp) const throw ();
|
2003-11-20 20:32:13 +01:00
|
|
|
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
void
|
2003-11-11 21:09:16 +01:00
|
|
|
_M_print_word(const char* __word) const;
|
|
|
|
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
void
|
2003-11-11 21:09:16 +01:00
|
|
|
_M_print_string(const char* __string) const;
|
|
|
|
|
2007-07-04 02:09:22 +02:00
|
|
|
void
|
pool_allocator.cc (_M_get_free_list, [...]): Mark throw ()
* src/pool_allocator.cc (_M_get_free_list, _M_get_mutex): Mark throw ()
* src/mt_allocator.cc (_M_reclaim_block, _M_reclaim_block,
_M_destroy_thread_key): Mark throw ()
* debug.cc (_M_get_mutex, _M_attach_single, _M_detach_single,
_M_singular, _M_can_compare _M_get_mutex, _M_message,
_M_get_max_length): Mark throw ().
* include/debug/formatter.h (_M_message, _M_format_word,
_M_get_max_length): Mark throw ().
* include/debug/safe_base.h (_M_get_mutex, _M_attach_single,
_M_detach_single): Mark throw ().
(_M_singular, _M_can_compare, _M_get_mutex): Mark pure and throw ().
* include/ext/pool_allocator.h (_M_get_free_list): Mark const and
throw ()
(_M_get_mutex): Mark throw ().
* include/ext/mt_allocator.h (_M_reclaim_block): Mark throw ();
(_M_destroy_thread_key): Mark CONST and throw.
* include/bits/stl_list.h (swap, transfer, reverse, hook, unhook): Mark
throw ().
From-SVN: r146330
2009-04-19 00:02:19 +02:00
|
|
|
_M_get_max_length() const throw ();
|
2007-07-04 02:09:22 +02:00
|
|
|
|
2003-11-11 21:09:16 +01:00
|
|
|
enum { __max_parameters = 9 };
|
|
|
|
|
|
|
|
const char* _M_file;
|
2010-06-03 21:15:56 +02:00
|
|
|
std::size_t _M_line;
|
2003-11-11 21:09:16 +01:00
|
|
|
mutable _Parameter _M_parameters[__max_parameters];
|
2010-06-03 21:15:56 +02:00
|
|
|
mutable std::size_t _M_num_parameters;
|
2003-11-11 21:09:16 +01:00
|
|
|
mutable const char* _M_text;
|
2010-06-03 21:15:56 +02:00
|
|
|
mutable std::size_t _M_max_length;
|
2003-11-11 21:09:16 +01:00
|
|
|
enum { _M_indent = 4 } ;
|
2010-06-03 21:15:56 +02:00
|
|
|
mutable std::size_t _M_column;
|
2003-11-11 21:09:16 +01:00
|
|
|
mutable bool _M_first_line;
|
|
|
|
mutable bool _M_wordwrap;
|
|
|
|
|
|
|
|
public:
|
|
|
|
static _Error_formatter
|
2010-06-03 21:15:56 +02:00
|
|
|
_M_at(const char* __file, std::size_t __line)
|
2003-11-11 21:09:16 +01:00
|
|
|
{ return _Error_formatter(__file, __line); }
|
|
|
|
};
|
|
|
|
} // namespace __gnu_debug
|
|
|
|
|
bitset, [...]: Remove trailing whitespace.
* include/debug/bitset, include/debug/debug.h, include/debug/deque,
include/debug/formatter.h, include/debug/hash_map.h,
include/debug/hash_multimap.h, include/debug/hash_multiset.h,
include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
include/debug/map.h, include/debug/multimap.h,
include/debug/multiset.h, include/debug/safe_base.h,
include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
include/debug/safe_sequence.h, include/debug/set.h,
include/debug/string, include/debug/vector: Remove trailing whitespace.
From-SVN: r74463
2003-12-09 05:26:28 +01:00
|
|
|
#endif
|