Skip to content

Commit dab6463

Browse files
authored
[libc++] Remove duplicated _LIBCPP_HIDE_FROM_ABI from a few declarations (#122323)
1 parent 5d26a6d commit dab6463

File tree

6 files changed

+6
-10
lines changed

6 files changed

+6
-10
lines changed

libcxx/include/__cxx03/__functional/function.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ class _LIBCPP_TEMPLATE_VIS function<_Rp(_ArgTypes...)>
853853

854854
// construct/copy/destroy:
855855
_LIBCPP_HIDE_FROM_ABI function() _NOEXCEPT {}
856-
_LIBCPP_HIDE_FROM_ABI _LIBCPP_HIDE_FROM_ABI function(nullptr_t) _NOEXCEPT {}
856+
_LIBCPP_HIDE_FROM_ABI function(nullptr_t) _NOEXCEPT {}
857857
_LIBCPP_HIDE_FROM_ABI function(const function&);
858858
_LIBCPP_HIDE_FROM_ABI function(function&&) _NOEXCEPT;
859859
template <class _Fp, class = _EnableIfLValueCallable<_Fp>>

libcxx/include/__cxx03/future

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1472,7 +1472,7 @@ public:
14721472

14731473
_LIBCPP_HIDE_FROM_ABI void swap(__packaged_task_function&) _NOEXCEPT;
14741474

1475-
_LIBCPP_HIDE_FROM_ABI _LIBCPP_HIDE_FROM_ABI _Rp operator()(_ArgTypes...) const;
1475+
_LIBCPP_HIDE_FROM_ABI _Rp operator()(_ArgTypes...) const;
14761476
};
14771477

14781478
template <class _Rp, class... _ArgTypes>

libcxx/include/__cxx03/regex

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5544,9 +5544,7 @@ public:
55445544

55455545
_LIBCPP_HIDE_FROM_ABI bool operator==(const regex_token_iterator& __x) const;
55465546
#if _LIBCPP_STD_VER >= 20
5547-
_LIBCPP_HIDE_FROM_ABI _LIBCPP_HIDE_FROM_ABI bool operator==(default_sentinel_t) const {
5548-
return *this == regex_token_iterator();
5549-
}
5547+
_LIBCPP_HIDE_FROM_ABI bool operator==(default_sentinel_t) const { return *this == regex_token_iterator(); }
55505548
#endif
55515549
#if _LIBCPP_STD_VER < 20
55525550
_LIBCPP_HIDE_FROM_ABI bool operator!=(const regex_token_iterator& __x) const { return !(*this == __x); }

libcxx/include/__functional/function.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ class _LIBCPP_TEMPLATE_VIS function<_Rp(_ArgTypes...)>
854854

855855
// construct/copy/destroy:
856856
_LIBCPP_HIDE_FROM_ABI function() _NOEXCEPT {}
857-
_LIBCPP_HIDE_FROM_ABI _LIBCPP_HIDE_FROM_ABI function(nullptr_t) _NOEXCEPT {}
857+
_LIBCPP_HIDE_FROM_ABI function(nullptr_t) _NOEXCEPT {}
858858
_LIBCPP_HIDE_FROM_ABI function(const function&);
859859
_LIBCPP_HIDE_FROM_ABI function(function&&) _NOEXCEPT;
860860
template <class _Fp, class = _EnableIfLValueCallable<_Fp>>

libcxx/include/future

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,7 @@ public:
14921492

14931493
_LIBCPP_HIDE_FROM_ABI void swap(__packaged_task_function&) _NOEXCEPT;
14941494

1495-
_LIBCPP_HIDE_FROM_ABI _LIBCPP_HIDE_FROM_ABI _Rp operator()(_ArgTypes...) const;
1495+
_LIBCPP_HIDE_FROM_ABI _Rp operator()(_ArgTypes...) const;
14961496
};
14971497

14981498
template <class _Rp, class... _ArgTypes>

libcxx/include/regex

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5548,9 +5548,7 @@ public:
55485548

55495549
_LIBCPP_HIDE_FROM_ABI bool operator==(const regex_token_iterator& __x) const;
55505550
# if _LIBCPP_STD_VER >= 20
5551-
_LIBCPP_HIDE_FROM_ABI _LIBCPP_HIDE_FROM_ABI bool operator==(default_sentinel_t) const {
5552-
return *this == regex_token_iterator();
5553-
}
5551+
_LIBCPP_HIDE_FROM_ABI bool operator==(default_sentinel_t) const { return *this == regex_token_iterator(); }
55545552
# endif
55555553
# if _LIBCPP_STD_VER < 20
55565554
_LIBCPP_HIDE_FROM_ABI bool operator!=(const regex_token_iterator& __x) const { return !(*this == __x); }

0 commit comments

Comments
 (0)