summaryrefslogtreecommitdiffstats
path: root/libcxx/include/any
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2018-11-19 15:37:04 +0000
committerLouis Dionne <ldionne@apple.com>2018-11-19 15:37:04 +0000
commit8a063df19435af25eadd30734be1b76275cbb56b (patch)
tree7de98d729291dc7bc5d4a790cfea9618bdd3c4ca /libcxx/include/any
parent08c0a0ac58764944adf5b116c82c2bc98ac6df1a (diff)
downloadbcm5719-llvm-8a063df19435af25eadd30734be1b76275cbb56b.tar.gz
bcm5719-llvm-8a063df19435af25eadd30734be1b76275cbb56b.zip
[libcxx] Add availability markup for bad_optional_access, bad_variant_access and bad_any_cast
Reviewers: dexonsmith, EricWF Subscribers: christof, arphaman, libcxx-commits Differential Revision: https://reviews.llvm.org/D53256 llvm-svn: 347219
Diffstat (limited to 'libcxx/include/any')
-rw-r--r--libcxx/include/any6
1 files changed, 5 insertions, 1 deletions
diff --git a/libcxx/include/any b/libcxx/include/any
index e2945bdfa98..781eee7869c 100644
--- a/libcxx/include/any
+++ b/libcxx/include/any
@@ -94,7 +94,7 @@ namespace std {
#endif
namespace std {
-class _LIBCPP_EXCEPTION_ABI bad_any_cast : public bad_cast
+class _LIBCPP_EXCEPTION_ABI _LIBCPP_AVAILABILITY_BAD_ANY_CAST bad_any_cast : public bad_cast
{
public:
virtual const char* what() const _NOEXCEPT;
@@ -106,6 +106,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
#if _LIBCPP_STD_VER > 14
_LIBCPP_NORETURN inline _LIBCPP_INLINE_VISIBILITY
+_LIBCPP_AVAILABILITY_THROW_BAD_ANY_CAST
void __throw_bad_any_cast()
{
#ifndef _LIBCPP_NO_EXCEPTIONS
@@ -577,6 +578,7 @@ any make_any(initializer_list<_Up> __il, _Args&&... __args) {
template <class _ValueType>
inline _LIBCPP_INLINE_VISIBILITY
+_LIBCPP_AVAILABILITY_THROW_BAD_ANY_CAST
_ValueType any_cast(any const & __v)
{
using _RawValueType = __uncvref_t<_ValueType>;
@@ -591,6 +593,7 @@ _ValueType any_cast(any const & __v)
template <class _ValueType>
inline _LIBCPP_INLINE_VISIBILITY
+_LIBCPP_AVAILABILITY_THROW_BAD_ANY_CAST
_ValueType any_cast(any & __v)
{
using _RawValueType = __uncvref_t<_ValueType>;
@@ -605,6 +608,7 @@ _ValueType any_cast(any & __v)
template <class _ValueType>
inline _LIBCPP_INLINE_VISIBILITY
+_LIBCPP_AVAILABILITY_THROW_BAD_ANY_CAST
_ValueType any_cast(any && __v)
{
using _RawValueType = __uncvref_t<_ValueType>;
OpenPOWER on IntegriCloud