forked from OSchip/llvm-project
[libc++] Enable deprecation warnings by default
Summary: In r342843, I added deprecation warnings to some facilities that were deprectated in C++14 and C++17. However, those deprecation warnings were not enabled by default. After discussing this on IRC, we had finally gotten consensus to enable those warnings by default, and I'm getting around to doing that only now. Reviewers: mclow.lists, EricWF Subscribers: christof, jkorous, dexonsmith, jdoerfert, libcxx-commits Differential Revision: https://reviews.llvm.org/D58140 llvm-svn: 355961
This commit is contained in:
parent
8259cc3357
commit
a470a13a70
|
@ -242,11 +242,11 @@ thread safety annotations.
|
|||
purely as an extension. See :ref:`Extended Applications of [[nodiscard]] <nodiscard extension>`
|
||||
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
|
||||
-----------------------------------
|
||||
|
|
|
@ -1029,8 +1029,10 @@ template <unsigned> struct __static_assert_check {};
|
|||
#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
|
||||
|
|
|
@ -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 <algorithm>
|
||||
#include <vector>
|
||||
|
|
|
@ -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 <algorithm>
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
// is defined before including <memory>, 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 <memory>
|
||||
#include <type_traits>
|
||||
|
|
|
@ -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 <memory>
|
||||
|
|
|
@ -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 <functional>
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
// MODULES_DEFINES: _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS
|
||||
#define _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
// void
|
||||
// random_shuffle(Iter first, Iter last);
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
// void
|
||||
// random_shuffle(Iter first, Iter last, Rand&& rand);
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <cstddef>
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
|
||||
// REQUIRES: c++98 || c++03 || c++11 || c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <memory>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
|
||||
// REQUIRES: c++98 || c++03 || c++11 || c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <memory>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
// template<class Y> auto_ptr& operator=(auto_ptr<Y>& a) throw();
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <memory>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
|
||||
// REQUIRES: c++98 || c++03 || c++11 || c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <memory>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
// auto_ptr(auto_ptr& a) throw();
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <memory>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
|
||||
// REQUIRES: c++98 || c++03 || c++11 || c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <memory>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
// explicit auto_ptr(X* p =0) throw();
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <memory>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
|
||||
// REQUIRES: c++98 || c++03 || c++11 || c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <memory>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
|
||||
// REQUIRES: c++98 || c++03 || c++11 || c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <memory>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
|
||||
// REQUIRES: c++98 || c++03 || c++11 || c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <memory>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
|
||||
// REQUIRES: c++98 || c++03 || c++11 || c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <memory>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
|
||||
// REQUIRES: c++98 || c++03 || c++11 || c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <memory>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
|
||||
// REQUIRES: c++98 || c++03 || c++11 || c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <memory>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
|
||||
// REQUIRES: c++98 || c++03 || c++11 || c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <memory>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -12,11 +12,13 @@
|
|||
|
||||
// X* release() throw();
|
||||
|
||||
// REQUIRES: c++98 || c++03 || c++11 || c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <memory>
|
||||
#include <cassert>
|
||||
|
||||
// REQUIRES: c++98 || c++03 || c++11 || c++14
|
||||
|
||||
#include "../A.h"
|
||||
|
||||
void
|
||||
|
|
|
@ -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 <memory>
|
||||
#include <cassert>
|
||||
|
||||
// REQUIRES: c++98 || c++03 || c++11 || c++14
|
||||
|
||||
#include "../A.h"
|
||||
|
||||
void
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
|
||||
// REQUIRES: c++98 || c++03 || c++11 || c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <memory>
|
||||
#include <type_traits>
|
||||
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
// pointer_to_binary_function
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
|
||||
// pointer_to_binary_function
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
// pointer_to_unary_function
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
|
||||
// pointer_to_unary_function
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
// ptr_fun(Result (*f)(Arg));
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
// pointer_to_unary_function<Arg, Result>
|
||||
// ptr_fun(Result (*f)(Arg));
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -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 <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
// pointer_to_binary_function<Arg1,Arg2,Result>
|
||||
// ptr_fun(Result (*f)(Arg1, Arg2));
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
// Removed in c++17
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
// const_mem_fun_t<S,T>
|
||||
// mem_fun(S (T::*f)() const);
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
// Removed in c++17
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
// const_mem_fun1_t<S,T,A>
|
||||
// mem_fun(S (T::*f)(A) const);
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
// Removed in c++17
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
|
||||
// const_mem_fun1_ref_t
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
// Removed in c++17
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
|
||||
// const_mem_fun1_t
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
// Removed in c++17
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
// const_mem_fun_ref_t<S,T>
|
||||
// mem_fun_ref(S (T::*f)() const);
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
// Removed in c++17
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
// const_mem_fun1_ref_t<S,T,A>
|
||||
// mem_fun_ref(S (T::*f)(A) const);
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
// Removed in c++17
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
|
||||
// const_mem_fun_ref_t
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
// Removed in c++17
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
|
||||
// const_mem_fun_t
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
// Removed in c++17
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
// mem_fun_t<S,T>
|
||||
// mem_fun(S (T::*f)());
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
// Removed in c++17
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
// mem_fun1_t<S,T,A>
|
||||
// mem_fun(S (T::*f)(A));
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
// Removed in c++17
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
|
||||
// mem_fun1_ref_t
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
// Removed in c++17
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
|
||||
// mem_fun1_t
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
// Removed in c++17
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
// mem_fun_ref_t<S,T>
|
||||
// mem_fun_ref(S (T::*f)());
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
// Removed in c++17
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
// mem_fun1_ref_t<S,T,A>
|
||||
// mem_fun_ref(S (T::*f)(A));
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
// Removed in c++17
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
|
||||
// mem_fun_ref_t
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
// Removed in c++17
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
|
||||
// mem_fun_t
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -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 <functional>
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
// binder1st<Fn>
|
||||
// bind1st(const Fn& fn, const T& x);
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -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 <functional>
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
// binder2nd<Fn>
|
||||
// bind2nd(const Fn& op, const T& x);
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -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 <functional>
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
// typename Fn::result_type operator()(typename Fn::first_argument_type& x) const;
|
||||
// };
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -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 <functional>
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
// typename Fn::result_type operator()(typename Fn::first_argument_type& x) const;
|
||||
// };
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -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 <functional>
|
||||
|
||||
#include "test_macros.h"
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
// binary_negate
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -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 <functional>
|
||||
|
||||
#include "test_macros.h"
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
// not1
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -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 <functional>
|
||||
|
||||
#include "test_macros.h"
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
// not2
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -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 <functional>
|
||||
|
||||
#include "test_macros.h"
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
// unary_negate
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
|
||||
// template<class Y> shared_ptr& operator=(auto_ptr<Y>&& r);
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <memory>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
// shared_ptr& operator=(const shared_ptr& r);
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <memory>
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
// template<class Y> explicit shared_ptr(auto_ptr<Y>&& r);
|
||||
// REQUIRES: c++98 || c++03 || c++11 || c++14
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <memory>
|
||||
#include <new>
|
||||
|
|
|
@ -16,6 +16,8 @@
|
|||
|
||||
// template <class U> unique_ptr(auto_ptr<U>&&) noexcept
|
||||
|
||||
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
#include <cassert>
|
||||
|
|
Loading…
Reference in New Issue