Index: libcxx/trunk/docs/UsingLibcxx.rst =================================================================== --- libcxx/trunk/docs/UsingLibcxx.rst +++ libcxx/trunk/docs/UsingLibcxx.rst @@ -242,11 +242,11 @@ purely as an extension. See :ref:`Extended Applications of [[nodiscard]] ` for more information. -**_LIBCPP_ENABLE_DEPRECATION_WARNINGS**: - This macro enables warnings when using deprecated components. For example, - when compiling in C++11 mode, using `std::auto_ptr` with the macro defined - will trigger a warning saying that `std::auto_ptr` is deprecated. By default, - this macro is not defined. +**_LIBCPP_DISABLE_DEPRECATION_WARNINGS**: + This macro disables warnings when using deprecated components. For example, + using `std::auto_ptr` when compiling in C++11 mode will normally trigger a + warning saying that `std::auto_ptr` is deprecated. If the macro is defined, + no warning will be emitted. By default, this macro is not defined. C++17 Specific Configuration Macros ----------------------------------- Index: libcxx/trunk/include/__config =================================================================== --- libcxx/trunk/include/__config +++ libcxx/trunk/include/__config @@ -1029,8 +1029,10 @@ #endif // Deprecation macros. -// Deprecations warnings are only enabled when _LIBCPP_ENABLE_DEPRECATION_WARNINGS is defined. -#if defined(_LIBCPP_ENABLE_DEPRECATION_WARNINGS) +// +// Deprecations warnings are always enabled, except when users explicitly opt-out +// by defining _LIBCPP_DISABLE_DEPRECATION_WARNINGS. +#if !defined(_LIBCPP_DISABLE_DEPRECATION_WARNINGS) # if __has_attribute(deprecated) # define _LIBCPP_DEPRECATED __attribute__ ((deprecated)) # elif _LIBCPP_STD_VER > 11 Index: libcxx/trunk/test/libcxx/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.cxx1z.pass.cpp =================================================================== --- libcxx/trunk/test/libcxx/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.cxx1z.pass.cpp +++ libcxx/trunk/test/libcxx/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.cxx1z.pass.cpp @@ -26,6 +26,7 @@ // MODULES_DEFINES: _LIBCPP_ENABLE_CXX17_REMOVED_RANDOM_SHUFFLE #define _LIBCPP_ENABLE_CXX17_REMOVED_RANDOM_SHUFFLE +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS #include #include Index: libcxx/trunk/test/libcxx/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.depr_in_cxx14.fail.cpp =================================================================== --- libcxx/trunk/test/libcxx/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.depr_in_cxx14.fail.cpp +++ libcxx/trunk/test/libcxx/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.depr_in_cxx14.fail.cpp @@ -21,9 +21,7 @@ // UNSUPPORTED: c++98, c++03, c++11 // REQUIRES: verify-support -// MODULES_DEFINES: _LIBCPP_ENABLE_DEPRECATION_WARNINGS // MODULES_DEFINES: _LIBCPP_ENABLE_CXX17_REMOVED_RANDOM_SHUFFLE -#define _LIBCPP_ENABLE_DEPRECATION_WARNINGS #define _LIBCPP_ENABLE_CXX17_REMOVED_RANDOM_SHUFFLE #include Index: libcxx/trunk/test/libcxx/depr/depr.auto.ptr/auto.ptr/auto_ptr.cxx1z.pass.cpp =================================================================== --- libcxx/trunk/test/libcxx/depr/depr.auto.ptr/auto.ptr/auto_ptr.cxx1z.pass.cpp +++ libcxx/trunk/test/libcxx/depr/depr.auto.ptr/auto.ptr/auto_ptr.cxx1z.pass.cpp @@ -16,8 +16,8 @@ // is defined before including , then auto_ptr will be restored. // MODULES_DEFINES: _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR - #define _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS #include #include Index: libcxx/trunk/test/libcxx/depr/depr.auto.ptr/auto.ptr/auto_ptr.depr_in_cxx11.fail.cpp =================================================================== --- libcxx/trunk/test/libcxx/depr/depr.auto.ptr/auto.ptr/auto_ptr.depr_in_cxx11.fail.cpp +++ libcxx/trunk/test/libcxx/depr/depr.auto.ptr/auto.ptr/auto_ptr.depr_in_cxx11.fail.cpp @@ -22,9 +22,7 @@ // UNSUPPORTED: c++98, c++03 // REQUIRES: verify-support -// MODULES_DEFINES: _LIBCPP_ENABLE_DEPRECATION_WARNINGS // MODULES_DEFINES: _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR -#define _LIBCPP_ENABLE_DEPRECATION_WARNINGS #define _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR #include Index: libcxx/trunk/test/libcxx/depr/depr.function.objects/adaptors.depr_in_cxx11.fail.cpp =================================================================== --- libcxx/trunk/test/libcxx/depr/depr.function.objects/adaptors.depr_in_cxx11.fail.cpp +++ libcxx/trunk/test/libcxx/depr/depr.function.objects/adaptors.depr_in_cxx11.fail.cpp @@ -12,9 +12,7 @@ // UNSUPPORTED: c++98, c++03 // REQUIRES: verify-support -// MODULES_DEFINES: _LIBCPP_ENABLE_DEPRECATION_WARNINGS // MODULES_DEFINES: _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS -#define _LIBCPP_ENABLE_DEPRECATION_WARNINGS #define _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS #include Index: libcxx/trunk/test/libcxx/depr/depr.function.objects/depr.adaptors.cxx1z.pass.cpp =================================================================== --- libcxx/trunk/test/libcxx/depr/depr.function.objects/depr.adaptors.cxx1z.pass.cpp +++ libcxx/trunk/test/libcxx/depr/depr.function.objects/depr.adaptors.cxx1z.pass.cpp @@ -15,6 +15,7 @@ // MODULES_DEFINES: _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS #define _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS #include #include Index: libcxx/trunk/test/std/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.pass.cpp =================================================================== --- libcxx/trunk/test/std/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.pass.cpp +++ libcxx/trunk/test/std/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.pass.cpp @@ -14,6 +14,8 @@ // void // random_shuffle(Iter first, Iter last); +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle_rand.pass.cpp =================================================================== --- libcxx/trunk/test/std/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle_rand.pass.cpp +++ libcxx/trunk/test/std/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle_rand.pass.cpp @@ -15,6 +15,8 @@ // void // random_shuffle(Iter first, Iter last, Rand&& rand); +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/assignment.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/assignment.pass.cpp +++ libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/assignment.pass.cpp @@ -14,6 +14,8 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/convert.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/convert.pass.cpp +++ libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/convert.pass.cpp @@ -14,6 +14,8 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/convert_assignment.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/convert_assignment.fail.cpp +++ libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/convert_assignment.fail.cpp @@ -12,6 +12,8 @@ // template auto_ptr& operator=(auto_ptr& a) throw(); +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/convert_assignment.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/convert_assignment.pass.cpp +++ libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/convert_assignment.pass.cpp @@ -14,6 +14,8 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/copy.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/copy.fail.cpp +++ libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/copy.fail.cpp @@ -12,6 +12,8 @@ // auto_ptr(auto_ptr& a) throw(); +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/copy.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/copy.pass.cpp +++ libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/copy.pass.cpp @@ -14,6 +14,8 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/explicit.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/explicit.fail.cpp +++ libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/explicit.fail.cpp @@ -12,6 +12,8 @@ // explicit auto_ptr(X* p =0) throw(); +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/pointer.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/pointer.pass.cpp +++ libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/pointer.pass.cpp @@ -14,6 +14,8 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/assign_from_auto_ptr_ref.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/assign_from_auto_ptr_ref.pass.cpp +++ libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/assign_from_auto_ptr_ref.pass.cpp @@ -14,6 +14,8 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/convert_from_auto_ptr_ref.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/convert_from_auto_ptr_ref.pass.cpp +++ libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/convert_from_auto_ptr_ref.pass.cpp @@ -14,6 +14,8 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/convert_to_auto_ptr.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/convert_to_auto_ptr.pass.cpp +++ libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/convert_to_auto_ptr.pass.cpp @@ -14,6 +14,8 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/convert_to_auto_ptr_ref.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/convert_to_auto_ptr_ref.pass.cpp +++ libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/convert_to_auto_ptr_ref.pass.cpp @@ -14,6 +14,8 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/arrow.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/arrow.pass.cpp +++ libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/arrow.pass.cpp @@ -14,6 +14,8 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/deref.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/deref.pass.cpp +++ libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/deref.pass.cpp @@ -14,6 +14,8 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/release.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/release.pass.cpp +++ libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/release.pass.cpp @@ -12,11 +12,13 @@ // X* release() throw(); +// REQUIRES: c++98 || c++03 || c++11 || c++14 + +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include -// REQUIRES: c++98 || c++03 || c++11 || c++14 - #include "../A.h" void Index: libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/reset.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/reset.pass.cpp +++ libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.members/reset.pass.cpp @@ -12,11 +12,13 @@ // void reset(X* p=0) throw(); +// REQUIRES: c++98 || c++03 || c++11 || c++14 + +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include -// REQUIRES: c++98 || c++03 || c++11 || c++14 - #include "../A.h" void Index: libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/element_type.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/element_type.pass.cpp +++ libcxx/trunk/test/std/depr/depr.auto.ptr/auto.ptr/element_type.pass.cpp @@ -18,6 +18,8 @@ // REQUIRES: c++98 || c++03 || c++11 || c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/pointer_to_binary_function.cxx1z.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/pointer_to_binary_function.cxx1z.fail.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/pointer_to_binary_function.cxx1z.fail.cpp @@ -10,6 +10,8 @@ // pointer_to_binary_function // UNSUPPORTED: c++98, c++03, c++11, c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/pointer_to_binary_function.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/pointer_to_binary_function.pass.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/pointer_to_binary_function.pass.cpp @@ -11,6 +11,8 @@ // pointer_to_binary_function +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/pointer_to_unary_function.cxx1z.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/pointer_to_unary_function.cxx1z.fail.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/pointer_to_unary_function.cxx1z.fail.cpp @@ -10,6 +10,8 @@ // pointer_to_unary_function // UNSUPPORTED: c++98, c++03, c++11, c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/pointer_to_unary_function.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/pointer_to_unary_function.pass.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/pointer_to_unary_function.pass.cpp @@ -11,6 +11,8 @@ // pointer_to_unary_function +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/ptr_fun1.cxx1z.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/ptr_fun1.cxx1z.fail.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/ptr_fun1.cxx1z.fail.cpp @@ -13,6 +13,8 @@ // ptr_fun(Result (*f)(Arg)); // UNSUPPORTED: c++98, c++03, c++11, c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/ptr_fun1.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/ptr_fun1.pass.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/ptr_fun1.pass.cpp @@ -13,6 +13,8 @@ // pointer_to_unary_function // ptr_fun(Result (*f)(Arg)); +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/ptr_fun2.cxx1z.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/ptr_fun2.cxx1z.fail.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/ptr_fun2.cxx1z.fail.cpp @@ -13,6 +13,8 @@ // ptr_fun(Result (*f)(Arg1, Arg2)); // UNSUPPORTED: c++98, c++03, c++11, c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/ptr_fun2.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/ptr_fun2.pass.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/ptr_fun2.pass.cpp @@ -13,6 +13,8 @@ // pointer_to_binary_function // ptr_fun(Result (*f)(Arg1, Arg2)); +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun.cxx1z.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun.cxx1z.fail.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun.cxx1z.fail.cpp @@ -14,6 +14,8 @@ // Removed in c++17 // UNSUPPORTED: c++98, c++03, c++11, c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun.pass.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun.pass.cpp @@ -13,6 +13,8 @@ // const_mem_fun_t // mem_fun(S (T::*f)() const); +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun1.cxx1z.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun1.cxx1z.fail.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun1.cxx1z.fail.cpp @@ -14,6 +14,8 @@ // Removed in c++17 // UNSUPPORTED: c++98, c++03, c++11, c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun1.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun1.pass.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun1.pass.cpp @@ -13,6 +13,8 @@ // const_mem_fun1_t // mem_fun(S (T::*f)(A) const); +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun1_ref_t.cxx1z.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun1_ref_t.cxx1z.fail.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun1_ref_t.cxx1z.fail.cpp @@ -12,6 +12,8 @@ // Removed in c++17 // UNSUPPORTED: c++98, c++03, c++11, c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun1_ref_t.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun1_ref_t.pass.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun1_ref_t.pass.cpp @@ -11,6 +11,8 @@ // const_mem_fun1_ref_t +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun1_t.cxx1z.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun1_t.cxx1z.fail.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun1_t.cxx1z.fail.cpp @@ -12,6 +12,8 @@ // Removed in c++17 // UNSUPPORTED: c++98, c++03, c++11, c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun1_t.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun1_t.pass.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun1_t.pass.cpp @@ -11,6 +11,8 @@ // const_mem_fun1_t +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_ref.cxx1z.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_ref.cxx1z.fail.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_ref.cxx1z.fail.cpp @@ -14,6 +14,8 @@ // Removed in c++17 // UNSUPPORTED: c++98, c++03, c++11, c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_ref.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_ref.pass.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_ref.pass.cpp @@ -13,6 +13,8 @@ // const_mem_fun_ref_t // mem_fun_ref(S (T::*f)() const); +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_ref1.cxx1z.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_ref1.cxx1z.fail.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_ref1.cxx1z.fail.cpp @@ -14,6 +14,8 @@ // Removed in c++17 // UNSUPPORTED: c++98, c++03, c++11, c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_ref1.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_ref1.pass.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_ref1.pass.cpp @@ -13,6 +13,8 @@ // const_mem_fun1_ref_t // mem_fun_ref(S (T::*f)(A) const); +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_ref_t.cxx1z.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_ref_t.cxx1z.fail.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_ref_t.cxx1z.fail.cpp @@ -12,6 +12,8 @@ // Removed in c++17 // UNSUPPORTED: c++98, c++03, c++11, c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_ref_t.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_ref_t.pass.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_ref_t.pass.cpp @@ -11,6 +11,8 @@ // const_mem_fun_ref_t +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_t.cxx1z.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_t.cxx1z.fail.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_t.cxx1z.fail.cpp @@ -12,6 +12,8 @@ // Removed in c++17 // UNSUPPORTED: c++98, c++03, c++11, c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_t.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_t.pass.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/const_mem_fun_t.pass.cpp @@ -11,6 +11,8 @@ // const_mem_fun_t +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun.cxx1z.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun.cxx1z.fail.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun.cxx1z.fail.cpp @@ -14,6 +14,8 @@ // Removed in c++17 // UNSUPPORTED: c++98, c++03, c++11, c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun.pass.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun.pass.cpp @@ -13,6 +13,8 @@ // mem_fun_t // mem_fun(S (T::*f)()); +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun1.cxx1z.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun1.cxx1z.fail.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun1.cxx1z.fail.cpp @@ -14,6 +14,8 @@ // Removed in c++17 // UNSUPPORTED: c++98, c++03, c++11, c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun1.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun1.pass.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun1.pass.cpp @@ -13,6 +13,8 @@ // mem_fun1_t // mem_fun(S (T::*f)(A)); +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun1_ref_t.cxx1z.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun1_ref_t.cxx1z.fail.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun1_ref_t.cxx1z.fail.cpp @@ -12,6 +12,8 @@ // Removed in c++17 // UNSUPPORTED: c++98, c++03, c++11, c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun1_ref_t.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun1_ref_t.pass.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun1_ref_t.pass.cpp @@ -11,6 +11,8 @@ // mem_fun1_ref_t +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun1_t.cxx1z.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun1_t.cxx1z.fail.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun1_t.cxx1z.fail.cpp @@ -12,6 +12,8 @@ // Removed in c++17 // UNSUPPORTED: c++98, c++03, c++11, c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun1_t.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun1_t.pass.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun1_t.pass.cpp @@ -11,6 +11,8 @@ // mem_fun1_t +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_ref.cxx1z.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_ref.cxx1z.fail.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_ref.cxx1z.fail.cpp @@ -14,6 +14,8 @@ // Removed in c++17 // UNSUPPORTED: c++98, c++03, c++11, c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_ref.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_ref.pass.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_ref.pass.cpp @@ -13,6 +13,8 @@ // mem_fun_ref_t // mem_fun_ref(S (T::*f)()); +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_ref1.cxx1z.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_ref1.cxx1z.fail.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_ref1.cxx1z.fail.cpp @@ -14,6 +14,8 @@ // Removed in c++17 // UNSUPPORTED: c++98, c++03, c++11, c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_ref1.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_ref1.pass.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_ref1.pass.cpp @@ -13,6 +13,8 @@ // mem_fun1_ref_t // mem_fun_ref(S (T::*f)(A)); +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_ref_t.cxx1z.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_ref_t.cxx1z.fail.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_ref_t.cxx1z.fail.cpp @@ -12,6 +12,8 @@ // Removed in c++17 // UNSUPPORTED: c++98, c++03, c++11, c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_ref_t.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_ref_t.pass.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_ref_t.pass.cpp @@ -11,6 +11,8 @@ // mem_fun_ref_t +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_t.cxx1z.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_t.cxx1z.fail.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_t.cxx1z.fail.cpp @@ -12,6 +12,8 @@ // Removed in c++17 // UNSUPPORTED: c++98, c++03, c++11, c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_t.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_t.pass.cpp +++ libcxx/trunk/test/std/depr/depr.function.objects/depr.adaptors/depr.member.pointer.adaptors/mem_fun_t.pass.cpp @@ -11,6 +11,8 @@ // mem_fun_t +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.bind.1st/bind1st.depr_in_cxx11.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.bind.1st/bind1st.depr_in_cxx11.fail.cpp +++ libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.bind.1st/bind1st.depr_in_cxx11.fail.cpp @@ -14,9 +14,7 @@ // UNSUPPORTED: c++98, c++03 // REQUIRES: verify-support -// MODULES_DEFINES: _LIBCPP_ENABLE_DEPRECATION_WARNINGS // MODULES_DEFINES: _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS -#define _LIBCPP_ENABLE_DEPRECATION_WARNINGS #define _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS #include Index: libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.bind.1st/bind1st.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.bind.1st/bind1st.pass.cpp +++ libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.bind.1st/bind1st.pass.cpp @@ -13,6 +13,8 @@ // binder1st // bind1st(const Fn& fn, const T& x); +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.bind.2nd/bind2nd.depr_in_cxx11.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.bind.2nd/bind2nd.depr_in_cxx11.fail.cpp +++ libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.bind.2nd/bind2nd.depr_in_cxx11.fail.cpp @@ -14,9 +14,7 @@ // UNSUPPORTED: c++98, c++03 // REQUIRES: verify-support -// MODULES_DEFINES: _LIBCPP_ENABLE_DEPRECATION_WARNINGS // MODULES_DEFINES: _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS -#define _LIBCPP_ENABLE_DEPRECATION_WARNINGS #define _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS #include Index: libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.bind.2nd/bind2nd.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.bind.2nd/bind2nd.pass.cpp +++ libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.bind.2nd/bind2nd.pass.cpp @@ -13,6 +13,8 @@ // binder2nd // bind2nd(const Fn& op, const T& x); +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.binder.1st/binder1st.depr_in_cxx11.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.binder.1st/binder1st.depr_in_cxx11.fail.cpp +++ libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.binder.1st/binder1st.depr_in_cxx11.fail.cpp @@ -14,9 +14,7 @@ // UNSUPPORTED: c++98, c++03 // REQUIRES: verify-support -// MODULES_DEFINES: _LIBCPP_ENABLE_DEPRECATION_WARNINGS // MODULES_DEFINES: _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS -#define _LIBCPP_ENABLE_DEPRECATION_WARNINGS #define _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS #include Index: libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.binder.1st/binder1st.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.binder.1st/binder1st.pass.cpp +++ libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.binder.1st/binder1st.pass.cpp @@ -23,6 +23,8 @@ // typename Fn::result_type operator()(typename Fn::first_argument_type& x) const; // }; +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.binder.2nd/binder2nd.depr_in_cxx11.fail.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.binder.2nd/binder2nd.depr_in_cxx11.fail.cpp +++ libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.binder.2nd/binder2nd.depr_in_cxx11.fail.cpp @@ -14,9 +14,7 @@ // UNSUPPORTED: c++98, c++03 // REQUIRES: verify-support -// MODULES_DEFINES: _LIBCPP_ENABLE_DEPRECATION_WARNINGS // MODULES_DEFINES: _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS -#define _LIBCPP_ENABLE_DEPRECATION_WARNINGS #define _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS #include Index: libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.binder.2nd/binder2nd.pass.cpp =================================================================== --- libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.binder.2nd/binder2nd.pass.cpp +++ libcxx/trunk/test/std/depr/depr.lib.binders/depr.lib.binder.2nd/binder2nd.pass.cpp @@ -23,6 +23,8 @@ // typename Fn::result_type operator()(typename Fn::first_argument_type& x) const; // }; +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/utilities/function.objects/negators/binary_negate.depr_in_cxx17.fail.cpp =================================================================== --- libcxx/trunk/test/std/utilities/function.objects/negators/binary_negate.depr_in_cxx17.fail.cpp +++ libcxx/trunk/test/std/utilities/function.objects/negators/binary_negate.depr_in_cxx17.fail.cpp @@ -15,9 +15,6 @@ // UNSUPPORTED: c++98, c++03, c++11, c++14 // REQUIRES: verify-support -// MODULES_DEFINES: _LIBCPP_ENABLE_DEPRECATION_WARNINGS -#define _LIBCPP_ENABLE_DEPRECATION_WARNINGS - #include #include "test_macros.h" Index: libcxx/trunk/test/std/utilities/function.objects/negators/binary_negate.pass.cpp =================================================================== --- libcxx/trunk/test/std/utilities/function.objects/negators/binary_negate.pass.cpp +++ libcxx/trunk/test/std/utilities/function.objects/negators/binary_negate.pass.cpp @@ -10,6 +10,8 @@ // binary_negate +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/utilities/function.objects/negators/not1.depr_in_cxx17.fail.cpp =================================================================== --- libcxx/trunk/test/std/utilities/function.objects/negators/not1.depr_in_cxx17.fail.cpp +++ libcxx/trunk/test/std/utilities/function.objects/negators/not1.depr_in_cxx17.fail.cpp @@ -15,9 +15,6 @@ // UNSUPPORTED: c++98, c++03, c++11, c++14 // REQUIRES: verify-support -// MODULES_DEFINES: _LIBCPP_ENABLE_DEPRECATION_WARNINGS -#define _LIBCPP_ENABLE_DEPRECATION_WARNINGS - #include #include "test_macros.h" Index: libcxx/trunk/test/std/utilities/function.objects/negators/not1.pass.cpp =================================================================== --- libcxx/trunk/test/std/utilities/function.objects/negators/not1.pass.cpp +++ libcxx/trunk/test/std/utilities/function.objects/negators/not1.pass.cpp @@ -10,6 +10,8 @@ // not1 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/utilities/function.objects/negators/not2.depr_in_cxx17.fail.cpp =================================================================== --- libcxx/trunk/test/std/utilities/function.objects/negators/not2.depr_in_cxx17.fail.cpp +++ libcxx/trunk/test/std/utilities/function.objects/negators/not2.depr_in_cxx17.fail.cpp @@ -15,9 +15,6 @@ // UNSUPPORTED: c++98, c++03, c++11, c++14 // REQUIRES: verify-support -// MODULES_DEFINES: _LIBCPP_ENABLE_DEPRECATION_WARNINGS -#define _LIBCPP_ENABLE_DEPRECATION_WARNINGS - #include #include "test_macros.h" Index: libcxx/trunk/test/std/utilities/function.objects/negators/not2.pass.cpp =================================================================== --- libcxx/trunk/test/std/utilities/function.objects/negators/not2.pass.cpp +++ libcxx/trunk/test/std/utilities/function.objects/negators/not2.pass.cpp @@ -10,6 +10,8 @@ // not2 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include Index: libcxx/trunk/test/std/utilities/function.objects/negators/unary_negate.depr_in_cxx17.fail.cpp =================================================================== --- libcxx/trunk/test/std/utilities/function.objects/negators/unary_negate.depr_in_cxx17.fail.cpp +++ libcxx/trunk/test/std/utilities/function.objects/negators/unary_negate.depr_in_cxx17.fail.cpp @@ -15,9 +15,6 @@ // UNSUPPORTED: c++98, c++03, c++11, c++14 // REQUIRES: verify-support -// MODULES_DEFINES: _LIBCPP_ENABLE_DEPRECATION_WARNINGS -#define _LIBCPP_ENABLE_DEPRECATION_WARNINGS - #include #include "test_macros.h" Index: libcxx/trunk/test/std/utilities/function.objects/negators/unary_negate.pass.cpp =================================================================== --- libcxx/trunk/test/std/utilities/function.objects/negators/unary_negate.pass.cpp +++ libcxx/trunk/test/std/utilities/function.objects/negators/unary_negate.pass.cpp @@ -10,6 +10,8 @@ // unary_negate +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.assign/auto_ptr_Y.pass.cpp =================================================================== --- libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.assign/auto_ptr_Y.pass.cpp +++ libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.assign/auto_ptr_Y.pass.cpp @@ -13,6 +13,8 @@ // template shared_ptr& operator=(auto_ptr&& r); +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.assign/shared_ptr.pass.cpp =================================================================== --- libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.assign/shared_ptr.pass.cpp +++ libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.assign/shared_ptr.pass.cpp @@ -12,6 +12,8 @@ // shared_ptr& operator=(const shared_ptr& r); +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include Index: libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/auto_ptr.pass.cpp =================================================================== --- libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/auto_ptr.pass.cpp +++ libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/auto_ptr.pass.cpp @@ -11,6 +11,7 @@ // template explicit shared_ptr(auto_ptr&& r); // REQUIRES: c++98 || c++03 || c++11 || c++14 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS #include #include Index: libcxx/trunk/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/auto_pointer.pass.cpp =================================================================== --- libcxx/trunk/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/auto_pointer.pass.cpp +++ libcxx/trunk/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/auto_pointer.pass.cpp @@ -16,6 +16,8 @@ // template unique_ptr(auto_ptr&&) noexcept +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include #include #include