diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-01-03 20:38:11 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-01-03 20:38:11 +0000 |
commit | 3c732e6fe849afb4006782c0e34913db05b2c1d2 (patch) | |
tree | 499985595a9efd807bd5b8aef49c4fea87cbbd38 /libstdc++-v3 | |
parent | dd87c5c2283406aa06d262d383fbfb88d152fe22 (diff) | |
download | gcc-3c732e6fe849afb4006782c0e34913db05b2c1d2.zip gcc-3c732e6fe849afb4006782c0e34913db05b2c1d2.tar.gz gcc-3c732e6fe849afb4006782c0e34913db05b2c1d2.tar.bz2 |
PR libstdc++/88607 replace or remove unnecessary UTF-8 characters
There are a number of UTF-8 characters in comments which add no value
and can be replaced with ASCII equivalents, or removed entirely for the
section sign (U+00A7).
PR libstdc++/88607
* include/bits/forward_list.h: Replace UTF-8 "ligature fi" character.
* include/debug/forward_list: Likewise.
* include/experimental/bits/shared_ptr.h: Remove UTF-8 "section sign"
character.
* include/experimental/chrono: Likewise.
* include/experimental/functional: Likewise.
* include/experimental/ratio: Likewise.
* include/experimental/system_error: Likewise.
* include/experimental/tuple: Likewise.
* include/experimental/type_traits: Likewise.
* include/parallel/workstealing.h: Replace UTF-8 "en dash" character.
* include/parallel/multiseq_selection.h: Likewise.
From-SVN: r267564
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 14 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/forward_list.h | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/debug/forward_list | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/experimental/bits/shared_ptr.h | 22 | ||||
-rw-r--r-- | libstdc++-v3/include/experimental/chrono | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/experimental/functional | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/experimental/ratio | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/experimental/system_error | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/experimental/tuple | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/experimental/type_traits | 10 | ||||
-rw-r--r-- | libstdc++-v3/include/parallel/multiseq_selection.h | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/parallel/workstealing.h | 2 |
12 files changed, 39 insertions, 25 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 02ec399..38f9014 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,19 @@ 2019-01-03 Jonathan Wakely <jwakely@redhat.com> + PR libstdc++/88607 + * include/bits/forward_list.h: Replace UTF-8 "ligature fi" character. + * include/debug/forward_list: Likewise. + * include/experimental/bits/shared_ptr.h: Remove UTF-8 "section sign" + character. + * include/experimental/chrono: Likewise. + * include/experimental/functional: Likewise. + * include/experimental/ratio: Likewise. + * include/experimental/system_error: Likewise. + * include/experimental/tuple: Likewise. + * include/experimental/type_traits: Likewise. + * include/parallel/workstealing.h: Replace UTF-8 "en dash" character. + * include/parallel/multiseq_selection.h: Likewise. + PR libstdc++/88681 * config/abi/pre/gnu.ver: Add missing exports. * testsuite/22_locale/collate_byname/88681.cc: New test. diff --git a/libstdc++-v3/include/bits/forward_list.h b/libstdc++-v3/include/bits/forward_list.h index 1ccad5f..4741c43 100644 --- a/libstdc++-v3/include/bits/forward_list.h +++ b/libstdc++-v3/include/bits/forward_list.h @@ -809,7 +809,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER return *__front->_M_valptr(); } - // 23.3.4.5 modifiers: + // 23.3.4.5 modifiers: /** * @brief Constructs object in %forward_list at the front of the diff --git a/libstdc++-v3/include/debug/forward_list b/libstdc++-v3/include/debug/forward_list index 1af792c..e30b000 100644 --- a/libstdc++-v3/include/debug/forward_list +++ b/libstdc++-v3/include/debug/forward_list @@ -369,7 +369,7 @@ namespace __debug return _Base::front(); } - // modifiers: + // modifiers: using _Base::emplace_front; using _Base::push_front; diff --git a/libstdc++-v3/include/experimental/bits/shared_ptr.h b/libstdc++-v3/include/experimental/bits/shared_ptr.h index 01962f2..65df4dd 100644 --- a/libstdc++-v3/include/experimental/bits/shared_ptr.h +++ b/libstdc++-v3/include/experimental/bits/shared_ptr.h @@ -157,10 +157,10 @@ inline namespace fundamentals_v2 constexpr shared_ptr(nullptr_t __p) : _Base_type(__p) { } - // C++14 §20.8.2.2 + // C++14 20.8.2.2 ~shared_ptr() = default; - // C++14 §20.8.2.3 + // C++14 20.8.2.3 shared_ptr& operator=(const shared_ptr&) noexcept = default; template <typename _Tp1> @@ -204,7 +204,7 @@ inline namespace fundamentals_v2 return *this; } - // C++14 §20.8.2.2.4 + // C++14 20.8.2.2.4 // swap & reset // 8.2.1.2 shared_ptr observers // in __shared_ptr @@ -255,7 +255,7 @@ inline namespace fundamentals_v2 { } }; - // C++14 §20.8.2.2.7 //DOING + // C++14 20.8.2.2.7 template<typename _Tp1, typename _Tp2> bool operator==(const shared_ptr<_Tp1>& __a, const shared_ptr<_Tp2>& __b) noexcept @@ -368,7 +368,7 @@ inline namespace fundamentals_v2 operator>=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept { return !(nullptr < __a); } - // C++14 §20.8.2.2.8 + // C++14 20.8.2.2.8 template<typename _Tp> inline void swap(shared_ptr<_Tp>& __a, shared_ptr<_Tp>& __b) noexcept @@ -409,7 +409,7 @@ inline namespace fundamentals_v2 return shared_ptr<_Tp>(__r, reinterpret_cast<__elem_t*>(__r.get())); } - // C++14 §20.8.2.3 + // C++14 20.8.2.3 template<typename _Tp> class weak_ptr : public __weak_ptr<_Tp> { @@ -474,19 +474,19 @@ inline namespace fundamentals_v2 friend class enable_shared_from_this<_Tp>; }; - // C++14 §20.8.2.3.6 + // C++14 20.8.2.3.6 template<typename _Tp> inline void swap(weak_ptr<_Tp>& __a, weak_ptr<_Tp>& __b) noexcept { __a.swap(__b); } - /// C++14 §20.8.2.2.10 + /// C++14 20.8.2.2.10 template<typename _Del, typename _Tp> inline _Del* get_deleter(const shared_ptr<_Tp>& __p) noexcept { return std::get_deleter<_Del>(__p); } - // C++14 §20.8.2.2.11 + // C++14 20.8.2.2.11 template<typename _Ch, typename _Tr, typename _Tp> inline std::basic_ostream<_Ch, _Tr>& operator<<(std::basic_ostream<_Ch, _Tr>& __os, const shared_ptr<_Tp>& __p) @@ -495,7 +495,7 @@ inline namespace fundamentals_v2 return __os; } - // C++14 §20.8.2.4 + // C++14 20.8.2.4 template<typename _Tp = void> class owner_less; /// Partial specialization of owner_less for shared_ptr. @@ -540,7 +540,7 @@ inline namespace fundamentals_v2 typedef void is_transparent; }; - // C++14 §20.8.2.6 + // C++14 20.8.2.6 template<typename _Tp> inline bool atomic_is_lock_free(const shared_ptr<_Tp>* __p) diff --git a/libstdc++-v3/include/experimental/chrono b/libstdc++-v3/include/experimental/chrono index 1870abc..90fb39f 100644 --- a/libstdc++-v3/include/experimental/chrono +++ b/libstdc++-v3/include/experimental/chrono @@ -49,7 +49,7 @@ namespace experimental { inline namespace fundamentals_v1 { -// See C++14 §20.12.4, customization traits +// See C++14 20.12.4, customization traits template <typename _Rep> constexpr bool treat_as_floating_point_v = treat_as_floating_point<_Rep>::value; diff --git a/libstdc++-v3/include/experimental/functional b/libstdc++-v3/include/experimental/functional index 3b36898..90f2652 100644 --- a/libstdc++-v3/include/experimental/functional +++ b/libstdc++-v3/include/experimental/functional @@ -53,7 +53,7 @@ namespace experimental { inline namespace fundamentals_v1 { - // See C++14 §20.9.9, Function object binders + // See C++14 20.9.9, Function object binders /// Variable template for std::is_bind_expression template<typename _Tp> diff --git a/libstdc++-v3/include/experimental/ratio b/libstdc++-v3/include/experimental/ratio index 2aa877b..6129d1e 100644 --- a/libstdc++-v3/include/experimental/ratio +++ b/libstdc++-v3/include/experimental/ratio @@ -48,7 +48,7 @@ namespace experimental { inline namespace fundamentals_v1 { -// See C++14 §20.11.5, ratio comparison +// See C++14 20.11.5, ratio comparison template <typename _R1, typename _R2> constexpr bool ratio_equal_v = ratio_equal<_R1, _R2>::value; template <typename _R1, typename _R2> diff --git a/libstdc++-v3/include/experimental/system_error b/libstdc++-v3/include/experimental/system_error index 63c2073..73640a4 100644 --- a/libstdc++-v3/include/experimental/system_error +++ b/libstdc++-v3/include/experimental/system_error @@ -48,7 +48,7 @@ namespace experimental { inline namespace fundamentals_v1 { -// See C++14 §19.5, System error support +// See C++14 19.5, System error support template <typename _Tp> constexpr bool is_error_code_enum_v = is_error_code_enum<_Tp>::value; template <typename _Tp> diff --git a/libstdc++-v3/include/experimental/tuple b/libstdc++-v3/include/experimental/tuple index 2649daf..be42b58 100644 --- a/libstdc++-v3/include/experimental/tuple +++ b/libstdc++-v3/include/experimental/tuple @@ -45,7 +45,7 @@ namespace experimental { inline namespace fundamentals_v1 { - // See C++14 §20.4.2.5, tuple helper classes + // See C++14 20.4.2.5, tuple helper classes template <typename _Tp> constexpr size_t tuple_size_v = tuple_size<_Tp>::value; diff --git a/libstdc++-v3/include/experimental/type_traits b/libstdc++-v3/include/experimental/type_traits index d52cf06..ab1ba92 100644 --- a/libstdc++-v3/include/experimental/type_traits +++ b/libstdc++-v3/include/experimental/type_traits @@ -50,7 +50,7 @@ inline namespace fundamentals_v1 { #define __cpp_lib_experimental_type_trait_variable_templates 201402 -// See C++14 §20.10.4.1, primary type categories +// See C++14 20.10.4.1, primary type categories template <typename _Tp> constexpr bool is_void_v = is_void<_Tp>::value; template <typename _Tp> @@ -82,7 +82,7 @@ template <typename _Tp> template <typename _Tp> constexpr bool is_function_v = is_function<_Tp>::value; -// See C++14 §20.10.4.2, composite type categories +// See C++14 20.10.4.2, composite type categories template <typename _Tp> constexpr bool is_reference_v = is_reference<_Tp>::value; template <typename _Tp> @@ -98,7 +98,7 @@ template <typename _Tp> template <typename _Tp> constexpr bool is_member_pointer_v = is_member_pointer<_Tp>::value; -// See C++14 §20.10.4.3, type properties +// See C++14 20.10.4.3, type properties template <typename _Tp> constexpr bool is_const_v = is_const<_Tp>::value; template <typename _Tp> @@ -194,7 +194,7 @@ template <typename _Tp> constexpr bool has_virtual_destructor_v = has_virtual_destructor<_Tp>::value; -// See C++14 §20.10.5, type property queries +// See C++14 20.10.5, type property queries template <typename _Tp> constexpr size_t alignment_of_v = alignment_of<_Tp>::value; template <typename _Tp> @@ -202,7 +202,7 @@ template <typename _Tp> template <typename _Tp, unsigned _Idx = 0> constexpr size_t extent_v = extent<_Tp, _Idx>::value; -// See C++14 §20.10.6, type relations +// See C++14 20.10.6, type relations template <typename _Tp, typename _Up> constexpr bool is_same_v = is_same<_Tp, _Up>::value; template <typename _Base, typename _Derived> diff --git a/libstdc++-v3/include/parallel/multiseq_selection.h b/libstdc++-v3/include/parallel/multiseq_selection.h index 9988636..1f1678b 100644 --- a/libstdc++-v3/include/parallel/multiseq_selection.h +++ b/libstdc++-v3/include/parallel/multiseq_selection.h @@ -31,7 +31,7 @@ * * P. J. Varman, S. D. Scheufler, B. R. Iyer, and G. R. Ricard. * Merging Multiple Lists on Hierarchical-Memory Multiprocessors. - * Journal of Parallel and Distributed Computing, 12(2):171–177, 1991. + * Journal of Parallel and Distributed Computing, 12(2):171-177, 1991. * * This file is a GNU parallel extension to the Standard C++ Library. */ diff --git a/libstdc++-v3/include/parallel/workstealing.h b/libstdc++-v3/include/parallel/workstealing.h index 6049d0f..de7283b 100644 --- a/libstdc++-v3/include/parallel/workstealing.h +++ b/libstdc++-v3/include/parallel/workstealing.h @@ -30,7 +30,7 @@ * * R. D. Blumofe and C. E. Leiserson. * Scheduling multithreaded computations by work stealing. - * Journal of the ACM, 46(5):720–748, 1999. + * Journal of the ACM, 46(5):720-748, 1999. * * This file is a GNU parallel extension to the Standard C++ Library. */ |