Index: libcxx/include/__config =================================================================== --- libcxx/include/__config +++ libcxx/include/__config @@ -983,18 +983,36 @@ # endif #endif // _LIBCPP_STD_VER +// Deprecation macros #if _LIBCPP_STD_VER > 11 -# define _LIBCPP_DEPRECATED [[deprecated]] +# define _LIBCPP_DEPRECATED __attribute__((deprecated)) #else # define _LIBCPP_DEPRECATED #endif +#if _LIBCPP_STD_VER >= 11 +# define _LIBCPP_DEPRECATED_IN_CXX11 __attribute__((deprecated)) +#else +# define _LIBCPP_DEPRECATED_IN_CXX11 +#endif + +#if _LIBCPP_STD_VER >= 14 +# define _LIBCPP_DEPRECATED_IN_CXX14 __attribute__((deprecated)) +#else +# define _LIBCPP_DEPRECATED_IN_CXX14 +#endif + +#if _LIBCPP_STD_VER >= 17 +# define _LIBCPP_DEPRECATED_IN_CXX17 __attribute__((deprecated)) +#else +# define _LIBCPP_DEPRECATED_IN_CXX17 +#endif + + #if _LIBCPP_STD_VER <= 11 # define _LIBCPP_EXPLICIT_AFTER_CXX11 -# define _LIBCPP_DEPRECATED_AFTER_CXX11 #else # define _LIBCPP_EXPLICIT_AFTER_CXX11 explicit -# define _LIBCPP_DEPRECATED_AFTER_CXX11 [[deprecated]] #endif #if _LIBCPP_STD_VER > 11 && !defined(_LIBCPP_HAS_NO_CXX14_CONSTEXPR) Index: libcxx/include/__functional_base =================================================================== --- libcxx/include/__functional_base +++ libcxx/include/__functional_base @@ -24,6 +24,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD +// TODO(ldionne): Mark this as deprecated in C++11 and remove in C++17. template struct _LIBCPP_TEMPLATE_VIS binary_function { Index: libcxx/include/algorithm =================================================================== --- libcxx/include/algorithm +++ libcxx/include/algorithm @@ -3080,7 +3080,7 @@ _LIBCPP_FUNC_VIS __rs_default __rs_get(); template -void +_LIBCPP_DEPRECATED_IN_CXX14 void random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last) { typedef typename iterator_traits<_RandomAccessIterator>::difference_type difference_type; @@ -3101,7 +3101,7 @@ } template -void +_LIBCPP_DEPRECATED_IN_CXX14 void random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, #ifndef _LIBCPP_CXX03_LANG _RandomNumberGenerator&& __rand) Index: libcxx/include/functional =================================================================== --- libcxx/include/functional +++ libcxx/include/functional @@ -18,14 +18,14 @@ { template -struct unary_function +struct unary_function // deprecated in C++14 and removed in C++17 { typedef Arg argument_type; typedef Result result_type; }; template -struct binary_function +struct binary_function // deprecated in C++14 and removed in C++17 { typedef Arg1 first_argument_type; typedef Arg2 second_argument_type; @@ -183,7 +183,7 @@ }; template -class unary_negate +class unary_negate // deprecated in C++17 : public unary_function { public: @@ -191,10 +191,11 @@ bool operator()(const typename Predicate::argument_type& x) const; }; -template unary_negate not1(const Predicate& pred); +template // deprecated in C++17 +unary_negate not1(const Predicate& pred); template -class binary_negate +class binary_negate // deprecated in C++17 : public binary_function @@ -205,7 +206,8 @@ const typename Predicate::second_argument_type& y) const; }; -template binary_negate not2(const Predicate& pred); +template // deprecated in C++17 +binary_negate not2(const Predicate& pred); template unspecified not_fn(F&& f); // C++17 @@ -980,7 +982,7 @@ #endif template -class _LIBCPP_TEMPLATE_VIS unary_negate +class _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_TEMPLATE_VIS unary_negate : public unary_function { _Predicate __pred_; @@ -994,12 +996,12 @@ }; template -inline _LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY +inline _LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY _LIBCPP_DEPRECATED_IN_CXX17 unary_negate<_Predicate> not1(const _Predicate& __pred) {return unary_negate<_Predicate>(__pred);} template -class _LIBCPP_TEMPLATE_VIS binary_negate +class _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_TEMPLATE_VIS binary_negate : public binary_function @@ -1016,13 +1018,13 @@ }; template -inline _LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY +inline _LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY _LIBCPP_DEPRECATED_IN_CXX17 binary_negate<_Predicate> not2(const _Predicate& __pred) {return binary_negate<_Predicate>(__pred);} #if _LIBCPP_STD_VER <= 14 || defined(_LIBCPP_ENABLE_CXX17_REMOVED_BINDERS) template -class _LIBCPP_TEMPLATE_VIS binder1st +class _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_TEMPLATE_VIS binder1st : public unary_function { @@ -1042,13 +1044,13 @@ }; template -inline _LIBCPP_INLINE_VISIBILITY +inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_DEPRECATED_IN_CXX11 binder1st<__Operation> bind1st(const __Operation& __op, const _Tp& __x) {return binder1st<__Operation>(__op, __x);} template -class _LIBCPP_TEMPLATE_VIS binder2nd +class _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_TEMPLATE_VIS binder2nd : public unary_function { @@ -1068,13 +1070,13 @@ }; template -inline _LIBCPP_INLINE_VISIBILITY +inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_DEPRECATED_IN_CXX11 binder2nd<__Operation> bind2nd(const __Operation& __op, const _Tp& __x) {return binder2nd<__Operation>(__op, __x);} template -class _LIBCPP_TEMPLATE_VIS pointer_to_unary_function +class _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_TEMPLATE_VIS pointer_to_unary_function : public unary_function<_Arg, _Result> { _Result (*__f_)(_Arg); @@ -1086,13 +1088,13 @@ }; template -inline _LIBCPP_INLINE_VISIBILITY +inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_DEPRECATED_IN_CXX11 pointer_to_unary_function<_Arg,_Result> ptr_fun(_Result (*__f)(_Arg)) {return pointer_to_unary_function<_Arg,_Result>(__f);} template -class _LIBCPP_TEMPLATE_VIS pointer_to_binary_function +class _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_TEMPLATE_VIS pointer_to_binary_function : public binary_function<_Arg1, _Arg2, _Result> { _Result (*__f_)(_Arg1, _Arg2); @@ -1104,13 +1106,14 @@ }; template -inline _LIBCPP_INLINE_VISIBILITY +inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_DEPRECATED_IN_CXX11 pointer_to_binary_function<_Arg1,_Arg2,_Result> ptr_fun(_Result (*__f)(_Arg1,_Arg2)) {return pointer_to_binary_function<_Arg1,_Arg2,_Result>(__f);} template -class _LIBCPP_TEMPLATE_VIS mem_fun_t : public unary_function<_Tp*, _Sp> +class _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_TEMPLATE_VIS mem_fun_t + : public unary_function<_Tp*, _Sp> { _Sp (_Tp::*__p_)(); public: @@ -1121,7 +1124,8 @@ }; template -class _LIBCPP_TEMPLATE_VIS mem_fun1_t : public binary_function<_Tp*, _Ap, _Sp> +class _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_TEMPLATE_VIS mem_fun1_t + : public binary_function<_Tp*, _Ap, _Sp> { _Sp (_Tp::*__p_)(_Ap); public: @@ -1132,19 +1136,20 @@ }; template -inline _LIBCPP_INLINE_VISIBILITY +inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_DEPRECATED_IN_CXX11 mem_fun_t<_Sp,_Tp> mem_fun(_Sp (_Tp::*__f)()) {return mem_fun_t<_Sp,_Tp>(__f);} template -inline _LIBCPP_INLINE_VISIBILITY +inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_DEPRECATED_IN_CXX11 mem_fun1_t<_Sp,_Tp,_Ap> mem_fun(_Sp (_Tp::*__f)(_Ap)) {return mem_fun1_t<_Sp,_Tp,_Ap>(__f);} template -class _LIBCPP_TEMPLATE_VIS mem_fun_ref_t : public unary_function<_Tp, _Sp> +class _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_TEMPLATE_VIS mem_fun_ref_t + : public unary_function<_Tp, _Sp> { _Sp (_Tp::*__p_)(); public: @@ -1155,7 +1160,8 @@ }; template -class _LIBCPP_TEMPLATE_VIS mem_fun1_ref_t : public binary_function<_Tp, _Ap, _Sp> +class _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_TEMPLATE_VIS mem_fun1_ref_t + : public binary_function<_Tp, _Ap, _Sp> { _Sp (_Tp::*__p_)(_Ap); public: @@ -1166,19 +1172,20 @@ }; template -inline _LIBCPP_INLINE_VISIBILITY +inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_DEPRECATED_IN_CXX11 mem_fun_ref_t<_Sp,_Tp> mem_fun_ref(_Sp (_Tp::*__f)()) {return mem_fun_ref_t<_Sp,_Tp>(__f);} template -inline _LIBCPP_INLINE_VISIBILITY +inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_DEPRECATED_IN_CXX11 mem_fun1_ref_t<_Sp,_Tp,_Ap> mem_fun_ref(_Sp (_Tp::*__f)(_Ap)) {return mem_fun1_ref_t<_Sp,_Tp,_Ap>(__f);} template -class _LIBCPP_TEMPLATE_VIS const_mem_fun_t : public unary_function +class _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_TEMPLATE_VIS const_mem_fun_t + : public unary_function { _Sp (_Tp::*__p_)() const; public: @@ -1189,7 +1196,8 @@ }; template -class _LIBCPP_TEMPLATE_VIS const_mem_fun1_t : public binary_function +class _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_TEMPLATE_VIS const_mem_fun1_t + : public binary_function { _Sp (_Tp::*__p_)(_Ap) const; public: @@ -1200,19 +1208,20 @@ }; template -inline _LIBCPP_INLINE_VISIBILITY +inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_DEPRECATED_IN_CXX11 const_mem_fun_t<_Sp,_Tp> mem_fun(_Sp (_Tp::*__f)() const) {return const_mem_fun_t<_Sp,_Tp>(__f);} template -inline _LIBCPP_INLINE_VISIBILITY +inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_DEPRECATED_IN_CXX11 const_mem_fun1_t<_Sp,_Tp,_Ap> mem_fun(_Sp (_Tp::*__f)(_Ap) const) {return const_mem_fun1_t<_Sp,_Tp,_Ap>(__f);} template -class _LIBCPP_TEMPLATE_VIS const_mem_fun_ref_t : public unary_function<_Tp, _Sp> +class _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_TEMPLATE_VIS const_mem_fun_ref_t + : public unary_function<_Tp, _Sp> { _Sp (_Tp::*__p_)() const; public: @@ -1223,7 +1232,7 @@ }; template -class _LIBCPP_TEMPLATE_VIS const_mem_fun1_ref_t +class _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_TEMPLATE_VIS const_mem_fun1_ref_t : public binary_function<_Tp, _Ap, _Sp> { _Sp (_Tp::*__p_)(_Ap) const; @@ -1235,13 +1244,13 @@ }; template -inline _LIBCPP_INLINE_VISIBILITY +inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_DEPRECATED_IN_CXX11 const_mem_fun_ref_t<_Sp,_Tp> mem_fun_ref(_Sp (_Tp::*__f)() const) {return const_mem_fun_ref_t<_Sp,_Tp>(__f);} template -inline _LIBCPP_INLINE_VISIBILITY +inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_DEPRECATED_IN_CXX11 const_mem_fun1_ref_t<_Sp,_Tp,_Ap> mem_fun_ref(_Sp (_Tp::*__f)(_Ap) const) {return const_mem_fun1_ref_t<_Sp,_Tp,_Ap>(__f);} Index: libcxx/include/memory =================================================================== --- libcxx/include/memory +++ libcxx/include/memory @@ -212,10 +212,10 @@ template ForwardIterator uninitialized_default_construct_n(ForwardIterator first, Size n); -template struct auto_ptr_ref {}; // removed in C++17 +template struct auto_ptr_ref {}; // deprecated in C++11, removed in C++17 template -class auto_ptr // removed in C++17 +class auto_ptr // deprecated in C++11, removed in C++17 { public: typedef X element_type; @@ -2056,13 +2056,13 @@ #if _LIBCPP_STD_VER <= 14 || defined(_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR) template -struct auto_ptr_ref +struct _LIBCPP_DEPRECATED_IN_CXX11 auto_ptr_ref { _Tp* __ptr_; }; template -class _LIBCPP_TEMPLATE_VIS auto_ptr +class _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_TEMPLATE_VIS auto_ptr { private: _Tp* __ptr_; @@ -2106,7 +2106,7 @@ }; template <> -class _LIBCPP_TEMPLATE_VIS auto_ptr +class _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_TEMPLATE_VIS auto_ptr { public: typedef void element_type; Index: libcxx/include/utility =================================================================== --- libcxx/include/utility +++ libcxx/include/utility @@ -934,6 +934,7 @@ #endif // _LIBCPP_STD_VER > 14 +// TODO(ldionne): Mark this as deprecated in C++11 and remove in C++17. template struct _LIBCPP_TEMPLATE_VIS unary_function { Index: libcxx/test/libcxx/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.cxx1z.pass.cpp =================================================================== --- libcxx/test/libcxx/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.cxx1z.pass.cpp +++ libcxx/test/libcxx/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.cxx1z.pass.cpp @@ -23,6 +23,10 @@ // However, for backwards compatibility, if _LIBCPP_ENABLE_CXX17_REMOVED_RANDOM_SHUFFLE // is defined before including , then random_shuffle will be restored. +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + // MODULES_DEFINES: _LIBCPP_ENABLE_CXX17_REMOVED_RANDOM_SHUFFLE #define _LIBCPP_ENABLE_CXX17_REMOVED_RANDOM_SHUFFLE Index: libcxx/test/libcxx/depr/depr.auto.ptr/auto.ptr/auto_ptr.cxx1z.pass.cpp =================================================================== --- libcxx/test/libcxx/depr/depr.auto.ptr/auto.ptr/auto_ptr.cxx1z.pass.cpp +++ libcxx/test/libcxx/depr/depr.auto.ptr/auto.ptr/auto_ptr.cxx1z.pass.cpp @@ -18,6 +18,10 @@ // MODULES_DEFINES: _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #define _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR #include Index: libcxx/test/libcxx/depr/depr.function.objects/depr.adaptors.cxx1z.pass.cpp =================================================================== --- libcxx/test/libcxx/depr/depr.function.objects/depr.adaptors.cxx1z.pass.cpp +++ libcxx/test/libcxx/depr/depr.function.objects/depr.adaptors.cxx1z.pass.cpp @@ -14,6 +14,10 @@ // However, for backwards compatibility, if _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS // is defined before including , then they will be restored. +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + // MODULES_DEFINES: _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS #define _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS Index: libcxx/test/std/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.pass.cpp =================================================================== --- libcxx/test/std/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.pass.cpp +++ libcxx/test/std/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.pass.cpp @@ -15,6 +15,10 @@ // void // random_shuffle(Iter first, Iter last); +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include Index: libcxx/test/std/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle_rand.pass.cpp =================================================================== --- libcxx/test/std/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle_rand.pass.cpp +++ libcxx/test/std/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle_rand.pass.cpp @@ -16,6 +16,10 @@ // void // random_shuffle(Iter first, Iter last, Rand&& rand); +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include #include Index: libcxx/test/std/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle_urng.pass.cpp =================================================================== --- libcxx/test/std/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle_urng.pass.cpp +++ libcxx/test/std/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle_urng.pass.cpp @@ -13,6 +13,10 @@ // void shuffle(RandomAccessIterator first, RandomAccessIterator last, // UniformRandomNumberGenerator& g); +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include #include Index: libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/assignment.fail.cpp =================================================================== --- libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/assignment.fail.cpp +++ libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/assignment.fail.cpp @@ -13,6 +13,10 @@ // auto_ptr& operator=(auto_ptr& a) throw(); +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include Index: libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/assignment.pass.cpp =================================================================== --- libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/assignment.pass.cpp +++ libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/assignment.pass.cpp @@ -15,6 +15,10 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include Index: libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/convert.fail.cpp =================================================================== --- libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/convert.fail.cpp +++ libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/convert.fail.cpp @@ -13,6 +13,10 @@ // auto_ptr(auto_ptr& a) throw(); +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include Index: libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/convert.pass.cpp =================================================================== --- libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/convert.pass.cpp +++ libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/convert.pass.cpp @@ -15,6 +15,10 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include Index: libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/convert_assignment.fail.cpp =================================================================== --- libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/convert_assignment.fail.cpp +++ libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/convert_assignment.fail.cpp @@ -13,6 +13,10 @@ // template auto_ptr& operator=(auto_ptr& a) throw(); +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include Index: libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/convert_assignment.pass.cpp =================================================================== --- libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/convert_assignment.pass.cpp +++ libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/convert_assignment.pass.cpp @@ -15,6 +15,10 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include Index: libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/copy.fail.cpp =================================================================== --- libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/copy.fail.cpp +++ libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/copy.fail.cpp @@ -13,6 +13,10 @@ // auto_ptr(auto_ptr& a) throw(); +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include Index: libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/copy.pass.cpp =================================================================== --- libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/copy.pass.cpp +++ libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/copy.pass.cpp @@ -15,6 +15,10 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include Index: libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/explicit.fail.cpp =================================================================== --- libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/explicit.fail.cpp +++ libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/explicit.fail.cpp @@ -13,6 +13,10 @@ // explicit auto_ptr(X* p =0) throw(); +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include Index: libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/pointer.pass.cpp =================================================================== --- libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/pointer.pass.cpp +++ libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/pointer.pass.cpp @@ -15,6 +15,10 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include Index: libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/assign_from_auto_ptr_ref.pass.cpp =================================================================== --- libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/assign_from_auto_ptr_ref.pass.cpp +++ libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/assign_from_auto_ptr_ref.pass.cpp @@ -15,6 +15,10 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include Index: libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/convert_from_auto_ptr_ref.pass.cpp =================================================================== --- libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/convert_from_auto_ptr_ref.pass.cpp +++ libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/convert_from_auto_ptr_ref.pass.cpp @@ -15,6 +15,10 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include Index: libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/convert_to_auto_ptr.pass.cpp =================================================================== --- libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/convert_to_auto_ptr.pass.cpp +++ libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/convert_to_auto_ptr.pass.cpp @@ -15,6 +15,10 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include Index: libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/convert_to_auto_ptr_ref.pass.cpp =================================================================== --- libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/convert_to_auto_ptr_ref.pass.cpp +++ libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/convert_to_auto_ptr_ref.pass.cpp @@ -15,6 +15,10 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include Index: libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/arrow.pass.cpp =================================================================== --- libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/arrow.pass.cpp +++ libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/arrow.pass.cpp @@ -15,6 +15,10 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include Index: libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/deref.pass.cpp =================================================================== --- libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/deref.pass.cpp +++ libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/deref.pass.cpp @@ -15,6 +15,10 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include Index: libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/release.pass.cpp =================================================================== --- libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/release.pass.cpp +++ libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/release.pass.cpp @@ -13,6 +13,10 @@ // X* release() throw(); +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include Index: libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/reset.pass.cpp =================================================================== --- libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/reset.pass.cpp +++ libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/reset.pass.cpp @@ -13,6 +13,10 @@ // void reset(X* p=0) throw(); +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include Index: libcxx/test/std/depr/depr.auto.ptr/auto.ptr/element_type.pass.cpp =================================================================== --- libcxx/test/std/depr/depr.auto.ptr/auto.ptr/element_type.pass.cpp +++ libcxx/test/std/depr/depr.auto.ptr/auto.ptr/element_type.pass.cpp @@ -19,6 +19,10 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include Index: libcxx/test/std/utilities/function.objects/negators/binary_negate.pass.cpp =================================================================== --- libcxx/test/std/utilities/function.objects/negators/binary_negate.pass.cpp +++ libcxx/test/std/utilities/function.objects/negators/binary_negate.pass.cpp @@ -11,6 +11,10 @@ // binary_negate +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include #include Index: libcxx/test/std/utilities/function.objects/negators/not1.pass.cpp =================================================================== --- libcxx/test/std/utilities/function.objects/negators/not1.pass.cpp +++ libcxx/test/std/utilities/function.objects/negators/not1.pass.cpp @@ -11,6 +11,10 @@ // not1 +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include Index: libcxx/test/std/utilities/function.objects/negators/not2.pass.cpp =================================================================== --- libcxx/test/std/utilities/function.objects/negators/not2.pass.cpp +++ libcxx/test/std/utilities/function.objects/negators/not2.pass.cpp @@ -11,6 +11,10 @@ // not2 +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include Index: libcxx/test/std/utilities/function.objects/negators/unary_negate.pass.cpp =================================================================== --- libcxx/test/std/utilities/function.objects/negators/unary_negate.pass.cpp +++ libcxx/test/std/utilities/function.objects/negators/unary_negate.pass.cpp @@ -11,6 +11,10 @@ // unary_negate +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include #include