Commit 3c732e6f by Jonathan Wakely Committed by Jonathan Wakely

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
parent dd87c5c2
2019-01-03 Jonathan Wakely <jwakely@redhat.com> 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 PR libstdc++/88681
* config/abi/pre/gnu.ver: Add missing exports. * config/abi/pre/gnu.ver: Add missing exports.
* testsuite/22_locale/collate_byname/88681.cc: New test. * testsuite/22_locale/collate_byname/88681.cc: New test.
......
...@@ -809,7 +809,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER ...@@ -809,7 +809,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
return *__front->_M_valptr(); return *__front->_M_valptr();
} }
// 23.3.4.5 modiers: // 23.3.4.5 modifiers:
/** /**
* @brief Constructs object in %forward_list at the front of the * @brief Constructs object in %forward_list at the front of the
......
...@@ -369,7 +369,7 @@ namespace __debug ...@@ -369,7 +369,7 @@ namespace __debug
return _Base::front(); return _Base::front();
} }
// modiers: // modifiers:
using _Base::emplace_front; using _Base::emplace_front;
using _Base::push_front; using _Base::push_front;
......
...@@ -157,10 +157,10 @@ inline namespace fundamentals_v2 ...@@ -157,10 +157,10 @@ inline namespace fundamentals_v2
constexpr shared_ptr(nullptr_t __p) constexpr shared_ptr(nullptr_t __p)
: _Base_type(__p) { } : _Base_type(__p) { }
// C++14 §20.8.2.2 // C++14 20.8.2.2
~shared_ptr() = default; ~shared_ptr() = default;
// C++14 §20.8.2.3 // C++14 20.8.2.3
shared_ptr& operator=(const shared_ptr&) noexcept = default; shared_ptr& operator=(const shared_ptr&) noexcept = default;
template <typename _Tp1> template <typename _Tp1>
...@@ -204,7 +204,7 @@ inline namespace fundamentals_v2 ...@@ -204,7 +204,7 @@ inline namespace fundamentals_v2
return *this; return *this;
} }
// C++14 §20.8.2.2.4 // C++14 20.8.2.2.4
// swap & reset // swap & reset
// 8.2.1.2 shared_ptr observers // 8.2.1.2 shared_ptr observers
// in __shared_ptr // in __shared_ptr
...@@ -255,7 +255,7 @@ inline namespace fundamentals_v2 ...@@ -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> template<typename _Tp1, typename _Tp2>
bool operator==(const shared_ptr<_Tp1>& __a, bool operator==(const shared_ptr<_Tp1>& __a,
const shared_ptr<_Tp2>& __b) noexcept const shared_ptr<_Tp2>& __b) noexcept
...@@ -368,7 +368,7 @@ inline namespace fundamentals_v2 ...@@ -368,7 +368,7 @@ inline namespace fundamentals_v2
operator>=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept operator>=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept
{ return !(nullptr < __a); } { return !(nullptr < __a); }
// C++14 §20.8.2.2.8 // C++14 20.8.2.2.8
template<typename _Tp> template<typename _Tp>
inline void inline void
swap(shared_ptr<_Tp>& __a, shared_ptr<_Tp>& __b) noexcept swap(shared_ptr<_Tp>& __a, shared_ptr<_Tp>& __b) noexcept
...@@ -409,7 +409,7 @@ inline namespace fundamentals_v2 ...@@ -409,7 +409,7 @@ inline namespace fundamentals_v2
return shared_ptr<_Tp>(__r, reinterpret_cast<__elem_t*>(__r.get())); 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> template<typename _Tp>
class weak_ptr : public __weak_ptr<_Tp> class weak_ptr : public __weak_ptr<_Tp>
{ {
...@@ -474,19 +474,19 @@ inline namespace fundamentals_v2 ...@@ -474,19 +474,19 @@ inline namespace fundamentals_v2
friend class enable_shared_from_this<_Tp>; friend class enable_shared_from_this<_Tp>;
}; };
// C++14 §20.8.2.3.6 // C++14 20.8.2.3.6
template<typename _Tp> template<typename _Tp>
inline void inline void
swap(weak_ptr<_Tp>& __a, weak_ptr<_Tp>& __b) noexcept swap(weak_ptr<_Tp>& __a, weak_ptr<_Tp>& __b) noexcept
{ __a.swap(__b); } { __a.swap(__b); }
/// C++14 §20.8.2.2.10 /// C++14 20.8.2.2.10
template<typename _Del, typename _Tp> template<typename _Del, typename _Tp>
inline _Del* inline _Del*
get_deleter(const shared_ptr<_Tp>& __p) noexcept get_deleter(const shared_ptr<_Tp>& __p) noexcept
{ return std::get_deleter<_Del>(__p); } { 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> template<typename _Ch, typename _Tr, typename _Tp>
inline std::basic_ostream<_Ch, _Tr>& inline std::basic_ostream<_Ch, _Tr>&
operator<<(std::basic_ostream<_Ch, _Tr>& __os, const shared_ptr<_Tp>& __p) operator<<(std::basic_ostream<_Ch, _Tr>& __os, const shared_ptr<_Tp>& __p)
...@@ -495,7 +495,7 @@ inline namespace fundamentals_v2 ...@@ -495,7 +495,7 @@ inline namespace fundamentals_v2
return __os; return __os;
} }
// C++14 §20.8.2.4 // C++14 20.8.2.4
template<typename _Tp = void> class owner_less; template<typename _Tp = void> class owner_less;
/// Partial specialization of owner_less for shared_ptr. /// Partial specialization of owner_less for shared_ptr.
...@@ -540,7 +540,7 @@ inline namespace fundamentals_v2 ...@@ -540,7 +540,7 @@ inline namespace fundamentals_v2
typedef void is_transparent; typedef void is_transparent;
}; };
// C++14 §20.8.2.6 // C++14 20.8.2.6
template<typename _Tp> template<typename _Tp>
inline bool inline bool
atomic_is_lock_free(const shared_ptr<_Tp>* __p) atomic_is_lock_free(const shared_ptr<_Tp>* __p)
......
...@@ -49,7 +49,7 @@ namespace experimental ...@@ -49,7 +49,7 @@ namespace experimental
{ {
inline namespace fundamentals_v1 inline namespace fundamentals_v1
{ {
// See C++14 §20.12.4, customization traits // See C++14 20.12.4, customization traits
template <typename _Rep> template <typename _Rep>
constexpr bool treat_as_floating_point_v = constexpr bool treat_as_floating_point_v =
treat_as_floating_point<_Rep>::value; treat_as_floating_point<_Rep>::value;
......
...@@ -53,7 +53,7 @@ namespace experimental ...@@ -53,7 +53,7 @@ namespace experimental
{ {
inline namespace fundamentals_v1 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 /// Variable template for std::is_bind_expression
template<typename _Tp> template<typename _Tp>
......
...@@ -48,7 +48,7 @@ namespace experimental ...@@ -48,7 +48,7 @@ namespace experimental
{ {
inline namespace fundamentals_v1 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> template <typename _R1, typename _R2>
constexpr bool ratio_equal_v = ratio_equal<_R1, _R2>::value; constexpr bool ratio_equal_v = ratio_equal<_R1, _R2>::value;
template <typename _R1, typename _R2> template <typename _R1, typename _R2>
......
...@@ -48,7 +48,7 @@ namespace experimental ...@@ -48,7 +48,7 @@ namespace experimental
{ {
inline namespace fundamentals_v1 inline namespace fundamentals_v1
{ {
// See C++14 §19.5, System error support // See C++14 19.5, System error support
template <typename _Tp> template <typename _Tp>
constexpr bool is_error_code_enum_v = is_error_code_enum<_Tp>::value; constexpr bool is_error_code_enum_v = is_error_code_enum<_Tp>::value;
template <typename _Tp> template <typename _Tp>
......
...@@ -45,7 +45,7 @@ namespace experimental ...@@ -45,7 +45,7 @@ namespace experimental
{ {
inline namespace fundamentals_v1 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> template <typename _Tp>
constexpr size_t tuple_size_v = tuple_size<_Tp>::value; constexpr size_t tuple_size_v = tuple_size<_Tp>::value;
......
...@@ -50,7 +50,7 @@ inline namespace fundamentals_v1 ...@@ -50,7 +50,7 @@ inline namespace fundamentals_v1
{ {
#define __cpp_lib_experimental_type_trait_variable_templates 201402 #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> template <typename _Tp>
constexpr bool is_void_v = is_void<_Tp>::value; constexpr bool is_void_v = is_void<_Tp>::value;
template <typename _Tp> template <typename _Tp>
...@@ -82,7 +82,7 @@ template <typename _Tp> ...@@ -82,7 +82,7 @@ template <typename _Tp>
template <typename _Tp> template <typename _Tp>
constexpr bool is_function_v = is_function<_Tp>::value; 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> template <typename _Tp>
constexpr bool is_reference_v = is_reference<_Tp>::value; constexpr bool is_reference_v = is_reference<_Tp>::value;
template <typename _Tp> template <typename _Tp>
...@@ -98,7 +98,7 @@ template <typename _Tp> ...@@ -98,7 +98,7 @@ template <typename _Tp>
template <typename _Tp> template <typename _Tp>
constexpr bool is_member_pointer_v = is_member_pointer<_Tp>::value; 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> template <typename _Tp>
constexpr bool is_const_v = is_const<_Tp>::value; constexpr bool is_const_v = is_const<_Tp>::value;
template <typename _Tp> template <typename _Tp>
...@@ -194,7 +194,7 @@ template <typename _Tp> ...@@ -194,7 +194,7 @@ template <typename _Tp>
constexpr bool has_virtual_destructor_v = constexpr bool has_virtual_destructor_v =
has_virtual_destructor<_Tp>::value; 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> template <typename _Tp>
constexpr size_t alignment_of_v = alignment_of<_Tp>::value; constexpr size_t alignment_of_v = alignment_of<_Tp>::value;
template <typename _Tp> template <typename _Tp>
...@@ -202,7 +202,7 @@ template <typename _Tp> ...@@ -202,7 +202,7 @@ template <typename _Tp>
template <typename _Tp, unsigned _Idx = 0> template <typename _Tp, unsigned _Idx = 0>
constexpr size_t extent_v = extent<_Tp, _Idx>::value; 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> template <typename _Tp, typename _Up>
constexpr bool is_same_v = is_same<_Tp, _Up>::value; constexpr bool is_same_v = is_same<_Tp, _Up>::value;
template <typename _Base, typename _Derived> template <typename _Base, typename _Derived>
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
* *
* P. J. Varman, S. D. Scheufler, B. R. Iyer, and G. R. Ricard. * P. J. Varman, S. D. Scheufler, B. R. Iyer, and G. R. Ricard.
* Merging Multiple Lists on Hierarchical-Memory Multiprocessors. * Merging Multiple Lists on Hierarchical-Memory Multiprocessors.
* Journal of Parallel and Distributed Computing, 12(2):171177, 1991. * Journal of Parallel and Distributed Computing, 12(2):171-177, 1991.
* *
* This file is a GNU parallel extension to the Standard C++ Library. * This file is a GNU parallel extension to the Standard C++ Library.
*/ */
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
* *
* R. D. Blumofe and C. E. Leiserson. * R. D. Blumofe and C. E. Leiserson.
* Scheduling multithreaded computations by work stealing. * Scheduling multithreaded computations by work stealing.
* Journal of the ACM, 46(5):720748, 1999. * Journal of the ACM, 46(5):720-748, 1999.
* *
* This file is a GNU parallel extension to the Standard C++ Library. * This file is a GNU parallel extension to the Standard C++ Library.
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment